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
Copy file name to clipboardExpand all lines: README.md
+107-4Lines changed: 107 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,61 @@ To stop the simulator:
98
98
ourBoard.simulatorStop()
99
99
```
100
100
101
+
Impedance (signal quality)
102
+
--------------------------
103
+
Measuring impedance is a vital tool in ensuring great data is collected.
104
+
105
+
***Good** impedance is < 5k Ohms
106
+
***Ok** impedance is 5 to 10k Ohms
107
+
***Bad** impedance is > 10k Ohms
108
+
109
+
To test for impedance we must apply a known test signal to which either the P, N, or both channels and then apply a little math.
110
+
111
+
When you start measuring for electrode impedance's, a new additional property called `impedanceArray` (indexed 1,2,3,4,5,6,7,8), can be found on the sample object from the emitted by 'sample'.
112
+
113
+
**Note: You must be streaming in order to measure impedance's. Takes up to 2 seconds to start measuring impedances.**
114
+
115
+
To start measuring all channels impedance's:
116
+
```js
117
+
var ourBoard =newrequire('openbci-sdk').OpenBCIBoard();
To apply the test signal to a specific input of a specific channel (i.e. Channel 2 test signal applied to P input and not N input):
141
+
```js
142
+
ourBoard.impedanceTestStartChannel(2,true,false);
143
+
```
144
+
145
+
To stop applying the test signal to a specific channel (i.e. Stop applying signal to channel 2):
146
+
```js
147
+
ourBoard.impedanceTestStopChannel(2);
148
+
```
149
+
150
+
To stop calculating impedance's every time there is a new sample:
151
+
```js
152
+
ourBoard.impedanceTestCalculatingStop();
153
+
```
154
+
You would call `.impedanceTestCalculatingStop()` if you were measuring the impedance for a specified channel. You do NOT need to call `.impedanceTestCalculatingStop()` after calling `.impedanceTestStopAll()` because it is called for you.
155
+
101
156
Auto-finding boards
102
157
-------------------
103
158
You must have the OpenBCI board connected to the PC before trying to automatically find it.
@@ -126,7 +181,7 @@ Reference Guide
126
181
127
182
### OpenBCIBoard (options)
128
183
129
-
Create new instance of an OpenBCI board on `portName`.
184
+
Create new instance of an OpenBCI board.
130
185
131
186
**_options (optional)_**
132
187
@@ -238,6 +293,50 @@ A number specifying which channel you want to get data on. Only 1-8 at this time
238
293
239
294
**_Returns_** a promise, fulfilled if the command was sent to the board and the `.processBytes()` function is ready to reach for the specified channel.
240
295
296
+
### .impedanceTestStartAll()
297
+
298
+
To apply test signals to all the channels and all inputs on an OpenBCI board.
299
+
300
+
**Note, you must be connected in order to set the test commands. Also this method can take up to 2 seconds to send all commands!**
301
+
302
+
**_Returns_** a promise, fulfilled once all the commands are sent to the board.
303
+
304
+
### .impedanceTestStopAll()
305
+
306
+
To stop applying test signals to all the channels and inputs on an OpenBCI board.
307
+
308
+
**Note, you must be connected in order to set the test commands. Also this method can take up to 2 seconds to send all commands!**
309
+
310
+
**_Returns_** a promise, fulfilled once all the commands are sent to the board.
0 commit comments