+x+xHello I have a new question today.
Is it possible to count the number of tentative in trials ?
In my task participants must stop a sound in pushing on a knob. But I would like record the number of tentative for each trial, that is the number of time that they have push on other knob.
Could I include 8 knobs in valid response and only one in correct response ? But how code bad response as 0 and correct as 1 ?
Thanks
You can use /isvalidresponse and/or /scorrectresponse logic to count the valid (but incorrect) response attempts.
<defaults >
/ screencolor = black
</defaults>
*************************************
SOUND
<item sound>
/ 1="3000Hz (5s).wav"
</item>
<sound son>
/ items = item.sound
</sound>
*************************************
FEEDBACK
<item success>
/ 1="Success!"
</item>
<item fail>
/ 1="Fail !"
</item>
<text sucess>
/ items = success
/ txcolor =black
/ txbgcolor =darkgreen
/txcolor = (255,255,255)
/ size = (90%, 90%)
/ fontstyle = ("Times new roman", 50pt, true, false, false, false, 5, 0)
/ position = (50, 50)
</text>
<text fail>
/ items = fail
/ txcolor =black
/ txbgcolor =crimson
/txcolor = (255,255,255)
/ size = (90%, 90%)
/ fontstyle = ("Times new roman", 50pt, true, false, false, false, 5, 0)
/ position = (50, 50)
</text>
*************************************
<trial uncontrolable >
/ beginresponseframe = -1
/ beginresponsetime = -1
/ correctmessage = true(text.success, 5000)
/ errormessage = true(text.fail, 5000)
/ stimulusframes = [5000=sound]
/ timeout = 5000
/ posttrialpause = 10000
/ responseinterrupt = trial
/ isvalidresponse = ["1";"2"
]
/ ontrialend = [if (trial.uncontrolable.timeout > timeout)
]
</trial>