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

How to use a LSL marker stream to get RtEpochs #41

Open
yosider opened this issue Jun 20, 2022 · 3 comments
Open

How to use a LSL marker stream to get RtEpochs #41

yosider opened this issue Jun 20, 2022 · 3 comments

Comments

@yosider
Copy link

yosider commented Jun 20, 2022

I am trying to receive EEG data and event triggers via LSL and decode the event-related EEG data in real-time.
The EEG data does not have stim channels, instead there is an LSL stream of triggers (string markers).

In this case, how can I get the epochs in response to the events?
RtEpochs() takes a stim_channel as an argument, but can I use the trigger stream instead?

Thanks in advance!

@jasmainak
Copy link
Member

cc @teonbrooks

@teonbrooks
Copy link
Member

@yosider, it doesn't currently support event triggers but I could help you add support for it if you would like to get it a go. we could sketch out how we would want this to work in this issue and then figure out how to implement it. It seems we would need to parse an incoming stream for set of strings. I guess it would also require the name of the stream for the triggers. anything else?

@yosider
Copy link
Author

yosider commented Jun 25, 2022

Thank you for your reply. Yes, I would like to do it.
I think the set of strings can be given as constants, as well as the name of the stream.
I think there are several other problems.

  • How to handle two streams at the same time
    • should we use two LSLClient or define a new LSLClient that can handle multiple streams?
    • How can we synchronize multiple streams
  • How to handle streams with irregular sampling frequency such as trigger streams

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

No branches or pull requests

3 participants