Group: Forum Members
Posts: 9,
Visits: 37
|
Greetings,
I am looking to create a task (assuming a 60 Hz refresh rate) that A) presents a cue for 13 frames (200 ms), then B) implements a variable SOA from 13 - 67 frames (200 - 1100 ms), then C) presents a target for 31 frames (500 ms), then D) allows for a response for 124 frames (2000 ms), and E) a variable ITI of 78 - 117 frames (1200-1800 ms). I was able to get A,B, and C, yet I am struggling to implement D and E. My code implementing those steps is below (note that this code ends the trial once a response is make which is not what I am looking for). Any suggestions on how to implement D and E?
Many thanks,
Thomas
<item Objects_t1> /1 = "8ball.jpg" /2 = "50dollarbill.jpg" /3 = "accordion01.jpg" /4 = "aceofdiamond.jpg" </item>
<picture ObjectsP_t1> / items = ObjectsI_t1 / select = sequence / size = (550, 550) / position = (50%, 45%) / erase = false </picture>
<text cue> / items = ("+") </text>
<shape blank> / color = (175, 175, 175) / shape = rectangle / size = (2000, 1000) </shape>
<defaults> / screencolor = (175, 175, 175) / fontstyle = ("arial") </defaults>
<list SOAduration> / items = (26, 67, 26, 67) </list>
<list StimEnd> / items = (57, 98, 57, 98) </list>
<trial testT_1> / ontrialbegin = [trial.testT_1.insertstimulusframe(picture.ObjectsP_t1, list.SOAduration.nextvalue); trial.testT_1.insertstimulusframe(shape.blank, list.StimEnd.nextvalue);] / ontrialend = [trial.mytrial.resetstimulusframes()] / stimulusframes = [1=cue; 13=blank] / validresponse = (anyresponse) </trial>
<block TestB_1> / trials = [1-4 = sequence(testT_1)] / errormessage = false </block>
<expt> / blocks = [1=TestB_1] </expt>
|