I use LSL (lab streaming layer) to record EEG data. I would like to use psychophysiol (which we use to run the experiment) to start and stop the recording of LSL.
I can use the following python code which works fine if I run it through the terminal.
s = socket.create_connection((“localhost”, 22345))
However, if I add this code to the psychophysiol procedure, the trigger doesn’t get send to LSL.