Group: Forum Members
Posts: 40,
Visits: 148
|
Dear Inquisiters, I am trying to program an experiment in which a circle in the middle of the screen should change color intermittently, becoming lighter (different shades of white) to then turn back to its original color (grey, cicle_195). Participants are instructed to press the spacebar whenever they are able to detect this color change. I want that whenever the circle becomes lighter, Inquisit selects randomly one of the different pictures of circles that I uploaded as items, and I want this to happen continuously within the same trial. For example, if on the first trial the circle becomes lighter 19 times, I want the picture to be selected newly 19 times, so that participants do not see always the same picture in one trial. I thought that the problem would have been solved by using a counter or a list and by using /selectionrate = always, but Inquisit keeps selecting a new picture for each trial. Here is the code example: <picture circle_195> / items = ("195.png") / position = (50%,50%) /size=(30%, 30%) </picture> <item circle_w> /1 = "255.png" /2 = "250.png" /3 = "245.png" /4 = "240.png" /5 = "235.png" /6 = "230.png" /7="225.png" /8="220.png" /9="215.png" /10="210.png" /11="205.png" /12="197.png" </item>
<picture circle> / items = circle_w / select = picselect / position = (50%,50%) /size=(30%, 30%) </picture>
<counter picselect> /items= (1,2,3,4,5,6,7,8,9,10,11,12) /select =noreplace /selectionrate = always </counter>
<trial baseline_1> / ontrialbegin = [ values.spacebarpresscount = ""; values.timeofresponse = ""; values.trialtype = "ET"; values.trialcondition = "safe"; ] /stimulustimes=[ 0=circle_195;
757= circle; 1694= circle; 2821= circle; 3943= circle; 5114= circle; 6204= circle; 7312= circle; 8380= circle; 9460= circle; 10615= circle; 11681= circle; 12805= circle; 13889= circle; 14986= circle; 16149= circle; 17259= circle; 18491= circle; 19631= circle;
802= circle_195; 1739= circle_195; 2866= circle_195; 3988= circle_195; 5159= circle_195; 6249= circle_195; 7357= circle_195; 8425= circle_195; 9505= circle_195; 10660= circle_195; 11726= circle_195; 12850= circle_195; 13934= circle_195; 15031= circle_195; 16194= circle_195; 17304= circle_195; 18536= circle_195; 19676= circle_195; ] / trialduration = 19676 / inputdevice = keyboard / beginresponsetime = -1
/ responseinterrupt = trial / validresponse = (-57, 0) / correctresponse = (0) / showmousecursor = false / isvalidresponse = [if(trial.baseline_1.response==57){ values.spacebarpresscount += 1; values.timeofresponse=concat(concat(values.timeofresponse, trial.baseline_1.latency),","); false};] / branch = [ trial.warning_1; ] </trial>
<trial warning_1> / ontrialbegin = [ values.spacebarpresscount = ""; values.timeofresponse = ""; values.trialtype = "ET"; values.trialcondition = "safe"; ] /stimulustimes=[ 0=circle_195,flowers; 454= circle; 1568= circle; 2735= circle; 3919= circle; 5044= circle; 6303= circle; 7445= circle; 8664= circle; 9798= circle; 11005= circle; 12210= circle; 13275= circle; 14446= circle; 15630= circle; 16737= circle; 17852= circle; 19019= circle; 499= circle_195; 1613= circle_195; 2780= circle_195; 3964= circle_195; 5089= circle_195; 6348= circle_195; 7490= circle_195; 8709= circle_195; 9843= circle_195; 11050= circle_195; 12255= circle_195; 13320= circle_195; 14491= circle_195; 15675= circle_195; 16782= circle_195; 17897= circle_195; 19064= circle_195; ] / trialduration = 19064+1000 / inputdevice = keyboard / beginresponsetime = -1 / responseinterrupt = trial / validresponse = (-57, 0) / correctresponse = (0) / showmousecursor = false / isvalidresponse = [if(trial.warning_1.response==57){ values.spacebarpresscount += 1; values.timeofresponse=concat(concat(values.timeofresponse, trial.warning_1.latency),","); false};] / branch = [ trial.pausa; ] </trial> <trial pausa> / stimulusframes = [1=pausa] / timeout = 15000 / branch = [ trial.space;] </trial>
<text pausa> / fontstyle = ("Trebuchet MS", 3%, false, false, false, false, 5, 1) / items = ("Prenditi una pausa e riposati. Appena compare la schermata con scritto di premere la barra spaziatrice potrai continuare l esperimento") / size = (60%, 40%) </text>
<text space> / txcolor = white / fontstyle = ("Arial", 20pt, true) / items = ("Press the spacebar to continue") </text>
<trial space> / stimulusframes = [1=space] / inputdevice = keyboard / correctresponse =(57) / validresponse = (57) / posttrialpause = 500 </trial>
<block acc> / trials = [1=baseline_1; ]
If needed, I can provide the full script with the pictures too! Thank you so much in advance!!
|