Skip to content

Commit 3dbc91f

Browse files
committed
upd EIT example
1 parent a8c5e41 commit 3dbc91f

File tree

1 file changed

+59
-12
lines changed

1 file changed

+59
-12
lines changed

examples/EIT-16-256-Ch.ipynb

Lines changed: 59 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@
88
"# Example code for connecting a Sciospec EIT device"
99
]
1010
},
11-
{
12-
"cell_type": "markdown",
13-
"id": "8a5423a4-f8da-4cdb-8163-1d50d12e6e23",
14-
"metadata": {},
15-
"source": [
16-
"**USB-HS**\n",
17-
"\n",
18-
"Connect the EIT device to the USB-HS port.\n",
19-
"\n",
20-
"If you have issues with the connection try [this](https://eblot.github.io/pyftdi/installation.html)."
21-
]
22-
},
2311
{
2412
"cell_type": "code",
2513
"execution_count": null,
@@ -45,6 +33,23 @@
4533
"sciospec = EIT_16_32_64_128(n_el)"
4634
]
4735
},
36+
{
37+
"cell_type": "markdown",
38+
"id": "c6d1efce-1e7f-46a0-a092-e2fe38017fc6",
39+
"metadata": {},
40+
"source": [
41+
"___\n",
42+
"For some Sciospec devices two USB ports are available.\n",
43+
"It it preferred to use the USB-HS port, because it is faster than USB-FS.\n",
44+
"You cannot connect both USB ports with the same script.\n",
45+
"\n",
46+
"**USB-HS**\n",
47+
"\n",
48+
"Connect the EIT device to the USB-HS port.\n",
49+
"\n",
50+
"If you have issues with the connection try [this](https://eblot.github.io/pyftdi/installation.html)."
51+
]
52+
},
4853
{
4954
"cell_type": "code",
5055
"execution_count": null,
@@ -56,6 +61,48 @@
5661
"sciospec.connect_device_HS()"
5762
]
5863
},
64+
{
65+
"cell_type": "markdown",
66+
"id": "8dadceb4-5f5a-4fe7-8490-c16423bf9f24",
67+
"metadata": {},
68+
"source": [
69+
"**USB-FS**\n",
70+
"\n",
71+
"Connect the EIT device to the USB-FS port."
72+
]
73+
},
74+
{
75+
"cell_type": "code",
76+
"execution_count": null,
77+
"id": "d3f4ca6b-fff9-41e2-97c6-6d458702b7b1",
78+
"metadata": {},
79+
"outputs": [],
80+
"source": [
81+
"from sciopy import available_serial_ports\n",
82+
"\n",
83+
"# this function can be used to get the available ports (works only on windows, I guess)\n",
84+
"available_serial_ports()"
85+
]
86+
},
87+
{
88+
"cell_type": "code",
89+
"execution_count": null,
90+
"id": "924cbf79-ca2a-4d32-a1f1-6450746078c0",
91+
"metadata": {},
92+
"outputs": [],
93+
"source": [
94+
"# connect device via USB-FS port\n",
95+
"sciospec.connect_device_FS(port=\"COM1\") # Insert available serial port here."
96+
]
97+
},
98+
{
99+
"cell_type": "markdown",
100+
"id": "5fd0f70f-f0c8-429c-b0db-43d23b75f365",
101+
"metadata": {},
102+
"source": [
103+
"___"
104+
]
105+
},
59106
{
60107
"cell_type": "code",
61108
"execution_count": null,

0 commit comments

Comments
 (0)