medusabci / medusa-platform

Other
10 stars 1 forks source link

LSL error when using apps #65

Open seinare opened 3 months ago

seinare commented 3 months ago

I have successfully connected LSL bridge and the ploting features work well.

But when i try to use apps, there comes some error seems to related to lsl message.

When using app itica, click configure will result error report in LOG:

ChannelNotFound: Channel T5 is not defined in the current montage [Scope: general] [Origin: AppsPanelWidget.app_config] [Process: MainProcess] [Thread: MainThread]

When using app c-VEP Speller, click start result:

IncorrectLSLConfig: It seems that channel labels are not present in the LSL stream. This application requires standard labels to use topographic coordinates and perform artifact rejection. Original exception: Channel T5 is not defined in the current montage [Scope: app] [Origin: AppsPanelWidget.app_power] [Process: MainProcess] [Thread: MainThread]

When using app Recoder, click start result:

AttributeError: An exception occurred in method handle_exception. Use try/except clause to avoid this situation! [Scope: app] [Origin: handle_exception] [Process: rec-process] [Thread: MainThread] LSLStreamNotFound: No matching LSL streams with name: openbci_eeg, type: EEG, uid: c192b095-466f-4721-a079-b7ceda40937b, source_id: openbci_eeg_id103, channel_count: 16, nominal_srate: 125.0 [Scope: app] [Origin: AppSkeleton.run] [Process: rec-process] [Thread: MainThread]

When ploting time graph, the channel name 'T5' is normally shown as a channel label.

I'm using openbci 16 channel hardware along with its LSL tool.

yangyang1018 commented 1 month ago

This problem is because you are defining LSL data that does not have an EEG channel that meets the specification. You can refer to the source code in lsl-signal-generator, specifically the source code section in https://github.com/medusabci/lsl-signal -generator/releases. You can refer to the file lsl-gernerator.py