Repository navigation
Conversation
…latency check Configuration and recording options for the OpenBCI Cyton. - `eegnb.devices.cyton`: `cyton_ch_config()` builds per-channel gain and BIAS settings from the `GAIN_*` codes, and `thinkpulse_config()` does the same for ThinkPulse active electrodes. Channel commands are retried up to 3 times when the board doesn't reply `Success`, which is usually a dropped serial reply. - `EEG(analog_mode=True)` switches the Cyton to analog mode (`/2`) and records the AUX pins as `AUX0`… columns, for any analog sensor such as a photodiode. - `EEG.drain()` writes the recording so far. `BlockExperiment` calls it after each block, so the pattern-reversal VEP keeps completed blocks if a session crashes, and long sessions stay clear of BrainFlow's ring buffer, which wraps after 30 minutes at 250 Hz. - On Windows, connecting a Cyton now stops with an error unless the FTDI dongle's LatencyTimer is 1 ms. With the 16 ms default, samples reach the host in bursts, so BrainFlow's arrival timestamps, and the markers aligned to them, can be off by up to a batch of samples. OpenBCI recommends the same setting (https://docs.openbci.com/Troubleshooting/FTDI_Fix_Windows/), and `doc/misc/ntcs_phase1_instructions.md` already calls it "a major gotcha". Existing Windows users need to set it once per dongle, and again if a driver update resets it. The error message says where and links OpenBCI's guide, and the Cyton section of `doc/getting_started/streaming.md` now covers it.
pellet
force-pushed
the
feat/cyton-device-config
branch
from
October 5, 2026 11:19
146f879 to
e3340c6
Compare
pellet
marked this pull request as ready for review
October 5, 2026 11:20
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Configuration and recording options for the OpenBCI Cyton.
eegnb.devices.cyton:cyton_ch_config()builds per-channel gain and BIAS settings from theGAIN_*codes, andthinkpulse_config()does the same for ThinkPulse active electrodes. Channel commands are retried up to 3 times when the board doesn't replySuccess, which is usually a dropped serial reply.EEG(analog_mode=True)switches the Cyton to analog mode (/2) and records the AUX pins asAUX0… columns, for any analog sensor such as a photodiode.EEG.drain()writes the recording so far.BlockExperimentcalls it after each block, so the pattern-reversal VEP keeps completed blocks if a session crashes, and long sessions stay clear of BrainFlow's ring buffer, which wraps after 30 minutes at 250 Hz.doc/misc/ntcs_phase1_instructions.mdalready calls it "a major gotcha". Existing Windows users need to set it once per dongle, and again if a driver update resets it. The error message says where and links OpenBCI's guide, and the Cyton section ofdoc/getting_started/streaming.mdnow covers it.