Millisecond Forums

same amount of presentation of one stimuli in go and no-go trials

https://forums.millisecond.com/Topic8586.aspx

By Silva - 8/20/2012

Hi,


I have created a no-go task in which the go and no-go signal are preceded by 60 different iaps pictures for every trial (360 trials). I have created the task so 2/3 of the trials are go trials (240 tr) and 1/3 (120 tr) of the trials are no-go trials. Only one block is presented. Since every picture will be presented 6 times, I would like to make sure that every picture will appear 4 times preceding a go signal and 2 times preceding a no-go signal. However for some reason inquisit does not do this automatically. Does anyone know how I can accomplish this? Scroll down for the relevant script details.





**********  STIMULI  *******************************************


<item kader>


/ 1 = "expkader.bmp"


</item>



<item eraser>


/ 1 = "experaser.bmp"


</item>



<text go>


/ numitems = 1


/ items = ("     #     ")


/ font = ("Arial Black", -24, 700, 0, 34)


/ txbgcolor = (255,255,255)


/ txcolor = (0,0,0)


</text>



<text nogo>


/ numitems = 1


/ items = ("     §     ")


/ font = ("Arial Black", -24, 700, 0, 34)


/ txbgcolor = (255,255,255)


/ txcolor = (0,0,0)


</text>


*********IAPS**********************


<item 7000>


/ 1 =  "7000.JPG"


</item>



<item 7187>


/ 1 =  "7187.JPG"


</item>



<item 8031>


/ 1 =  "8031.JPG"


</item>



<item 8170>


/ 1 =  "8170.JPG"


</item>



<item 6360>


/ 1 =  "6360.JPG"


</item>


ETCETERA UNTIL 60 PICTURES!!


***************


<picture eraser>


/ numitems = 1


/ items = eraser


/ position = (50, 50)


</picture>


******IAPS-GROUPS***********


<picture practice>


/ numitems = 6


/ items = ("8031.JPG", "8170.JPG", "6360.JPG", "3051.JPG", "7000.JPG", "7187.JPG")


/ select = noreplacenorepeat


/ selectionrate = trial


/ position = (50, 50)


</picture>



<picture neutral>


/ numitems = 20


/ items = ("7004.JPG", "7006.JPG", "7010.JPG", "7020.JPG", "7035.JPG", "7041.JPG", "7053.JPG",  "7059.JPG",  "7080.JPG",  "7090.JPG",  "7100.JPG",  "7150.JPG",  "7161.JPG",  "7175.JPG",  "7179.JPG",  "7185.JPG",  "7217.JPG",  "7233.JPG",  "7235.JPG",  "7705.JPG")


/ select = noreplacenorepeat


/ selectionrate = trial


/ position = (50, 50)


</picture>



<picture threat>


/ numitems = 20


/ items = ("2811.JPG", "6243.JPG", "6260.JPG", "6510.JPG", "6315.JPG", "6540.JPG", "6560.JPG",  "6571.JPG",  "6821.JPG",  "9423.JPG",  "9425.JPG",  "9428.JPG",  "9429.JPG",  "8485.JPG",  "9050.JPG",  "9250.JPG",  "9253.JPG",  "9254.JPG",  "9400.JPG",  "9420.JPG")


/ select = noreplacenorepeat


/ selectionrate = trial


/ position = (50, 50)


</picture>



<picture thrill>


/ numitems = 20


/ items = ("5621.JPG", "5623.JPG", "5626.JPG", "5629.JPG", "8021.JPG", "8034.JPG", "8040.JPG",  "8080.JPG",  "8161.JPG",  "8178.JPG",  "8180.JPG",  "8186.JPG",  "8193.JPG",  "8200.JPG",  "8210.JPG",  "8300.JPG",  "8370.JPG",  "8400.JPG",  "8490.JPG",  "8499.JPG")


/ select = noreplacenorepeat


/ selectionrate = trial


/ position = (50, 50)


</picture>



**********  trials  **********


---test___


<trial thrillgo>

/ pretrialpause = 100

/ trialcode = "thrillgo"

/ validresponse = (" ")

/ correctresponse = (" ")

/ responsemode = timeout (400)

/ errormessage = (slowmessage, 200)

/ stimulustimes = [0 = kader; 500 = thrill; 750 = eraser,go]

/ posttrialpause = 500

</trial>


<trial thrillnogo>

/ pretrialpause = 100

/ trialcode = "thrillnogo"

/ validresponse = (" ")

/ correctresponse = (noresponse)

/ responsemode = timeout (400)

/ stimulustimes = [0 = kader; 500 = thrill; 750 = eraser,nogo]

/ posttrialpause = 500

</trial>



<trial threatgo>

/ pretrialpause = 100

/ trialcode = "threatgo"

/ validresponse = (" ")

/ correctresponse = (" ")

/ responsemode = timeout (400)

/ errormessage = (slowmessage, 200)

/ stimulustimes = [0 = kader; 500 = threat; 750 = eraser,go]

/ posttrialpause = 500

</trial>


<trial threatnogo>

/ pretrialpause = 100

/ trialcode = "threatnogo"

/ validresponse = (" ")

/ correctresponse = (noresponse)

/ responsemode = timeout (400)

/ stimulustimes = [0 = kader; 500 = threat; 750 = eraser,nogo]

/ posttrialpause = 500

</trial>


<trial neutgo>

/ pretrialpause = 100

/ trialcode = "neutgo"

/ validresponse = (" ")

/ correctresponse = (" ")

/ responsemode = timeout (400)

/ errormessage = (slowmessage, 200)

/ stimulustimes = [0 = kader; 500 = neutral; 750 = eraser,go]

/ posttrialpause = 500

</trial>


<trial neutnogo>

/ pretrialpause = 100

/ trialcode = "neutnogo"

/ validresponse = (" ")

/ correctresponse = (noresponse)

/ responsemode = timeout (400)

/ stimulustimes = [0 = kader; 500 = neutral; 750 = eraser,nogo] 

/ posttrialpause = 500

</trial>


__________________________________________________________



**********  block  **********


<block practice1>

/ screencolor = (0, 0, 0)

/ preinstructions = (intro3)

/ trials = [1-18 = noreplacenorepeat(practicego)]

</block>


<block practice2>

/ screencolor = (0, 0, 0)

/ preinstructions = (intro35)

/ trials = [1-18 = noreplacenorepeat(practice,practice,practicenogo)]

</block>


<counter practice>

/ select = selectionmode(practicego, practicego, practicenogo)

</counter>


<block test>

/ screencolor = (0, 0, 0)

/ preinstructions = (intro4)

/ trials = [1-360 = noreplace(threatgo,thrillgo,neutgo,threatgo,thrillgo,neutgo,threatnogo,thrillnogo,neutnogo)]

/ postinstructions = (end)

</block>



By Dave - 8/20/2012

You'll have to encode the desired stimulus combinations in the script. You can use e.g. <counter> or <list> elements to do that. For a simple introduction, see the "How to present stimulus pairs" topic in the Inquisit documentation. Then see e.g. https://www.millisecond.com/forums/Topic2274.aspx#2274. The forum's search facility will also reveal many other threads where such things have been discussed at length.

By Silva - 8/23/2012

Thanks you for your reply! I will try it this way :)