**Standard Standalone?: Yes
This is probably a fairly straight forward question, but my lack of coding knowledge isn’t really helping here. I have set up a trigger system using pyserial code to send triggers to an fNIRS system. At the moment the code for it is in the Begin Routine tab, and the trigger is sent at the start of every trial. However, I want to delay when the trigger is sent by 2 seconds, so that it misses out the fixation period. Is there any simple code to do this? I realize that I can always just put the fixation in a routine of its own, but I was hoping to keep the flow nice and tidy.
This is what is in the Begin Routine tab at the moment.
TRIGGER=1 ser.write([TRIGGER]) time.sleep(0.01) ser.write()
Any help is much appreciated!