-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added impedance mode for ANT neuro devices (#751)
* added impedance_mode to ant neuro boards --------- Signed-off-by: Andrey Parfenov <[email protected]> Co-authored-by: Benjamin Dieudonné <[email protected]> Co-authored-by: Andrey Parfenov <[email protected]>
- Loading branch information
1 parent
4643c09
commit 7a63d28
Showing
8 changed files
with
199 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import time | ||
|
||
from brainflow.board_shim import BoardShim, BrainFlowInputParams, BoardIds | ||
|
||
if __name__ == '__main__': | ||
params = BrainFlowInputParams() | ||
board = BoardShim(BoardIds.ANT_NEURO_EE_411_BOARD, params) # 8 channel amplifier | ||
board.prepare_session() | ||
|
||
# Get impedance data | ||
board.config_board('impedance_mode:1') | ||
board.start_stream() | ||
for i in range(5): | ||
time.sleep(1) | ||
data = board.get_board_data() # get all data and remove it from internal buffer | ||
print(f'{data.shape[0]} channels x {data.shape[1]} samples') | ||
board.stop_stream() | ||
|
||
# Get EEG data | ||
board.config_board('impedance_mode:0') | ||
board.start_stream() | ||
for i in range(3): | ||
time.sleep(1) | ||
data = board.get_board_data() # get all data and remove it from internal buffer | ||
print(f'{data.shape[0]} channels x {data.shape[1]} samples') | ||
board.stop_stream() | ||
|
||
board.release_session() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.