By jrichmond - 3/10/2016
I am trying to make a Cedrus RB 540 response pad work in my IAT script. It works fine when I run the XIDResponseTest script but I have yet to make my trials advance using the response pad in my own script.
Here is what I am doing.
<xid responsepad> / product = responsepad </xid>
<trial attributeA1> / inputdevice = XID / isvalidresponse = [xid.responsepad.lasteventbutton == 3 || xid.responsepad.lasteventbutton == 5;] / correctresponse = [xid.responsepad.lasteventbutton == 3 && xid.rresponsepad.lastlatency<1000;] / stimulusframes = [1 = attributeA1, attributeA2] / posttrialpause = 250 </trial>
I copied the xid command off the online documentation but it keeps telling me that the brackets ( are wrong. If I change it to ( ) instead of [ ] the script will run, but button presses dont advance the trials.
Im not sure what I am doing wrong. thanks Jenny
|
By Dave - 3/10/2016
/correctresponse is the wrong attribute to use like that. You need to use /iscorrectresponse, just like you use /isvalidresponse instead of /validresponse.
|
By jrichmond - 3/13/2016
perfect, fixed it! thanks
|
|