Millisecond Forums

Screen blank when image is presented

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

By Shona - 5/26/2014

Hi, 

When an image is presented on the screen, I would like for the rest of the screen to be blank. Do you know how I can do this? My script is pasted below. I'd be so grateful for your help!

Shona

---------------------------------------------------------------------------------------
                     *** STROOP TASK WITH KEYBOARD INPUT***
---------------------------------------------------------------------------------------      

---------------------------------------------------------------------------------------
*** DEFAULTS *****
---------------------------------------------------------------------------------------         
requires Inquisit 4
<defaults>
/minimumversion = "4.0.2.0"
/ screencolor = white
/ fontstyle = ("Arial", 5%, true, false, false, false, 5, 0)
/ txbgcolor = white
/ txcolor = black
/ inputdevice = keyboard
</defaults>


---------------------------------------------------------------------------------------
*** DATA *****
---------------------------------------------------------------------------------------      

see 'Expressions' for explanations of custom variables

***********
raw data
***********

<data> 
/file = "StroopWithControlKeyboard_raw.iqdat"
/separatefiles = true
/ columns = [date time subject blockcode trialcode stimulusitem stimulusnumber stimulusitem stimulusnumber stimulusitem stimulusnumber trialnum 
         latency response correct
         expressions.congruentlatency expressions.incongruentlatency expressions.controllatency 
         expressions.congruentcorrect expressions.incongruentcorrect expressions.controlcorrect]
</data>


**********
summary data
**********
<summarydata >
/file = "StroopwithCtrlKeyboard_summary.iqdat"
/columns = [script.startdate, script.starttime, script.subjectid, 
         expressions.congruentlatency expressions.incongruentlatency expressions.controllatency 
         expressions.congruentcorrect expressions.incongruentcorrect expressions.controlcorrect]
</summarydata>
------------------------------------------------------------------------------------
*** EXPRESSIONS*****
------------------------------------------------------------------------------------
/ congruentlatency:                  mean latency of all congruent trials
/ incongruentlatency:               mean latency of all incongruent trials
/ controllatency:                  mean latency of control trials
/ congruentcorrect:                  percent correct of all congruent trials
/ incongruentcorrect:               percent correct of all incongruent trials
/ controlcorrect:                  percent correct of all control trials


<expressions>
/ congruentlatency = meanlatency(trial.bluecongruent, trial.redcongruent, trial.greencongruent, trial.blackcongruent)
/ incongruentlatency = meanlatency(trial.blueincongruent, trial.redincongruent, trial.greenincongruent, trial.blackincongruent)
/ controllatency = meanlatency(trial.bluecontrol, trial.redcontrol, trial.greencontrol, trial.blackcontrol)
/ congruentcorrect = percentcorrect(trial.bluecongruent, trial.redcongruent, trial.greencongruent, trial.blackcongruent)
/ incongruentcorrect = percentcorrect(trial.blueincongruent, trial.redincongruent, trial.greenincongruent, trial.blackincongruent)
/ controlcorrect = percentcorrect(trial.bluecontrol, trial.redcontrol, trial.greencontrol, trial.blackcontrol)
</expressions>

------------------------------------------------------------------------------------
*** TEXTS AND TARGETS *****
------------------------------------------------------------------------------------
<text x>
/ items = ("X")
/ position = (50, 60)
/ fontstyle = ("Arial", 7%, true, false, false, false, 5, 0)
</text>

<text target>
/ items = ("*")
/ color = white
</text>

<text redreminder>
/ items = ("d = red")
/ position = (20%, 20%)
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 0)
/ erase = false
/ txcolor = darkgray
</text>

<text greenreminder>
/ items = ("f = green")
/ position = (40%, 20%)
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 0)
/ erase = false
/ txcolor = darkgray
</text>

<text bluereminder>
/ items = ("j = blue")
/ position = (60%, 20%)
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 0)
/ erase = false
/ txcolor = darkgray
</text>

<text blackreminder>
/ items = ("k = black")
/ position = (80%, 20%)
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 0)
/ erase = false
/ txcolor = darkgray
</text>

