-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added impedance mode for ANT neuro devices #751
Merged
Andrey1994
merged 20 commits into
brainflow-dev:master
from
bdieudonne:ant-neuro-impedance-mode
Jan 13, 2025
Merged
Changes from 10 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1279d36
typo fix
e0076dd
added impedance_mode bool to ant neuro board class
a6c1b5e
updated start_stream to get eeg or impedance data depending on mode
2328d8e
reduced amount of impedance read events
ddeb876
added example with 8 channel ant amplifier
f382334
updated comment
91cf2ae
updated docs to contain ANT neuro example
d0c92f2
set default impedance mode to false
37b84ba
updated formatting
bc53097
corrected formatting
df05607
chose different amplifier in python example (eego8)
434bc54
added resistance_channels to ANT boards
1663374
updated docs
14c7db0
added sleep again between impedance measurements
584195e
added default sampling rates again
c6c771f
added default sampling rate again to ant_neuro.cpp
8fa6023
rearranged channels for ant devices
97c53ca
added manual impedance package number for ANT (and updated formatting)
f43919f
fixing ci
Andrey1994 1b29a65
fixing ci
Andrey1994 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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_410_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): | ||
Andrey1994 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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): | ||
Andrey1994 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that should not be here, its meant to be just a part to init the device
device specific code samples can be pushed into python_package/examples/tests
You can create an example with impedance checking and add a link for it to the docs