By canlabstudies - 9/1/2017
Hi everyone, I'm trying to program a task that randomly shows "medium far 8 points", "medium far 9 points", and "medium far 10 points". But my code would only show "medium far 1 points", "medium far 2 points", and "medium far 3 points" (i assume that those are index numbers) and I can't figure out why. Here are my codes and thank you for your help!
<values> /mediumfarpoints="" </values>
<text mediumfarpoints> /items= ("8","9","10") /select = replace / selectionrate = always </text>
<text distance1> /items = ("Medium Far <%values.mediumfarpoints%> points") </text>
<trial distancechoice> / ontrialbegin = [values.mediumfarpoints=text.mediumfarpoints.nextvalue;] / validresponse= (57) / stimulusframes = [1=distance1] </trial>
<block > / trials = [1-3=distancechoice] </block>
|
By Dave - 9/1/2017
+xHi everyone, I'm trying to program a task that randomly shows "medium far 8 points", "medium far 9 points", and "medium far 10 points". But my code would only show "medium far 1 points", "medium far 2 points", and "medium far 3 points" (i assume that those are index numbers) and I can't figure out why. Here are my codes and thank you for your help! <values> /mediumfarpoints="" </values> <text mediumfarpoints> /items= ("8","9","10") /select = replace / selectionrate = always </text> <text distance1> /items = ("Medium Far <%values.mediumfarpoints%> points") </text> <trial distancechoice> / ontrialbegin = [values.mediumfarpoints=text.mediumfarpoints.nextvalue;] / validresponse= (57) / stimulusframes = [1=distance1] </trial> <block > / trials = [1-3=distancechoice] </block> The code should read
<values> /mediumfarpoints="" </values>
<text mediumfarpoints> /items= ("8","9","10") /select = replace / selectionrate = always </text>
<text distance1> /items = ("Medium Far <%values.mediumfarpoints%> points") </text>
<trial distancechoice> / ontrialbegin = [values.mediumfarpoints=text.mediumfarpoints.item(text.mediumfarpoints.nextindex);] / validresponse= (57) / stimulusframes = [1=distance1] </trial>
<block myblock> / trials = [1-3=distancechoice] </block>
or, more conveniently, use a <list> instead of a <text> element:
<values> /mediumfarpoints="" </values>
<list mediumfarpoints> /items= ("8","9","10") / replace = true / selectionrate = always </list>
<text distance1> /items = ("Medium Far <%values.mediumfarpoints%> points") </text>
<trial distancechoice> / ontrialbegin = [values.mediumfarpoints=list.mediumfarpoints.nextvalue;] / validresponse= (57) / stimulusframes = [1=distance1] </trial>
<block myblock> / trials = [1-3=distancechoice] </block>
|
By canlabstudies - 9/4/2017
+x+xHi everyone, I'm trying to program a task that randomly shows "medium far 8 points", "medium far 9 points", and "medium far 10 points". But my code would only show "medium far 1 points", "medium far 2 points", and "medium far 3 points" (i assume that those are index numbers) and I can't figure out why. Here are my codes and thank you for your help! <values> /mediumfarpoints="" </values> <text mediumfarpoints> /items= ("8","9","10") /select = replace / selectionrate = always </text> <text distance1> /items = ("Medium Far <%values.mediumfarpoints%> points") </text> <trial distancechoice> / ontrialbegin = [values.mediumfarpoints=text.mediumfarpoints.nextvalue;] / validresponse= (57) / stimulusframes = [1=distance1] </trial> <block > / trials = [1-3=distancechoice] </block> The code should read <values> /mediumfarpoints="" </values> <text mediumfarpoints> /items= ("8","9","10") /select = replace / selectionrate = always </text> <text distance1> /items = ("Medium Far <%values.mediumfarpoints%> points") </text> <trial distancechoice> / ontrialbegin = [values.mediumfarpoints=text.mediumfarpoints.item(text.mediumfarpoints.nextindex);]/ validresponse= (57) / stimulusframes = [1=distance1] </trial> <block myblock> / trials = [1-3=distancechoice] </block> or, more conveniently, use a <list> instead of a <text> element: <values> /mediumfarpoints="" </values> <list mediumfarpoints> /items= ("8","9","10") / replace = true / selectionrate = always </list><text distance1> /items = ("Medium Far <%values.mediumfarpoints%> points") </text> <trial distancechoice> / ontrialbegin = [values.mediumfarpoints=list.mediumfarpoints.nextvalue;]/ validresponse= (57) / stimulusframes = [1=distance1] </trial> <block myblock> / trials = [1-3=distancechoice] </block> Thank you so much! This helps immensely!!
|
|