Group: Forum Members
Posts: 72,
Visits: 408
|
Hi, Dave, I almost got the concept of branch syntax, but still not very skillful. Would you help me with this? I am doing an adaptive method on temporal stimulus, since the variable is "timeout', I guess I can't do it on trial level. The rule is like this: Once subject makes a wrong response in "question", the timeout of "target" goes up by 100ms, else goes down by 100ms. The block keeps running until the "timeout" of target is equals to the "timeout" of standard. I tried to write syntax like this, but it just stopped by one run.
<trial standard> / stimulustimes = [1=fixation;2000=target;] / recorddata = true / timeout = 2200 </trial>
<trial target> / stimulustimes = [1=fixation;2000=target;] / recorddata = true / timeout = values.timeout </trial>
<values> /timeout=3000 /block=10 </values>
<block 1> / onblockbegin = [if (values.block>10)values.timeout+=100 else values.timeout-=100 ] / trials = [1= standard;2=target;3=question] / branch = [if(trial.question.correct) values.block-=1 && block.1 else values.block+=1 && block.1] / onblockend = [values.block=1] /postinstructions = (practiceend) </block>
<expt> /preinstructions = (instruction) /postinstructions = (result) /blocks = [1 = 1;] </expt>
Best Wishes, nakayama
|