psychopy.org | Reference | Downloads | Github

Logging parallel port triggers

Hi all,

I’ve been creating my experiment mostly using builder mode. However, I’d like to be able to save the timings of my parallel port triggers in the log file. Is there a piece of code that I can add in order to do that?

Best wishes,
Ashley

I hadn’t actually thought about the fact that parallel port functions aren’t currently auto-logged. We should change that.

You can add arbitrary messages to the log files using the logging module:
http://www.psychopy.org/api/logging.html

But also, if your trigger is tied to the frame flip (e.g. because it tags the onset of a visual stimulus) then you’d be better to use the win.logOnFlip() and the trigger should be sent using win.callOnFlip():
http://www.psychopy.org/api/visual/window.html#psychopy.visual.Window.logOnFlip

1 Like

That’s great. Thank you!

Auto-logging triggers would be very useful though, good idea.