sending triggers to NIC2 via labstreaming layer (LSL) or TCP
We are setting up an EEG experiment using OpenSesame for purpose of stimulus presentation. EEG device we will use is Neuroelectrics Startstim 32 with NIC2 software to design protocols and monitor EEG signals. It is recommended to use labstreaming layer (LSL) to connect OpenSesame with NIC2. To completely set up our experiment we need to send triggers/markers during the experiment from OpenSesame to NIC2.
I suppose that we need to do some coding by inline script items. Does anyone have experience with sending triggers from OpenSesame to any EEG device via LSL? If so, I would appreciate so much if someone could send a code that had been used for this purpose. If there isn’t a finished code/solution to share, does anybody have an idea how this could be resolved? I've searched throughout the web about LSL and OpenSesame and had not found adequate help for OpenSesame particularly, but I did find some codes for LSL and PsychoPy. Do you think that PsychoPy code would work in OpenSesame also (since both are written in Python)?
Thank you very much in advance for any help! :)