pymindaffectBCI icon indicating copy to clipboard operation
pymindaffectBCI copied to clipboard

LSL connection issue

Open ArnauGT opened this issue 4 years ago • 2 comments

Dear MindAffect developers,

I want to thank you very much for this super interesting project. I have an issue trying to connect my device with MindAffect via LSL. MindAffect library, Java runtime environment and all other requirements seem to be well installed. The program opens normally with the fake data, but when I run:

python -m mindaffectBCI.online_bci --config_file debug.json --acquisition lsl

it detects my device but then it gives this error from “utopia_lsl.py”:

line 66, in run client.sendMessage(utopiaclient.DataHeader(None, len(eeg_channels), fSample, ""))

NameError: name 'eeg_channels' is not defined

I also tried to modify the “debug.json” file with:

"acquisition": "lsl", "acq_args":{ "streamtype":"EEG", "channels":[0,1,2,3,4,5,6,7] }

But the error persists. Finally I could made it work replacing “len(eeg_channels)” by my number of channels, and from ”utopiaclinet.py” I replaced “self.nchannels” by my number of channels. Is there any proper way to use my device with MindAffect via LSL connection without modifying the scripts? Should I specify the number of channels somewhere?

Thanks, and kind regards, Arnau

ArnauGT avatar Aug 25 '21 13:08 ArnauGT