Sending trigger via parallel port

I’ve never used the parallel port, so don’t know what current code may control it on Linux. There are many ways to send a trigger. But for many users USB I/O devices work well. In MATLAB there are several ways to control a serial device, including PTB’s IOPort, and comparing performance I found that IOPort is clearly the fastest (~60µs TTL switch time using an Arduino):

What are the parameters of the trigger you need to send? Some hardware require strobed words with a trigger bit, others simple TTLs etc…

There is some more info here:

And some specific details for the LabJack:

And Arduinos:

@xiangrui from this forum made a response button + I/O box with very robust PTB support and high reliability that you can look at here, this would also allow you to compare timings to a photodiode etc:

https://lobes.osu.edu/rt-box.php