Hello
I am pretty new to Inquisit, so I apologise if the following questions are stupid.
I have managed to modify the verbal stroop task (downloaded from Inquisit task library) so it runs 3 blocks: word reading, colour naming and incongruent colour naming. Each block is preceded by a practice block of 3 trials.
I have 2 questions:
1. I would like to be able to repeat the practice for each block by pressing a key on the keyboard (i.e. "r"). That is, when the practice block ends, I would like to present a screen saying something like "Would you like to repeat the practice". Then depending on what key I press, the practice will be repeated or the experiment will continue to the test block. I don't know how to do this.
2. I would like to randomise the trials in my test blocks, so that no trial type is repeated more than 3 times in a row (e.g., the red square is presented max 3 times in a row). I have looked on the forum, but couldn't find a way to do this. Ideally for the incongruent stimuli I would like to make sure that both the colour and meaning for the word is not repeated more than 3 times in a row, but that might end up being to complicated...
Any help much appreciated - thanks!
My script looks like this so far:
---------------------------------------------------------------------------------------
*** STROOP TASK WITH VOICE RECORDING *****
---------------------------------------------------------------------------------------
I have modified this script in accordance with Leon-Carrion et al. 2004.
This version includes three tasks administered in a set order:
1. Word reading (WR)
2. Colour naming (CN)
3. Incongruent colour naming of colour words (INC)
Each condition is preceded by 3 practice trials in a set sequence.
Following practice 20 trials are presented in each condition.
Stimulus colours: Blue, Red, Green
---------------------------------------------------------------------------------------
*** DEFAULTS *****
---------------------------------------------------------------------------------------
requires Inquisit 4.0.2.0 or higher
<defaults>
/minimumversion = "4.0.2.0"
/ fontstyle = ("Arial", 3.00%, false, false, false, false, 5, 1)
/ inputdevice = voicerecord
/ posttrialpause = 500
</defaults>
---------------------------------------------------------------------------------------
*** DATA *****
---------------------------------------------------------------------------------------
---------
raw data
---------
<data>
/file = "StroopWithVoiceRecording_raw.iqdat"
/separatefiles = true
/ columns = [date time subject trialcode blockcode blocknum trialnum latency response stimulusitem stimulusitem]
</data>
---------
summary data
---------
<summarydata >
/file = "StroopWithVoiceRecording_summary.iqdat"
/columns = [script.startdate, script.starttime, script.subjectid]
</summarydata>
------------------------------------------------------------------------------------
*** TEXTS AND TARGETS *****
------------------------------------------------------------------------------------
<text false>
/ items = ("false")
/ color = (255, 0, 0)
/ position = (50,80)
</text>
<item fixation>
/1 ="+"
</item>
<item square>
/1 ="■"
</item>
<text fixationblack>
/ items = fixation
/ color = black
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text fixationwhite>
/ items = fixation
/ color = white
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text bluegreen>
/ items = ("blue")
/ color = green
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text redgreen>
/ items = ("red")
/ color = green
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text greenblue>
/ items = ("green")
/ color = blue
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text redblue>
/ items = ("red")
/ color = blue
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text greenred>
/ items = ("green")
/ color = red
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text bluered>
/ items = ("blue")
/ color = red
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text redblack>
/ items = ("red")
/ color = black
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text greenblack>
/ items = ("green")
/ color = black
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text blueblack>
/ items = ("blue")
/ color = black
/ fontstyle = ("Arial", 8.00%, false, false, false, false, 5, 1)
</text>
<text target>
/ items = ("*")
/ color = (255, 255, 255)
</text>
<text greensquare>
/ items = square
/ color = (0, 255, 0)
/ fontstyle = ("Arial", 15.00%, false, false, false, false, 5, 1)
</text>
<text bluesquare>
/ items = square
/ color = (0, 0, 255)
/ fontstyle = ("Arial", 15.00%, false, false, false, false, 5, 1)
</text>
<text redsquare>
/ items = square
/ color = (255, 0, 0)
/ fontstyle = ("Arial", 15.00%, false, false, false, false, 5, 1)
</text>
<text targetsquare>
/ items = ("*")
/ color = (255, 255, 255)
</text>
------------------------------------------------------------------------------------
*** INSTRUCTION PAGES *****
------------------------------------------------------------------------------------
<instruct>
/ nextkey = (" ")
/ lastlabel = "Press the spacebar to continue"
/ nextlabel = "Press the spacebar to continue"
/ wait = 500
</instruct>
<page welcome>
^^^^
Welcome to the Stroop Color Task. In the following you will be doing three
short tasks. You will receive instructions before each task.
</page>
<page page1>
In the following your task is to read the word you see on the screen (green, red or blue). Read the word as accurately and quickly as you can.
</page>
<page page2>
In the following your task is to say the colour of the square you see on the screen. The square is either green, red or blue. Say the name of the colour as accurately and quickly as you can.
</page>
<page page3>
In the following task you will see words written in green, red or blue. Your task is to say the colour of the word (not the meaning of the word). For example, if you see the word "red" written in blue, you should say "blue". Is that clear? Name the colour that the word is written in as accurately and quickly as you can.
</page>
<page end>
This is the end. Thank you for your participation.
</page>
------------------------------------------------------------------------------------
*** TRIALS *****
------------------------------------------------------------------------------------
<trial wordsredblack>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=redblack]
</trial>
<trial wordsgreenblack>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=greenblack]
</trial>
<trial wordsblueblack>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=blueblack]
</trial>
<trial bluegreen>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=bluegreen]
</trial>
<trial redgreen>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=redgreen]
</trial>
<trial greenblue>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=greenblue]
</trial>
<trial redblue>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=redblue]
</trial>
<trial greenred>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=greenred]
</trial>
<trial bluered>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=bluered]
</trial>
<trial squaresred>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=redsquare]
</trial>
<trial squaresgreen>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=greensquare]
</trial>
<trial squaresblue>
/ stimulustimes = [0=target;500=fixationblack;1000=fixationwhite;1500=bluesquare]
</trial>
------------------------------------------------------------------------------------
*** BLOCKS *****
------------------------------------------------------------------------------------
<block WRprac>
/preinstructions =(page1)
/ trials = [1 =sequence(wordsredblack,wordsgreenblack,wordsblueblack)]
</block>
<block WR>
/preinstructions =(page1)
/ trials = [1-6 =noreplace(wordsredblack,wordsgreenblack,wordsblueblack)]
</block>
<block CNprac>
/preinstructions =(page2)
/ trials = [1 =sequence(squaresgreen,squaresblue,squaresred)]
</block>
<block CN>
/preinstructions =(page2)
/ trials = [1-6 =noreplace(squaresred,squaresgreen,squaresblue)]
</block>
<block INCprac>
/preinstructions =(page3)
/ trials = [1 =sequence(bluered,redgreen,greenblue)]
</block>
<block INC>
/preinstructions =(page3)
/ trials = [1-6 =noreplace(bluegreen,redgreen,greenblue,redblue,greenred,bluered)]
</block>
------------------------------------------------------------------------------------
*** EXPERIMENT*****
------------------------------------------------------------------------------------
<expt>
/ blocks = [1=WRprac; 2=WR; 3=CNprac; 4=CN; 5=INCprac; 6=INC]
/ preinstructions = (welcome)
/ postinstructions = (end)
</expt>
------------------------------------------------------------------------------------
*** End of File*****
------------------------------------------------------------------------------------