I would like to integrate the pupil labs core eye-tracker into my experiment. I mainly want to send triggers to the capturing software to tell it, at which point a trial or block started, so I can analyze gaze positions during a particular trial/block. What would be the easiest way to do this?
I don’t know about the eye tracker, but the “serial” and “parallel” packages for python let you send serial and parallel port signals, one of which your eye tracker may be able to interpret.
For serial ports
import serial
ser = serial.Serial('COM3',9600,timeout = 0.05)
message = 10
ser.write(message.to_bytes(1,'big', signed=True))
Some useful links:
For parallel ports
import parallel
par = parallel.ParallelPort(portAddress)
par.setData(10)