Skip to content
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

Event Marking between Brainflow and other python processes implementation. #156

Open
iPsych opened this issue Mar 8, 2022 · 1 comment
Labels

Comments

@iPsych
Copy link

iPsych commented Mar 8, 2022

There are several EEG devices (especially headsets) working only with Brainflow.
However, It seems tricky to send event marker outside Brainflow (Their examples call brainflow and psychopy function in same commandline, not let psychopy send marker to independent brainflow thread/process).

I found a work-around using Brainflow->LabStreamingLayer, but it seems not an ideal solution considering temporal accuracy.

NeurotechX shared a lot of notebooks integrates PsychoPy and Brainflow, but as far as I understand, they call psychopy and brainflow in same .py script, not allow communication btw two, right? (i.e. send event marker in GUI designed PsychoPy experiment.)

(Maybe, just call Brainflow inside PsychoPy would be one solution.)

@iPsych iPsych changed the title Event Marking in Brainflow implementation. Event Marking between Brainflow and other python processes implementation. Mar 8, 2022
@JohnGriffiths
Copy link
Collaborator

Here there.

Not exactly sure what you're asking here, but in case it's helpful:

Yes, you could add brainflow compatibility within a GUI-designed psychopy experiment fairly easily.

You would just need to initialize the EEG device at the start, as in e.g. here,

and then add a few push lines along the way when you want to send a marker.

This is how that's done in the N170 experiment, which calls this push method, which as you can see is not too complicated.

Hope that's helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants