I am currently working on an experiment where I have a routine with a loop that displays three different video clips. Each time the routine resumes, it cycles through these videos.
Alongside this, I am using a parallel port that sends out a signal with the value “9”. However, for my data analysis, I need each video clip to be associated with a unique signal. (10, 11 …)
I am having trouble figuring out how to modify the parallel port signal so that it sends a different value each time a new video starts playing. I would like the signals to be distinct for each video to differentiate them in my data.
Could anyone provide some guidance or sample code on how to achieve this? Any assistance would be greatly appreciated.
Thank you in advance for your help.