When should I send the parallel port trigger? prepare or run phase?
in OpenSesame
Hi,
I am using the inline code to send the trigger for EEG study. But I am some confusing about where should I put the code that send the trigger.
Comments
Hi @Jinbo,
I haven't used triggers but I'd say that the answer to that question depends on what you are trying to achieve. Most likely, you'd want to send it during the "run" phase. The prepare phase contains code that is executed before a sequence is run. So, if your aim is to get triggers sent in real time as the trials run, you'd want to insert your code in the "Run" phase of your inline objects.
Hope this helps.
Fabrice.
Yes, @Fabrice is right. In most cases the run phase is the place. Only exception is when you present the stimulus programmatically during the prepare phase. Then it would make sense to also send the triggers in the prepare phase. (General idea, is to sync up trigger sending and stimulus presentation, and have as little time in between as possible).
Eduard