Group: Forum Members
Posts: 9,
Visits: 12
|
Thank you very much! But the trialduration is always the same. I just want it to be 500ms, 1000ms or 2000ms. However, if I delete the trialduration, it doesn't run at all....
*start trial runs N-times (unless N = 0, then it runs N = 1 time) <trial start> / ontrialbegin = [if (values.N==1) trial.start.insertstimulustime(shape.eraser, 500)] / ontrialbegin = [if (values.N==2) trial.start.insertstimulustime(shape.eraser, 1000)] / ontrialbegin = [if (values.N==3) trial.start.insertstimulustime(shape.eraser, 2000)] / ontrialend = [trial.start.resetstimulusframes()] / stimulustimes = [0 = startshape] / validresponse = (noresponse, 30) / correctresponse = (noresponse) / ontrialbegin = [ {if (values.N == 1) values.currenttarget = values.minus1}; {if (values.N == 2) values.currenttarget = values.minus2}; {if (values.N == 3) values.currenttarget = values.minus3}; {if (values.N == 4) values.currenttarget = values.minus4}; values.starttrialcounter += 1; ] / ontrialend = [ {if (values.N == 0) values.currenttarget = picture.startshape.currentitemnumber}; values.minus4 = values.minus3; values.minus3 = values.minus2; values.minus2 = values.minus1; values.minus1 = picture.startshape.currentitemnumber ] / responsetime = 0 /trialduration = 3000 /branch = [if (values.starttrialcounter < values.N) trial.start] </trial>
<trial nontarget> / ontrialbegin = [if (values.N==1) trial.nontarget.insertstimulustime(shape.eraser, 500)] / ontrialbegin = [if (values.N==2) trial.nontarget.insertstimulustime(shape.eraser, 1000)] / ontrialbegin = [if (values.N==3) trial.nontarget.insertstimulustime(shape.eraser, 2000)] / ontrialend = [trial.nontarget.resetstimulusframes()] / stimulustimes = [0 = nontargetshape] /validresponse = (noresponse, 30) / correctresponse = (noresponse) / ontrialbegin = [ {if (values.N == 1) values.currenttarget = values.minus1}; {if (values.N == 2) values.currenttarget = values.minus2}; {if (values.N == 3) values.currenttarget = values.minus3}; {if (values.N == 4) values.currenttarget = values.minus4} ] / ontrialend = [ values.minus4 = values.minus3; values.minus3 = values.minus2; values.minus2 = values.minus1; values.minus1 = picture.nontargetshape.currentitemnumber; values.CorrReject = values.CorrReject + trial.nontarget.correct; values.FalseA = values.FalseA + trial.nontarget.error; values.TotalFA = values.TotalFA + trial.nontarget.error; values.DV = (values.TotalHits - values.TotalFA)/values.TotalBlocks;
] / responsetime = 0 / trialduration = 3000 </trial>
**if target, press the letter "A" (code: 30) <trial target> / ontrialbegin = [if (values.N==1) trial.target.insertstimulustime(shape.eraser, 500)] / ontrialbegin = [if (values.N==2) trial.target.insertstimulustime(shape.eraser, 1000)] / ontrialbegin = [if (values.N==3) trial.target.insertstimulustime(shape.eraser, 2000)] / ontrialend = [trial.target.resetstimulusframes()] / stimulustimes = [0 = targetshape] /validresponse = (noresponse, 30) / correctresponse = (30) / ontrialbegin = [ {if (values.N == 1) values.currenttarget = values.minus1}; {if (values.N == 2) values.currenttarget = values.minus2}; {if (values.N == 3) values.currenttarget = values.minus3}; {if (values.N == 4) values.currenttarget = values.minus4}; ] / ontrialend = [ values.minus4 = values.minus3; values.minus3 = values.minus2; values.minus2 = values.minus1; values.minus1 = picture.targetshape.currentitemnumber; values.Hits = values.Hits+ trial.target.correct; values.Misses = values.Misses + trial.target.error; values.TotalHits = values.TotalHits + trial.target.correct; values.DV = (values.TotalHits - values.TotalFA)/values.TotalBlocks; ] / responsetime = 0 / trialduration = 3000
|