<text redincongruent>
/ items = ("green", "blue", "black")
/ color = red
</text>

<text redcongruent>
/ items = ("red")
/ color = red
</text>

<text redcontrol>
/ items = ("green", "blue", "black")
/ color = red
/ txbgcolor = red
</text>

<text blueincongruent>
/ items = ("green", "red", "black")
/ color = blue
</text>

<text bluecongruent>
/ items = ("blue")
/ color = blue
</text>

<text bluecontrol>
/ items = ("green", "red", "black")
/ color = blue
/ txbgcolor = blue
</text>

<text greenincongruent>
/ items = ("blue", "red", "black")
/ color = green
</text>

<text greencongruent>
/ items = ("green")
/ color = green
</text>

<text greencontrol>
/ items = ("blue", "red", "black")
/ color = green
/ txbgcolor = green
</text>

<text blackincongruent>
/ items = ("blue", "red", "green")
/ color = black
</text>

<text blackcongruent>
/ items = ("black")
/ color = black
</text>

<text blackcontrol>
/ items = ("green", "red", "green")
/ color = black
/ txbgcolor = black
</text>


<item IAPS>
/1= "HP1_4608.jpg"
/2= "HP1_4681.jpg"
/3= "HP1_8185.jpg"
/4= "HP1_8186.jpg"
/5= "HP1_8370.jpg"
/6= "HP2_4651.JPG"
/7= "HP2_4656.JPG"
/8= "HP2_4658.JPG"
/9= "HP2_5629.JPG"
/10= "HP2_8300.JPG"
/11= "HP3_4659.JPG"
/12= "HP3_4689.JPG"
/13= "HP3_5621.jpg"
/14= "HP3_8030.JPG"
/15= "HP3_8179.JPG"
/16= "HP4_4607.JPG"
/17= "HP4_4660.JPG"
/18= "HT1_1300.jpg"
/19= "HT1_6230.jpg"
/20= "HT1_6370.jpg"
/21= "HT1_6550.jpg"
/22= "HT1_9250.jpg"
/23= "HT2_1120.JPG"
/24= "HT2_1201.jpg"
/25= "HT2_1930.jpg"
/26= "HT2_6242.JPG"
/27= "HT2_8480.JPG"
/28= "HT3_3030.JPG"
/29= "HT3_3500.JPG"
/30= "HT3_6300.JPG"
/31= "HT3_6313.JPG"
/32= "HT3_6350.JPG"
/33= "HT4_1040.jpg"
/34= "HT4_2800.jpg"
/35= "MP1_1600.jpg"
/36= "MP1_2222.jpg"
/37= "MP1_2310.jpg"
/38= "MP1_5220.jpg" 
/39= "MP1_5780.jpg"
/40= "MP2_1419.jpg"
/41= "MP2_1601.jpg"
/42= "MP2_2000.jpg"
/43= "MP2_2025.jpg"
/44= "MP2_2518.jpg"
/45= "MP3_2388.jpg"
/46= "MP3_2510.JPG"
/47= "MP3_2515.JPG"
/48= "MP3_2630.JPG"
/49= "MP3_5780.JPG"
/50= "MP4_1726.jpg" 
/51= "MP4_2010.JPG"
/52= "MT1_2276.jpg"
/53= "MT1_2590.jpg"
/54= "MT1_2750.jpg"
/55= "MT1_9000.jpg"
/56= "MT1_9265.jpg"
/57= "MT2_2399.jpg"
/58= "MT2_2491.jpg"
/59= "MT2_2695.jpg"
/60= "MT2_2753.JPG"
/61= "MT2_6010.JPG"
/62= "MT3_2595.jpg"
/63= "MT3_2722.jpg"
/64= "MT3_9010.JPG"
/65= "MT3_9090.JPG"
/66= "MT3_9220.JPG"
/67= "MT4_2120.JPG"
/68= "MT4_2141.JPG"
/69= "Neut1_2440.jpg"
/70= "Neut1_2480.jpg"
/71= "Neut1_7060.jpg"
/72= "Neut1_7110.jpg"
/73= "Neut1_7175.jpg"
/74= "Neut2_2206.JPG"
/75= "Neut2_7010.JPG"
/76= "Neut2_7224.jpg"
/77= "Neut2_7234.jpg"
/78= "Neut2_9360.jpg"
/79= "Neut3_7000.JPG"
/80= "Neut3_7004.jpg"
/81= "Neut3_7020.jpg"
/82= "Neut3_7031.jpg"
/83= "Neut3_7950.jpg"
/84= "Neut4_2840.jpg"
</item>

