Pictures are not presenting when I run my task


Author
Message
Sarah.Skromanis
Sarah.Skromanis
New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)
Group: Forum Members
Posts: 2, Visits: 11
Hi, I have written a script for a reversal learning task, but when I run the task the images don't come up on the screen. I can't work out what I have done wrong or what I need to change. This is my first time writing a script in Inquisit, so it could all be completely wrong. Any advice would be greatly appreciated. I have pasted the script below in case it is of help. 
Thank you.

<parameters>
/showTotalPoints = true
/leftKey = 30
/leftKeyLabel = "A"
/rightKey = 38
/rightKeyLabel = "L"
</parameters>


<instruct>
/ fontstyle = ("Arial" , 20pt)
/ nextlabel = "(Space)Press the spacebar to continue"
/ lastlabel = "(Space)Press the spacebar to continue"
/ inputdevice = keyboard
</instruct>

<page introduction>
^^^^^^^^^Welcome and thank you for participating.
</page>

<page practiceinstructions>
^^^^Before you begin the actual task, you will complete some practice items.
^^^^You will be asked to look at a series of facial expressions that will appear on either positive or negative backgrounds.
^^Press the "A" key when you see a HAPPY face.
^^But press the "L" key when you see an ANGRY face.
^^^^To begin the practice trial, press the spacebar
</page>

<page begin>
^^^^The practice trial is now complete. Press the spacebar to begin the task.
</page>

<page block_one_instructions>
^^^^Just like the practice items, you will be asked to look at a series of facial expressions that will appear on either positive or negative backgrounds.
^^Press the "A" key when you see a HAPPY face.
^^But press the "L" key when you see an ANGRY face.
^^To begin the task, press the spacebar.
</page>

<page block_two_instructions>
^^^^You will now be asked to look at some more facial expressions that will appear on either positive or negative backgrounds.
^^This time, you need to press the "A" key you see a HAPPY face on a positive background.
^^and the "L" key when you see an ANGRY face on a negative background.
^^But, when you see a HAPPY face on a negative background OR an ANGRY face on a positive background, do not press anything.
^^To begin, press the spacebar.
</page>

<page block_three_instructions>
^^^^You will now be asked to look at some more facial expressions that will appear on either positive or negative backgrounds.
^^This time, you need to press the "A" key when you see a HAPPY face on a negative background.
^^and the "L" key when you see an ANGRY face on a positive background.
^^But, when you see a HAPPY face on a positive background OR an ANGRY face on a negative background, do not press anything.
^^To begin, press the spacebar.
</page>

<page finish>
^^^^The task has now ended. Thank you for participating.
</page>


<item practice>
/1 = "AngryFire_Male_Practice.jpg"
/2 = "AngryFire_Female_Practice.jpg"
/3 = "AngryKnife_Male_Practice.jpg"
/4 = "AngryKnife_Female_Practice.jpg"
/5 = "HappyNature_Male_Practice.jpg"
/6 = "HappyNature_Female_Practice.jpg"
/7 = "HappyBirthday_Male_Practice.jpg"
/8 = "HappyBirthday_Female_Practice.jpg"
</item>

<item congruent>
/1 = "AngryFire_Female_40%.jpg"
/2 = "AngryFire_Female_60%.jpg"
/3 = "AngryFire_Female_80%.jpg"
/4 = "AngryFire_Female_100%.jpg"
/5 = "AngryFire_Male_40%.jpg"
/6 = "AngryFire_Male_60%.jpg"
/7 = "AngryFire_Male_80%.jpg"
/8 = "AngryFire_Male_100%.jpg"
/9 = "AngryKnife_Female_40%.jpg"
/10 = "AngryKnife_Female_60%.jpg"
/11 = "AngryKnife_Female_80%.jpg"
/12 = "AngryKnife_Female_100%.jpg"
/13 = "AngryKnife_Male_40%.jpg"
/14 = "AngryKnife_Male_60%.jpg"
/15 = "AngryKnife_Male_80%.jpg"
/16 = "AngryKnife_Male_100%.jpg"
/17 = "HappyBirthday_Female_40%.jpg"
/18 = "HappyBirthday_Female_60%.jpg"
/19 = "HappyBirthday_Female_80%.jpg"
/20 = "HappyBirthday_Female_100%.jpg"
/21 = "HappyBirthday_Male_40%.jpg"
/22 = "HappyBirthday_Male_60%.jpg"
/23 = "HappyBirthday_Male_80%.jpg"
/24 = "HappyBirthday_Male_100%.jpg"
/25 = "HappyNature_Female_40%.jpg"
/26 = "HappyNature_Female_60%.jpg"
/27 = "HappyNature_Female_80%.jpg"
/28 = "HappyNature_Female_100%.jpg"
/29 = "HappyNature_Male_40%.jpg"
/30 = "HappyNature_Male_60%.jpg"
/31 = "HappyNature_Male_80%.jpg"
/32 = "HappyNature_Male_100%.jpg"
</item>

