You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally, we call the `present` method of the class corresponding to our desired experiment, in this case the visual N170. We pass both the EEG device and generated save file name in order to collect and save data. The presentation can also be run without an EEG device/save file for testing and debugging.
@@ -110,7 +110,7 @@ All together the example script looks like
Copy file name to clipboardExpand all lines: doc/getting_started/streaming.md
+7-8
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,24 @@ Before getting going with running an experiment, it is important to first verify
4
4
5
5
The exact steps for this vary with the device (MUSE, OpenBCI, others) and operating system (Windows, Mac, Linux) used. When using these instructions, you should make sure you are consulting the section appropriate for your combination of device and OS.
6
6
7
-
Initiating an EEG stream is a relatively easy process using the `eegnb.devices.eeg.EEG` class which abstracts the
8
-
the various devices and backends behind one easy call.
7
+
Initiating an EEG stream is a relatively easy process using the `eegnb.devices.EEGDevice` class which abstracts the various devices and backends behind one easy call.
9
8
10
9
```python
11
-
from eegnb.devices.eegimportEEG
10
+
from eegnb.devices importEEGDevice
12
11
13
12
# define the name for the board you are using and call the EEG object
14
-
eeg =EEG(device='cyton')
13
+
eeg =EEGDevice.create(device='cyton')
15
14
16
15
# start the stream
17
16
eeg.start()
18
17
```
19
18
20
-
These two lines of code abstract a lot of the heavy lifting with respect to switching streaming backends for the variou support devices.
19
+
These two lines of code abstract a lot of the heavy lifting with respect to switching streaming backends for the various support devices.
21
20
22
21
23
22
## Supported Devices
24
23
25
-
Below is a lst of supported devices and the information needed to connect to each when running the library. Each section also provides common troubleshooting tips for each. If you encounter any errors when connecting which are not listed below please report these on the issues page.
24
+
Below is a list of supported devices and the information needed to connect to each when running the library. Each section also provides common troubleshooting tips for each. If you encounter any errors when connecting which are not listed below please report these on the issues page.
26
25
27
26
### Interaxon Muse
28
27
**Device Names:***'muse2016'*, *'muse2'*, and *'museS'*
@@ -111,10 +110,10 @@ menu pictures below.
111
110
112
111
Now that we have the COM port, we can initiate the stream by passing it to the EEG device in the object call.
113
112
```python
114
-
from eegnb.devices.eegimportEEG
113
+
from eegnb.devices importEEGDevice
115
114
116
115
# define the name for the board you are using and call the EEG object
0 commit comments