Hello everyone,
I have created a task in Psychopy, which consists of a series of 180 symbol-digit pairs presented in two 9-minute blocks. At the start of each trial a legend containing a list of symbols matched to a corresponding number (from 1 to 9) will be displayed at the top of the screen for 6000 ms. Simultaneously with the appearance of the legend, a target symbol-digit pair is presented at the center of the screen for 4000 ms or until a response is given. The target is followed by a 2000 ms inter-stimulus interval. The participant is asked to judge, by looking at the legend, if the symbol-digit pair is correct (50% of the times) or incorrect. (50% of the times) by pressing the left or right arrow respectively.
I am trying to send EEG triggers via parallel port to Brain Vision Recorder. The triggers related to the stimuli display correctly, but I am having trouble with the triggers related to the participant’s responses. I am using a separate parallel port in the builder and code to specify the value for correct and incorrect responses, but unexpected green triggers with random names are appearing in Brain Vision Analyser at the same time as the stimulus triggers. This is causing issues with data analysis as some of these green triggers have the same name as the stimulus triggers.
I believe the problem is that the parallel port for responses in the builder starts at time 0 at the same time as the parallel port for stimuli. I want to link the response parallel port in the builder to the code and send a trigger only once a key is pressed. But I am not sure how to do it.
I would be very grateful for your help.
Thank you in advance!