I’m currently in the process of designing an experiment using a modified Sternberg task built with Psychopy, and TMS-EEG. While we have worked out how to trigger the TMS pulse when required, however we cannot work out how to get triggers sent to the EEG amplifier at the start/end of trials.
We are running Linux Mint, and have tried the code on the psychopy page:
port = parallel.ParallelPort(address=0x378) port.setData(4) port.readPin(2) port.setPin(2, 1)
as well as
port = parallel.ParallelPort(address='/dev/parport0') port.setData(4) port.readPin(2) port.setPin(2, 1)
We continually get the error messages such as:
‘Runtime error: port address must be set using setPortAddress’
‘No module named parallel’
As well as a warning message saying: Could not initiate port no such file or directory’
Has anyone got any ideas how to tackle this on a linux computer?