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,

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:

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():

1 Like

That’s great. Thank you!

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

In the end what is the code that you used? It would be super useful to know :grinning: