Hi,
I'm attempting to write a task wherein participants are shown several coloured squares, followed by an inter-trial interval, followed by the presentation of only one of the previously shown squares (in its original position). Participants must respond with whether they think the square is the same or a different colour.
The stimuli in the first instance should appear randomly, trial by trial. When the single stimulus is shown subsequently, it should be in the exact same position. There is a simple diagram here (
http://www.scholarpedia.org/article/Visual_short_term_memory; Figure 1) of what I'm attempting to build (except in my task the "Test Array Until Response" only shows one of the previous squares - in this case, the yellow one).
I've got some code written but am already receiving error messages and I don't think the way I've set up my trials will give the desired result...
<defaults>
/ screencolor = (192, 192, 192)
/ fontstyle = ("Arial", 28pt, false,false)
/ txcolor = (0, 255, 0)
/ pretrialpause = 0
/ inputdevice = keyboard
</defaults>
*******
<text fixation>
/ items = ("+")
/ position = (50,50)
/ txcolor = (255,255,255)
/ txbgcolor = (transparent)
/ fontstyle = ("Arial", 64pt, false,false)
</text>
********
<item Red_Square>
/ 1 = "RED.bmp"
</item>
<item Blue_Square>
/ 1 = "BLUE.bmp"
</item>
ETC....
<picture Red_Square>
/ items = Red_Square
/ position = counter.Red_Square_pos.selectedvalue
</picture>
<picture Blue_Square>
/ items = Blue_Square
/ position = counter.Blue_Square_pos.selectedvalue
</picture>
ETC....
<counter Red_Square_pos>
/ items = (1%, 2%, 3%, 4%, 5%, 6%, 7%, 8%, 9%, 10%, 11%, 12%, 13%, 14%, 15%, 16%, 17%, 18%, 19%, 20%, 21%, 22%, 23%, 24%, 25%, 26%, 27%, 28%, 29%, 30%, 31%, 32%, 33%, 34%, 35%, 36%, 37%, 38%, 39%, 61%, 62%, 63%, 64%, 65%, 66%, 67%, 68%, 69%, 70%, 71%, 72%, 73%, 74%, 75%, 76%, 77%, 78%, 79%, 80%, 81%, 82%, 83%, 84%, 85%, 86%, 87%, 88%, 89%, 90%, 91%, 92%, 93%, 94%, 95%, 96%, 97%, 98%, 99%, 100%)
/ not = (Blue_Square_pos, Green_Square_pos, Yellow_Square_pos, Black_Square_pos, Brown_Square_pos, Orange_Square_pos, Purple_Square_pos)
/ select = noreplace
/ selectionrate = always
</counter>
<counter Blue_Square_pos>
/ items = (1%, 2%, 3%, 4%, 5%, 6%, 7%, 8%, 9%, 10%, 11%, 12%, 13%, 14%, 15%, 16%, 17%, 18%, 19%, 20%, 21%, 22%, 23%, 24%, 25%, 26%, 27%, 28%, 29%, 30%, 31%, 32%, 33%, 34%, 35%, 36%, 37%, 38%, 39%, 61%, 62%, 63%, 64%, 65%, 66%, 67%, 68%, 69%, 70%, 71%, 72%, 73%, 74%, 75%, 76%, 77%, 78%, 79%, 80%, 81%, 82%, 83%, 84%, 85%, 86%, 87%, 88%, 89%, 90%, 91%, 92%, 93%, 94%, 95%, 96%, 97%, 98%, 99%, 100%)
/ not = (Red_Square_pos, Green_Square_pos, Yellow_Square_pos, Black_Square_pos, Brown_Square_pos, Orange_Square_pos, Purple_Square_pos)
/ select = noreplace
/ selectionrate = always
</counter>
***************** NOTE THAT I'VE REMOVED 40%-60% AS I DON'T WANT THE STIMULI AROUND THE CENTRE OF THE SCREEN
<trial Red_4_Same>
/ stimulustimes = [1 = fixation; 500 = Red_Square, Blue_Square; 600 = ; 1500 = Red_Square]
/ inputdevice = keyboard
/ correctresponse = ("z")
/ validresponse = ("m", "z")
/ trialduration = 2500
/ responsetime = 1500
/ responseinterrupt = immediate
</trial>
*******************
I'm not sure whether - because of the counter - the second presentation of the 'Red_Square' will be randomized... I'm also unable to check as I keep getting error messages for the picture elements:
<picture Red_Square>
/position: Missing '('.
Any help is greatly appreciated!
Thanks,
Jay