Millisecond Forums

Endtrial after response given

https://forums.millisecond.com/Topic19205.aspx

By Reshan - 6/7/2016

Hello,

I want to present a fixation cross for 500 ms, and then a stimulus for 500 ms, and allow the participant as much time as they want to respond.
However, I would also like to end the trial as soon as the participant responds (if they respond after the presentation of the stimulus- i.e. after 500 ms) 
What command line do I need to add?

<trial labelAright>

/stimulustimes = [0= fixation; 500=stimuliA; 1000= blankshape]
/validresponse = (18, 23)
/correctresponse = (23)

</trial>

Thank you very much for the help! 
By Dave - 6/7/2016

By default, a <trial> will start accepting responses ony after all stimuli specified in /stimulustimes or -frames have been displayed.

To override this, you use the /beginresposetime attribute, i.e., in your case you specify:

<trial labelAright>
/stimulustimes = [0= fixation; 500=stimuliA; 1000= blankshape]
/validresponse = (18, 23)
/correctresponse = (23)
/ beginresponsetime = 500
...
</trial>