<item fixation> 
/1= "fixation.jpg"
</item>


<item blank> 
/1= "blank.jpg"
</item>


<picture fixation>
/ items = fixation
/ size = (70%, 70%)
</picture>


<picture blank>
/ items = blank
/ size = (70%, 70%)
</picture>

<picture IAPS>
/ items = IAPS
/ size = (70%, 70%)
/select = noreplacenorepeat
</picture>


------------------------------------------------------------------------------------
*** INSTRUCTION PAGES *****
------------------------------------------------------------------------------------

<trial instructions>
/ stimulusframes = [1=instructions]
/ validresponse = (" ")
/ recorddata = false
</trial>

<text instructions>
/ items = instructions
/ position = (50%, 50%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = left
/ select = sequence
/ resetinterval = 0
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 238)
</text>


<item instructions>
/1 = "Welcome to the Stroop Color Task.

Press the space bar to continue.
"
/2 = "In the following task you will see words presented in one four colors: red, blue, green, or black. Your task is to name the color in which each word is printed while ignoring what the words actually say. 

Indicate the color of the word by pressing either of the following keys:
- d for red words
- f for green words
- j for blue words
- k for black words

Try to respond as quickly and accurately as you can, because you will be timed. If an incorrect response is made, a red X will be flashed on the screen.

Place your index and middle fingers on the d, f, j, and k keys so that you are ready to respond.

Press the space bar to start the task.
"
/3 = "This is the end of the task. Thank you for your participation. 

Summary of average response latencies

Congruent trials: <%expressions.congruentlatency%> ms
Incongruent trials: <%expressions.incongruentlatency%> ms
Control trials: <%expressions.controllatency%> ms

Press the space bar to continue."
</item>

------------------------------------------------------------------------------------
*** TRIALS *****
------------------------------------------------------------------------------------

<trial redcongruent> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=redcongruent, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("d")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial redincongruent> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=redincongruent, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("d")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial redcontrol> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=redcontrol, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("d")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial greencongruent> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=greencongruent, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("f")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial greenincongruent> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=greenincongruent, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("f")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial greencontrol> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=greencontrol, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("f")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial bluecongruent> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=bluecongruent, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("j")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial blueincongruent> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=blueincongruent, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("j")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial bluecontrol> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=bluecontrol, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("j")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial blackcongruent> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=blackcongruent, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("k")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial blackincongruent> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=blackincongruent, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("k")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

<trial blackcontrol> 
/ pretrialpause = 200
/ stimulustimes = [0=fixation; 1300=IAPS; 1550=blank; 1580=blackcontrol, redreminder, greenreminder, bluereminder, blackreminder]
/ correctresponse = ("k")
/ validresponse = ("d", "f", "j", "k")
/ errormessage = true(x, 400)
</trial>

------------------------------------------------------------------------------------
*** BLOCKS *****
------------------------------------------------------------------------------------

<block stroop>
/ trials = [1-2=instructions; 3-86 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol); 87=instructions]
</block>

------------------------------------------------------------------------------------
*** EXPERIMENT*****
------------------------------------------------------------------------------------

<expt>
/ blocks = [1=stroop]
</expt>

------------------------------------------------------------------------------------
*** End of File*****
------------------------------------------------------------------------------------



By Dave - 5/26/2014

You need to set up a <shape> or other stimulus element that covers the entire screen and present it at the same time as the <picture> stimulus.

/ stimulustimes = [...; 500 = shapethatcoversentirescreen, picturestimulus; ...]