<item incongruent>
/1 = "AngryBirthday_Female_40%.jpg"
/2 = "AngryBirthday_Female_60%.jpg"
/3 = "AngryBirthday_Female_80%.jpg"
/4 = "AngryBirthday_Female_100%.jpg"
/5 = "AngryBirthday_Male_40%.jpg"
/6 = "AngryBirthday_Male_60%.jpg"
/7 = "AngryBirthday_Male_80%.jpg"
/8 = "AngryBirthday_Male_100%.jpg"
/9 = "AngryNature_Male_40%.jpg"
/10 = "AngryNature_Male_60%.jpg"
/11 = "AngryNature_Male_80%.jpg"
/12 = "AngryNature_Male_100%.jpg"
/13 = "AngryNature_Female_40%.jpg"
/14 = "AngryNature_Female_60%.jpg"
/15 = "AngryNature_Female_80%.jpg"
/16 = "AngryNature_Female_100%.jpg"
/17 = "HappyKnife_Male_40%.jpg"
/18 = "HappyKnife_Male_60%.jpg"
/19 = "HappyKnife_Male_80%.jpg"
/20 = "HappyKnife_Male_100%.jpg"
/21 = "HappyKnife_Female_40%.jpg"
/22 = "HappyKnife_Female_60%.jpg"
/23 = "HappyKnife_Female_80%.jpg"
/24 = "HappyKnife_Female_100%.jpg"
/25 = "HappyFire_Male_40%.jpg"
/26 = "HappyFire_Male_60%.jpg"
/27 = "HappyFire_Male_80%.jpg"
/28 = "HappyFire_Male_100%.jpg"
/29 = "HappyFire_Female_40%.jpg"
/30 = "HappyFire_Female_60%.jpg"
/31 = "HappyFire_Female_80%.jpg"
/32 = "HappyFire_Female_100%.jpg"
</item>

<picture practice_items>
/ items = practice
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<picture congruent_items>
/ items = congruent
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<picture incongruent_items>
/ items = incongruent
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<text fixation>
/ items = ("+")
/ fontstyle = ("Arial", 10%)
/ position = (50%, 50%)
/ size = (8%, 10%)
</text>


