Hi there,
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.
import socket
s = socket.create_connection((“localhost”, 22345))
s.sendall(b"start\n")
However, if I add this code to the psychophysiol procedure, the trigger doesn’t get send to LSL.
I tried to write this code directly in javascript but didn’t really manage…
Any suggestions of what I could try? Or is there anyone who knows how to write these lines in javascript? I could imagine that this may solve the problem.