|
8 | 8 | "# Example code for connecting a Sciospec EIT device" |
9 | 9 | ] |
10 | 10 | }, |
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 | | - }, |
23 | 11 | { |
24 | 12 | "cell_type": "code", |
25 | 13 | "execution_count": null, |
|
45 | 33 | "sciospec = EIT_16_32_64_128(n_el)" |
46 | 34 | ] |
47 | 35 | }, |
| 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 | + }, |
48 | 53 | { |
49 | 54 | "cell_type": "code", |
50 | 55 | "execution_count": null, |
|
56 | 61 | "sciospec.connect_device_HS()" |
57 | 62 | ] |
58 | 63 | }, |
| 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 | + }, |
59 | 106 | { |
60 | 107 | "cell_type": "code", |
61 | 108 | "execution_count": null, |
|
0 commit comments