Group: Administrators
Posts: 13K,
Visits: 108K
|
<values> / slowrespcount = 0 </values>
<block myblock> / trials = [1-20 = mytrial] </block>
<trial mytrial> / ontrialend = [if (trial.mytrial.latency >= 600) values.slowrespcount += 1 else values.slowrespcount = 0] / stimulusframes = [1=mytext] / validresponse = (57) / branch = [if (values.slowrespcount >= 3) trial.tooslowtrial] </trial>
<trial tooslowtrial> / ontrialend = [values.slowrespcount = 0] / stimulusframes = [1=tooslowtext] / trialduration = 500 </trial>
<text mytext> / items = ("Press SPACEBAR as quickly as possible.") </text>
<text tooslowtext> / items = ("You're too slow.") </text>
|