OS (e.g. Win10): 10.14.6
PsychoPy version (e.g. 1.84.x): 3.1.5
I have a very simple requirement whereby I need a trial where the subject looks at a fixation cross and presses a key (‘p’) when they feel like it.
This will immediately present one visual stimulus (called GO) , and 500ms later a different visual stimulus (called TARGET) and a beep
The way I thought I could do this is to have a code component at every frame
if event.getKeys(['p']):
if press == False:
press = True
outcomeTimer = t+.05
and have as start for GO a conditional on press and as start for the TARGET stimuli a conditional
press and t>= outcomeT
However, this does produce poor timing: both GO and both TARGETs are displayed concurrently pretty much at the time of the press. increasing outcomeTimer to t+.1 separates the two.
Tried to upload a zip file with all of the stuff but cannot
many thanks for any suggestions on how to solve this