<trial practice_items>
/ stimulustimes = [500=fixation; 180000=practice_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<trial congruent_items>
/ stimulustimes = [500=fixation; 180000=congruent_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<trial incongruent_items>
/ stimulustimes = [500=fixation; 180000=incongruent_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<block practice_items>
/ preinstructions = (introduction, practiceinstructions)
/ trials = [1-8=noreplace(practice_items)]
/ recorddata = false
</block>

<block one>
/ preinstructions = (block_one_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ recorddata = true
</block>

<block two>
/ preinstructions = (block_two_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ recorddata = true
</block>

<block three>
/ preinstructions = (block_three_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ postinstructions = (finish)
/ recorddata = true
</block>


<expt>
/ blocks = [1=block.practice_items; 2=block.one; 3=block.two; 4=block.three]
</expt>

<data>
/ format = tab
</data>
Dave
Dave
Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)
Group: Administrators
Posts: 10K, Visits: 55K
Sarah.Skromanis - 4/24/2020
Hi, I have written a script for a reversal learning task, but when I run the task the images don't come up on the screen. I can't work out what I have done wrong or what I need to change. This is my first time writing a script in Inquisit, so it could all be completely wrong. Any advice would be greatly appreciated. I have pasted the script below in case it is of help. 
Thank you.

<parameters>
/showTotalPoints = true
/leftKey = 30
/leftKeyLabel = "A"
/rightKey = 38
/rightKeyLabel = "L"
</parameters>


<instruct>
/ fontstyle = ("Arial" , 20pt)
/ nextlabel = "(Space)Press the spacebar to continue"
/ lastlabel = "(Space)Press the spacebar to continue"
/ inputdevice = keyboard
</instruct>

<page introduction>
^^^^^^^^^Welcome and thank you for participating.
</page>

<page practiceinstructions>
^^^^Before you begin the actual task, you will complete some practice items.
^^^^You will be asked to look at a series of facial expressions that will appear on either positive or negative backgrounds.
^^Press the "A" key when you see a HAPPY face.
^^But press the "L" key when you see an ANGRY face.
^^^^To begin the practice trial, press the spacebar
</page>

<page begin>
^^^^The practice trial is now complete. Press the spacebar to begin the task.
</page>

<page block_one_instructions>
^^^^Just like the practice items, you will be asked to look at a series of facial expressions that will appear on either positive or negative backgrounds.
^^Press the "A" key when you see a HAPPY face.
^^But press the "L" key when you see an ANGRY face.
^^To begin the task, press the spacebar.
</page>

<page block_two_instructions>
^^^^You will now be asked to look at some more facial expressions that will appear on either positive or negative backgrounds.
^^This time, you need to press the "A" key you see a HAPPY face on a positive background.
^^and the "L" key when you see an ANGRY face on a negative background.
^^But, when you see a HAPPY face on a negative background OR an ANGRY face on a positive background, do not press anything.
^^To begin, press the spacebar.
</page>

<page block_three_instructions>
^^^^You will now be asked to look at some more facial expressions that will appear on either positive or negative backgrounds.
^^This time, you need to press the "A" key when you see a HAPPY face on a negative background.
^^and the "L" key when you see an ANGRY face on a positive background.
^^But, when you see a HAPPY face on a positive background OR an ANGRY face on a negative background, do not press anything.
^^To begin, press the spacebar.
</page>

<page finish>
^^^^The task has now ended. Thank you for participating.
</page>


<item practice>
/1 = "AngryFire_Male_Practice.jpg"
/2 = "AngryFire_Female_Practice.jpg"
/3 = "AngryKnife_Male_Practice.jpg"
/4 = "AngryKnife_Female_Practice.jpg"
/5 = "HappyNature_Male_Practice.jpg"
/6 = "HappyNature_Female_Practice.jpg"
/7 = "HappyBirthday_Male_Practice.jpg"
/8 = "HappyBirthday_Female_Practice.jpg"
</item>

<item congruent>
/1 = "AngryFire_Female_40%.jpg"
/2 = "AngryFire_Female_60%.jpg"
/3 = "AngryFire_Female_80%.jpg"
/4 = "AngryFire_Female_100%.jpg"
/5 = "AngryFire_Male_40%.jpg"
/6 = "AngryFire_Male_60%.jpg"
/7 = "AngryFire_Male_80%.jpg"
/8 = "AngryFire_Male_100%.jpg"
/9 = "AngryKnife_Female_40%.jpg"
/10 = "AngryKnife_Female_60%.jpg"
/11 = "AngryKnife_Female_80%.jpg"
/12 = "AngryKnife_Female_100%.jpg"
/13 = "AngryKnife_Male_40%.jpg"
/14 = "AngryKnife_Male_60%.jpg"
/15 = "AngryKnife_Male_80%.jpg"
/16 = "AngryKnife_Male_100%.jpg"
/17 = "HappyBirthday_Female_40%.jpg"
/18 = "HappyBirthday_Female_60%.jpg"
/19 = "HappyBirthday_Female_80%.jpg"
/20 = "HappyBirthday_Female_100%.jpg"
/21 = "HappyBirthday_Male_40%.jpg"
/22 = "HappyBirthday_Male_60%.jpg"
/23 = "HappyBirthday_Male_80%.jpg"
/24 = "HappyBirthday_Male_100%.jpg"
/25 = "HappyNature_Female_40%.jpg"
/26 = "HappyNature_Female_60%.jpg"
/27 = "HappyNature_Female_80%.jpg"
/28 = "HappyNature_Female_100%.jpg"
/29 = "HappyNature_Male_40%.jpg"
/30 = "HappyNature_Male_60%.jpg"
/31 = "HappyNature_Male_80%.jpg"
/32 = "HappyNature_Male_100%.jpg"
</item>

<item incongruent>
/1 = "AngryBirthday_Female_40%.jpg"
/2 = "AngryBirthday_Female_60%.jpg"
/3 = "AngryBirthday_Female_80%.jpg"
/4 = "AngryBirthday_Female_100%.jpg"
/5 = "AngryBirthday_Male_40%.jpg"
/6 = "AngryBirthday_Male_60%.jpg"
/7 = "AngryBirthday_Male_80%.jpg"
/8 = "AngryBirthday_Male_100%.jpg"
/9 = "AngryNature_Male_40%.jpg"
/10 = "AngryNature_Male_60%.jpg"
/11 = "AngryNature_Male_80%.jpg"
/12 = "AngryNature_Male_100%.jpg"
/13 = "AngryNature_Female_40%.jpg"
/14 = "AngryNature_Female_60%.jpg"
/15 = "AngryNature_Female_80%.jpg"
/16 = "AngryNature_Female_100%.jpg"
/17 = "HappyKnife_Male_40%.jpg"
/18 = "HappyKnife_Male_60%.jpg"
/19 = "HappyKnife_Male_80%.jpg"
/20 = "HappyKnife_Male_100%.jpg"
/21 = "HappyKnife_Female_40%.jpg"
/22 = "HappyKnife_Female_60%.jpg"
/23 = "HappyKnife_Female_80%.jpg"
/24 = "HappyKnife_Female_100%.jpg"
/25 = "HappyFire_Male_40%.jpg"
/26 = "HappyFire_Male_60%.jpg"
/27 = "HappyFire_Male_80%.jpg"
/28 = "HappyFire_Male_100%.jpg"
/29 = "HappyFire_Female_40%.jpg"
/30 = "HappyFire_Female_60%.jpg"
/31 = "HappyFire_Female_80%.jpg"
/32 = "HappyFire_Female_100%.jpg"
</item>

<picture practice_items>
/ items = practice
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<picture congruent_items>
/ items = congruent
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<picture incongruent_items>
/ items = incongruent
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<text fixation>
/ items = ("+")
/ fontstyle = ("Arial", 10%)
/ position = (50%, 50%)
/ size = (8%, 10%)
</text>


<trial practice_items>
/ stimulustimes = [500=fixation; 180000=practice_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<trial congruent_items>
/ stimulustimes = [500=fixation; 180000=congruent_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<trial incongruent_items>
/ stimulustimes = [500=fixation; 180000=incongruent_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<block practice_items>
/ preinstructions = (introduction, practiceinstructions)
/ trials = [1-8=noreplace(practice_items)]
/ recorddata = false
</block>

<block one>
/ preinstructions = (block_one_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ recorddata = true
</block>

<block two>
/ preinstructions = (block_two_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ recorddata = true
</block>

<block three>
/ preinstructions = (block_three_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ postinstructions = (finish)
/ recorddata = true
</block>


<expt>
/ blocks = [1=block.practice_items; 2=block.one; 3=block.two; 4=block.three]
</expt>

<data>
/ format = tab
</data>

<trial practice_items>
/ stimulustimes = [500=fixation; 180000=practice_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

Your trial starts. Then, after 500ms, it displays a fixation stimulus. Then at 180 seconds into the trial, that's three minutes, you've instructed it to display the picture.

Sarah.Skromanis
Sarah.Skromanis
New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)New Member (6 reputation)
Group: Forum Members
Posts: 2, Visits: 11
Dave - 4/24/2020
Sarah.Skromanis - 4/24/2020
Hi, I have written a script for a reversal learning task, but when I run the task the images don't come up on the screen. I can't work out what I have done wrong or what I need to change. This is my first time writing a script in Inquisit, so it could all be completely wrong. Any advice would be greatly appreciated. I have pasted the script below in case it is of help. 
Thank you.

<parameters>
/showTotalPoints = true
/leftKey = 30
/leftKeyLabel = "A"
/rightKey = 38
/rightKeyLabel = "L"
</parameters>


<instruct>
/ fontstyle = ("Arial" , 20pt)
/ nextlabel = "(Space)Press the spacebar to continue"
/ lastlabel = "(Space)Press the spacebar to continue"
/ inputdevice = keyboard
</instruct>

<page introduction>
^^^^^^^^^Welcome and thank you for participating.
</page>

<page practiceinstructions>
^^^^Before you begin the actual task, you will complete some practice items.
^^^^You will be asked to look at a series of facial expressions that will appear on either positive or negative backgrounds.
^^Press the "A" key when you see a HAPPY face.
^^But press the "L" key when you see an ANGRY face.
^^^^To begin the practice trial, press the spacebar
</page>

<page begin>
^^^^The practice trial is now complete. Press the spacebar to begin the task.
</page>

<page block_one_instructions>
^^^^Just like the practice items, you will be asked to look at a series of facial expressions that will appear on either positive or negative backgrounds.
^^Press the "A" key when you see a HAPPY face.
^^But press the "L" key when you see an ANGRY face.
^^To begin the task, press the spacebar.
</page>

<page block_two_instructions>
^^^^You will now be asked to look at some more facial expressions that will appear on either positive or negative backgrounds.
^^This time, you need to press the "A" key you see a HAPPY face on a positive background.
^^and the "L" key when you see an ANGRY face on a negative background.
^^But, when you see a HAPPY face on a negative background OR an ANGRY face on a positive background, do not press anything.
^^To begin, press the spacebar.
</page>

<page block_three_instructions>
^^^^You will now be asked to look at some more facial expressions that will appear on either positive or negative backgrounds.
^^This time, you need to press the "A" key when you see a HAPPY face on a negative background.
^^and the "L" key when you see an ANGRY face on a positive background.
^^But, when you see a HAPPY face on a positive background OR an ANGRY face on a negative background, do not press anything.
^^To begin, press the spacebar.
</page>

<page finish>
^^^^The task has now ended. Thank you for participating.
</page>


<item practice>
/1 = "AngryFire_Male_Practice.jpg"
/2 = "AngryFire_Female_Practice.jpg"
/3 = "AngryKnife_Male_Practice.jpg"
/4 = "AngryKnife_Female_Practice.jpg"
/5 = "HappyNature_Male_Practice.jpg"
/6 = "HappyNature_Female_Practice.jpg"
/7 = "HappyBirthday_Male_Practice.jpg"
/8 = "HappyBirthday_Female_Practice.jpg"
</item>

<item congruent>
/1 = "AngryFire_Female_40%.jpg"
/2 = "AngryFire_Female_60%.jpg"
/3 = "AngryFire_Female_80%.jpg"
/4 = "AngryFire_Female_100%.jpg"
/5 = "AngryFire_Male_40%.jpg"
/6 = "AngryFire_Male_60%.jpg"
/7 = "AngryFire_Male_80%.jpg"
/8 = "AngryFire_Male_100%.jpg"
/9 = "AngryKnife_Female_40%.jpg"
/10 = "AngryKnife_Female_60%.jpg"
/11 = "AngryKnife_Female_80%.jpg"
/12 = "AngryKnife_Female_100%.jpg"
/13 = "AngryKnife_Male_40%.jpg"
/14 = "AngryKnife_Male_60%.jpg"
/15 = "AngryKnife_Male_80%.jpg"
/16 = "AngryKnife_Male_100%.jpg"
/17 = "HappyBirthday_Female_40%.jpg"
/18 = "HappyBirthday_Female_60%.jpg"
/19 = "HappyBirthday_Female_80%.jpg"
/20 = "HappyBirthday_Female_100%.jpg"
/21 = "HappyBirthday_Male_40%.jpg"
/22 = "HappyBirthday_Male_60%.jpg"
/23 = "HappyBirthday_Male_80%.jpg"
/24 = "HappyBirthday_Male_100%.jpg"
/25 = "HappyNature_Female_40%.jpg"
/26 = "HappyNature_Female_60%.jpg"
/27 = "HappyNature_Female_80%.jpg"
/28 = "HappyNature_Female_100%.jpg"
/29 = "HappyNature_Male_40%.jpg"
/30 = "HappyNature_Male_60%.jpg"
/31 = "HappyNature_Male_80%.jpg"
/32 = "HappyNature_Male_100%.jpg"
</item>

<item incongruent>
/1 = "AngryBirthday_Female_40%.jpg"
/2 = "AngryBirthday_Female_60%.jpg"
/3 = "AngryBirthday_Female_80%.jpg"
/4 = "AngryBirthday_Female_100%.jpg"
/5 = "AngryBirthday_Male_40%.jpg"
/6 = "AngryBirthday_Male_60%.jpg"
/7 = "AngryBirthday_Male_80%.jpg"
/8 = "AngryBirthday_Male_100%.jpg"
/9 = "AngryNature_Male_40%.jpg"
/10 = "AngryNature_Male_60%.jpg"
/11 = "AngryNature_Male_80%.jpg"
/12 = "AngryNature_Male_100%.jpg"
/13 = "AngryNature_Female_40%.jpg"
/14 = "AngryNature_Female_60%.jpg"
/15 = "AngryNature_Female_80%.jpg"
/16 = "AngryNature_Female_100%.jpg"
/17 = "HappyKnife_Male_40%.jpg"
/18 = "HappyKnife_Male_60%.jpg"
/19 = "HappyKnife_Male_80%.jpg"
/20 = "HappyKnife_Male_100%.jpg"
/21 = "HappyKnife_Female_40%.jpg"
/22 = "HappyKnife_Female_60%.jpg"
/23 = "HappyKnife_Female_80%.jpg"
/24 = "HappyKnife_Female_100%.jpg"
/25 = "HappyFire_Male_40%.jpg"
/26 = "HappyFire_Male_60%.jpg"
/27 = "HappyFire_Male_80%.jpg"
/28 = "HappyFire_Male_100%.jpg"
/29 = "HappyFire_Female_40%.jpg"
/30 = "HappyFire_Female_60%.jpg"
/31 = "HappyFire_Female_80%.jpg"
/32 = "HappyFire_Female_100%.jpg"
</item>

<picture practice_items>
/ items = practice
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<picture congruent_items>
/ items = congruent
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<picture incongruent_items>
/ items = incongruent
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<text fixation>
/ items = ("+")
/ fontstyle = ("Arial", 10%)
/ position = (50%, 50%)
/ size = (8%, 10%)
</text>


<trial practice_items>
/ stimulustimes = [500=fixation; 180000=practice_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<trial congruent_items>
/ stimulustimes = [500=fixation; 180000=congruent_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<trial incongruent_items>
/ stimulustimes = [500=fixation; 180000=incongruent_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<block practice_items>
/ preinstructions = (introduction, practiceinstructions)
/ trials = [1-8=noreplace(practice_items)]
/ recorddata = false
</block>

<block one>
/ preinstructions = (block_one_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ recorddata = true
</block>

<block two>
/ preinstructions = (block_two_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ recorddata = true
</block>

<block three>
/ preinstructions = (block_three_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ postinstructions = (finish)
/ recorddata = true
</block>


<expt>
/ blocks = [1=block.practice_items; 2=block.one; 3=block.two; 4=block.three]
</expt>

<data>
/ format = tab
</data>

<trial practice_items>
/ stimulustimes = [500=fixation; 180000=practice_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

Your trial starts. Then, after 500ms, it displays a fixation stimulus. Then at 180 seconds into the trial, that's three minutes, you've instructed it to display the picture.

Hi Dave,

Thank you so much for your help, that makes so much more sense. It works perfectly now.

I do have another question. During my task participants are required to press either the "A" or "L" key or to inhibit a response by pressing nothing at all (I defined this by using the noresponse function). However, when it comes to the stimuli in which participant's need to inhibit a response, I'm not too sure how to indicate which items a "noresponse" would be correct for. I guess my main concern is that when I go into the data file after someone has completed the task, I have to manually check whether the items in which they inhibited a response are correct or incorrect.
I hope that makes sense.

<trial incongruent_angry_items>
/ stimulustimes = [0=fixation; 500=incongruent_angry_items]
/ validresponse = ("A", "L", noresponse)
/ correctresponse = ("L", noresponse)
/ timeout = 7000
/ beginresponsetime = 0
/ posttrialpause = 0
</trial>

Thank you,
Sarah
Dave
Dave
Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)Supreme Being (804K reputation)
Group: Administrators
Posts: 10K, Visits: 55K
Sarah.Skromanis - 4/27/2020
Dave - 4/24/2020
Sarah.Skromanis - 4/24/2020
Hi, I have written a script for a reversal learning task, but when I run the task the images don't come up on the screen. I can't work out what I have done wrong or what I need to change. This is my first time writing a script in Inquisit, so it could all be completely wrong. Any advice would be greatly appreciated. I have pasted the script below in case it is of help. 
Thank you.

<parameters>
/showTotalPoints = true
/leftKey = 30
/leftKeyLabel = "A"
/rightKey = 38
/rightKeyLabel = "L"
</parameters>


<instruct>
/ fontstyle = ("Arial" , 20pt)
/ nextlabel = "(Space)Press the spacebar to continue"
/ lastlabel = "(Space)Press the spacebar to continue"
/ inputdevice = keyboard
</instruct>

<page introduction>
^^^^^^^^^Welcome and thank you for participating.
</page>

<page practiceinstructions>
^^^^Before you begin the actual task, you will complete some practice items.
^^^^You will be asked to look at a series of facial expressions that will appear on either positive or negative backgrounds.
^^Press the "A" key when you see a HAPPY face.
^^But press the "L" key when you see an ANGRY face.
^^^^To begin the practice trial, press the spacebar
</page>

<page begin>
^^^^The practice trial is now complete. Press the spacebar to begin the task.
</page>

<page block_one_instructions>
^^^^Just like the practice items, you will be asked to look at a series of facial expressions that will appear on either positive or negative backgrounds.
^^Press the "A" key when you see a HAPPY face.
^^But press the "L" key when you see an ANGRY face.
^^To begin the task, press the spacebar.
</page>

<page block_two_instructions>
^^^^You will now be asked to look at some more facial expressions that will appear on either positive or negative backgrounds.
^^This time, you need to press the "A" key you see a HAPPY face on a positive background.
^^and the "L" key when you see an ANGRY face on a negative background.
^^But, when you see a HAPPY face on a negative background OR an ANGRY face on a positive background, do not press anything.
^^To begin, press the spacebar.
</page>

<page block_three_instructions>
^^^^You will now be asked to look at some more facial expressions that will appear on either positive or negative backgrounds.
^^This time, you need to press the "A" key when you see a HAPPY face on a negative background.
^^and the "L" key when you see an ANGRY face on a positive background.
^^But, when you see a HAPPY face on a positive background OR an ANGRY face on a negative background, do not press anything.
^^To begin, press the spacebar.
</page>

<page finish>
^^^^The task has now ended. Thank you for participating.
</page>


<item practice>
/1 = "AngryFire_Male_Practice.jpg"
/2 = "AngryFire_Female_Practice.jpg"
/3 = "AngryKnife_Male_Practice.jpg"
/4 = "AngryKnife_Female_Practice.jpg"
/5 = "HappyNature_Male_Practice.jpg"
/6 = "HappyNature_Female_Practice.jpg"
/7 = "HappyBirthday_Male_Practice.jpg"
/8 = "HappyBirthday_Female_Practice.jpg"
</item>

<item congruent>
/1 = "AngryFire_Female_40%.jpg"
/2 = "AngryFire_Female_60%.jpg"
/3 = "AngryFire_Female_80%.jpg"
/4 = "AngryFire_Female_100%.jpg"
/5 = "AngryFire_Male_40%.jpg"
/6 = "AngryFire_Male_60%.jpg"
/7 = "AngryFire_Male_80%.jpg"
/8 = "AngryFire_Male_100%.jpg"
/9 = "AngryKnife_Female_40%.jpg"
/10 = "AngryKnife_Female_60%.jpg"
/11 = "AngryKnife_Female_80%.jpg"
/12 = "AngryKnife_Female_100%.jpg"
/13 = "AngryKnife_Male_40%.jpg"
/14 = "AngryKnife_Male_60%.jpg"
/15 = "AngryKnife_Male_80%.jpg"
/16 = "AngryKnife_Male_100%.jpg"
/17 = "HappyBirthday_Female_40%.jpg"
/18 = "HappyBirthday_Female_60%.jpg"
/19 = "HappyBirthday_Female_80%.jpg"
/20 = "HappyBirthday_Female_100%.jpg"
/21 = "HappyBirthday_Male_40%.jpg"
/22 = "HappyBirthday_Male_60%.jpg"
/23 = "HappyBirthday_Male_80%.jpg"
/24 = "HappyBirthday_Male_100%.jpg"
/25 = "HappyNature_Female_40%.jpg"
/26 = "HappyNature_Female_60%.jpg"
/27 = "HappyNature_Female_80%.jpg"
/28 = "HappyNature_Female_100%.jpg"
/29 = "HappyNature_Male_40%.jpg"
/30 = "HappyNature_Male_60%.jpg"
/31 = "HappyNature_Male_80%.jpg"
/32 = "HappyNature_Male_100%.jpg"
</item>

<item incongruent>
/1 = "AngryBirthday_Female_40%.jpg"
/2 = "AngryBirthday_Female_60%.jpg"
/3 = "AngryBirthday_Female_80%.jpg"
/4 = "AngryBirthday_Female_100%.jpg"
/5 = "AngryBirthday_Male_40%.jpg"
/6 = "AngryBirthday_Male_60%.jpg"
/7 = "AngryBirthday_Male_80%.jpg"
/8 = "AngryBirthday_Male_100%.jpg"
/9 = "AngryNature_Male_40%.jpg"
/10 = "AngryNature_Male_60%.jpg"
/11 = "AngryNature_Male_80%.jpg"
/12 = "AngryNature_Male_100%.jpg"
/13 = "AngryNature_Female_40%.jpg"
/14 = "AngryNature_Female_60%.jpg"
/15 = "AngryNature_Female_80%.jpg"
/16 = "AngryNature_Female_100%.jpg"
/17 = "HappyKnife_Male_40%.jpg"
/18 = "HappyKnife_Male_60%.jpg"
/19 = "HappyKnife_Male_80%.jpg"
/20 = "HappyKnife_Male_100%.jpg"
/21 = "HappyKnife_Female_40%.jpg"
/22 = "HappyKnife_Female_60%.jpg"
/23 = "HappyKnife_Female_80%.jpg"
/24 = "HappyKnife_Female_100%.jpg"
/25 = "HappyFire_Male_40%.jpg"
/26 = "HappyFire_Male_60%.jpg"
/27 = "HappyFire_Male_80%.jpg"
/28 = "HappyFire_Male_100%.jpg"
/29 = "HappyFire_Female_40%.jpg"
/30 = "HappyFire_Female_60%.jpg"
/31 = "HappyFire_Female_80%.jpg"
/32 = "HappyFire_Female_100%.jpg"
</item>

<picture practice_items>
/ items = practice
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<picture congruent_items>
/ items = congruent
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<picture incongruent_items>
/ items = incongruent
/ select = noreplace
/ position = (50%, 50%)
/ erase = false
/ size = (500mm, 400mm)
</picture>

<text fixation>
/ items = ("+")
/ fontstyle = ("Arial", 10%)
/ position = (50%, 50%)
/ size = (8%, 10%)
</text>


<trial practice_items>
/ stimulustimes = [500=fixation; 180000=practice_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<trial congruent_items>
/ stimulustimes = [500=fixation; 180000=congruent_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<trial incongruent_items>
/ stimulustimes = [500=fixation; 180000=incongruent_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

<block practice_items>
/ preinstructions = (introduction, practiceinstructions)
/ trials = [1-8=noreplace(practice_items)]
/ recorddata = false
</block>

<block one>
/ preinstructions = (block_one_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ recorddata = true
</block>

<block two>
/ preinstructions = (block_two_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ recorddata = true
</block>

<block three>
/ preinstructions = (block_three_instructions)
/ trials = [1-32=noreplace(congruent_items, incongruent_items)]
/ postinstructions = (finish)
/ recorddata = true
</block>


<expt>
/ blocks = [1=block.practice_items; 2=block.one; 3=block.two; 4=block.three]
</expt>

<data>
/ format = tab
</data>

<trial practice_items>
/ stimulustimes = [500=fixation; 180000=practice_items]
/ correctresponse = ("A", "L")
/ validresponse = ("A", "L")
/ beginresponsetime = 700
/ posttrialpause = 1500
</trial>

Your trial starts. Then, after 500ms, it displays a fixation stimulus. Then at 180 seconds into the trial, that's three minutes, you've instructed it to display the picture.

Hi Dave,

Thank you so much for your help, that makes so much more sense. It works perfectly now.

I do have another question. During my task participants are required to press either the "A" or "L" key or to inhibit a response by pressing nothing at all (I defined this by using the noresponse function). However, when it comes to the stimuli in which participant's need to inhibit a response, I'm not too sure how to indicate which items a "noresponse" would be correct for. I guess my main concern is that when I go into the data file after someone has completed the task, I have to manually check whether the items in which they inhibited a response are correct or incorrect.
I hope that makes sense.

<trial incongruent_angry_items>
/ stimulustimes = [0=fixation; 500=incongruent_angry_items]
/ validresponse = ("A", "L", noresponse)
/ correctresponse = ("L", noresponse)
/ timeout = 7000
/ beginresponsetime = 0
/ posttrialpause = 0
</trial>

Thank you,
Sarah

You need to work with /iscorrectresponse then and code somewhere (e.g. in a <list>) which answer is the correct one for a given item. See e.g. https://www.millisecond.com/forums/FindPost15355.aspx

The code for noresponse is 0.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search