Add fixation cross to trial


Author
Message
amomen425
amomen425
Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)
Group: Forum Members
Posts: 21, Visits: 99
I programmed an experiment that's pretty simple with Inquisit 5. Participants have to categorize pictures of faces (as android or human) with a button press. However, I am having trouble figuring out how to insert a fixation cross that comes up for 412 milliseconds before and after each time they categorize a picture (with the button press).

Here is my code:
<text finishURL>
/ items = ("https://gmuchss.qualtrics.com/jfe/form/SV_dj7OTOucLKw5JSl?subjectid=<%script.subjectid%>&id=%SURVEY_CODE%")
</text>

<expt>
/ onexptbegin = [
defaults.finishpage = text.finishURL.item(1);
]

/ onexptbegin = [
list.Bluey.appenditem(list.nitems.nextindex);
list.Bluey.appenditem(list.nitems.nextindex);
list.Bluey.appenditem(list.nitems.nextindex);


list.Greeny.appenditem(list.nitems.nextindex);
list.Greeny.appenditem(list.nitems.nextindex);
list.Greeny.appenditem(list.nitems.nextindex);

]
</expt>

<item Bluey>

/1 = "3_blue.png"
/2 = "5_blue.png"
/3 = "6_blue.png"
/4 = "10_blue.png"
/5 = "15_blue.png"
/6 = "37_blue.png"

</item>

<item Greeny>

/1 = "3_green.png"
/2 = "5_green.png"
/3 = "6_green.png"
/4 = "10_green.png"
/5 = "15_green.png"
/6 = "37_green.png"

</item>

<list nitems>
/ poolsize = 6
/ selectionmode = random
/ selectionrate = always
</list>

<item Androidexample>
/1 = "Picture1.png"
/2 = "Picture2.png"
</item>

<item shapes>
/1= "Green.png"
/2= "Blue.png"
</item>

Fill lists empty lists with item numbers at runtime

<list Bluey>
</list>

<list Greeny>
</list>

<picture Bluey>
/ items = Bluey
/ position = (50%, 50%)
/size = (300 pt, 300 pt)
/ select = list.Bluey.nextvalue
</picture>

<picture Greeny>
/ items = Greeny
/ position = (50%, 50%)
/size = (300 pt, 300 pt)
/ select = list.Greeny.nextvalue
</picture>

<picture Android_example1>
/ items = Androidexample
/ position = (33%, 45%)
/size = (25%,25%)
/ select = 1
</picture>

<picture Android_example2>
/ items = Androidexample
/ position = (66%, 45%)
/size = (25%,25%)
/ select = 2
</picture>

<picture green>
/ items = shapes
/ position = (50%, 50%)
/size = (300 pt, 300 pt)
/ select = 1
</picture>

<picture blue>
/ items = shapes
/ position = (50%, 50%)
/size = (300 pt, 300 pt)
/ select = 2
</picture>

<item intro_Attention_Check>
/1 = "Please pay close attention to the instructions. At the end of the experiment we will test how well you understood the instructions. If you aren't able to show us that you understood the instructions, it may affect the credit you receive."

</item>

<item intro_1>
/1 = "Thank you for participating in our study. We are interested in your perceptions of Human and Android faces. For this study, we are collaborating with an Android robot designer. Below is an example of some of his work."

</item>

<item intro_2>
/1 = "As you can see, the Android’s faces are very similar to the human’s faces. In fact, previous research has shown that his Android faces are very difficult to tell apart from human faces, even to experts.
"
</item>

<item intro_3_HG>
/1 = "During the experiment, You will view a series of faces and your task is determine whether they are an android or a human.

To help you figure out which faces are HUMANS and which are ANDROIDS, faces will have colored backgrounds.

HUMANS will have GREEN backgrounds and ANDROID will have BLUE backgrounds. Continue to the next page to see examples of each. "

</item>

<item intro_4_HG>
/1 = "This is how HUMANS will be presented, with a GREEN background. There is no actual human in this example because we won't present them until the actual experiment."

</item>

<item intro_5_HG>
/1 = "This is how ANDROIDS will be presented, with a BLUE background. There is no actual Android in this example because we won't present them until the actual experiment."
</item>

<item intro_6_HG_DK>
/1 = "The experiment is about to begin. Please remember HUMAN faces will have GREEN backgrounds, and ANDROID faces will have BLUE backgrounds.

Please press the letter 'D' on the keyboard if it is a HUMAN face, and 'K' if it is an ANDROID face'"

</item>

<item intro_6_HG_KD>
/1 = "The experiment is about to begin. Please remember HUMAN faces will have GREEN backgrounds, and ANDROID faces will have BLUE backgrounds.

Please press the letter 'K' on the keyboard if it is a HUMAN face, and 'D' if it is an ANDROID face'

Press the spacebar to begin."

</item>

<item intro_3_HB>
/1 = "During the experiment, You will view a series of faces and your task is determine whether they are an android or a human.

To help you figure out which faces are Humans and which are Androids, faces will have colored backgrounds.

Humans will have blue backgrounds and androids will have green backgrounds. Continue to the next page to see examples of each. "

</item>

<item intro_4_HB>
/1 = "This is how HUMANS will be presented, with a BLUE background. There is no actual human in this example because we won't present them until the actual experiment."

</item>

<item intro_5_HB>
/1 = "This is how ANDROIDS will be presented, with a GREEN background. There is no actual Android in this example because we won't present them until the actual experiment."
</item>


<item intro_6_HB_DK>
/1 = "The experiment is about to begin. Please remember HUMAN faces will have BLUE backgrounds, and ANDROID faces will have green backgrounds.

Please press the letter 'D' on the keyboard if it is a ANDROID face, and 'K' if it is an HUMAN face'"

</item>

<item intro_6_HB_KD>
/1 = "The experiment is about to begin. Please remember HUMAN faces will have GREEN backgrounds, and ANDROID faces will have BLUE backgrounds.

Please press the letter 'K' on the keyboard if it is an ANDROID face, and 'D' if it is a HUMAN face'

Press the spacebar to begin."

</item>

<instruct>
/ fontstyle = ("Arial", 2.8%, false, false, false, false, 5, 1)
/ txcolor = (black)
</instruct>

**********************************************TEXT****************************************************************
**************************************************************************************************************

<text intro_Attention_Check>
/ items = intro_Attention_Check
/ select = 1
/ position = (50%, 50%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = center
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 1)
</text>

<text intro_1>
/ items = intro_1
/ select = 1
/ position = (50%, 25%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
</text>

<text intro_2>
/ items = intro_2
/ select = 1
/ position = (50%, 75%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
</text>

<text intro_3_HG>
/ items = intro_3_HG
/ position = (50%, 50%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 1)
</text>

<text intro_3_HB>
/ items = intro_3_HB
/ position = (50%, 50%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 1)
</text>

<text intro_4_HG>
/ items = intro_4_HG
/ select = 1
/ position = (50%, 5%)
/ size = (90%, 90%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
</text>

<text intro_4_HB>
/ items = intro_4_HB
/ select = 1
/ position = (50%, 5%)
/ size = (90%, 90%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
</text>

<text intro_5_HG>
/ items = intro_5_HG
/ select = 1
/ position = (50%, 5%)
/ size = (90%, 90%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
</text>

<text intro_5_HB>
/ items = intro_5_HB
/ select = 1
/ position = (50%, 5%)
/ size = (90%, 90%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
</text>

<text intro_6_HG_DK>
/ items = intro_6_HG_DK
/ position = (50%, 50%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 1)
</text>

<text intro_6_HG_KD>
/ items = intro_6_HG_KD
/ position = (50%, 50%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 1)
</text>

<text intro_6_HB_DK>
/ items = intro_6_HB_DK
/ position = (50%, 50%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 1)
</text>

<text intro_6_HB_KD>
/ items = intro_6_HB_KD
/ position = (50%, 50%)
/ size = (80%, 80%)
/ vjustify = center
/ hjustify = left
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 1)
</text>

<text continue>
/ items = ("continue with Spacebar")
/ position = (50%, 90%)
/ fontstyle = ("Courier New", 3.00%, false, false, false, false, 5, 1)
</text>

##################################################

<trial intro_Attention_Check>
/ stimulusframes = [1 = intro_Attention_Check, continue]
/ validresponse = (57)
</trial>

<trial intro_2>
/ stimulusframes = [1 =intro_1,intro_2,Android_example1,Android_example2,continue]
/ validresponse = (57)
</trial>

<trial intro_3_HG>
/ stimulusframes = [1 = intro_3_HG, continue]
/ validresponse = (57)
</trial>

<trial intro_3_HB>
/ stimulusframes = [1 = intro_3_HB, continue]
/ validresponse = (57)
</trial>

<trial intro_4_HG>
/ stimulusframes = [1 = intro_4_HG,green,continue]
/ validresponse = (57)
</trial>

<trial intro_4_HB>
/ stimulusframes = [1 = intro_4_HB,blue,continue]
/ validresponse = (57)
</trial>

<trial intro_5_HG>
/ stimulusframes = [1 = intro_5_HG,blue,continue]
/ validresponse = (57)
</trial>

<trial intro_5_HB>
/ stimulusframes = [1 = intro_5_HB,green,continue]
/ validresponse = (57)
</trial>

<trial intro_6_HG_DK>
/ stimulusframes = [1 = intro_6_HG_DK,continue]
/ validresponse = (57)
</trial>

<trial intro_6_HG_KD>
/ stimulusframes = [1 = intro_6_HG_KD,continue]
/ validresponse = (57)
</trial>

<trial intro_6_HB_DK>
/ stimulusframes = [1 = intro_6_HB_DK,continue]
/ validresponse = (57)
</trial>

<trial intro_6_HB_KD>
/ stimulusframes = [1 = intro_6_HB_KD,continue]
/ validresponse = (57)
</trial>

<trial Bluey>
/stimulustimes = [0 = Bluey]
/ validresponse = ("D", "K")
</trial>

<trial Greeny>
/stimulustimes = [0 = Greeny]
/ validresponse = ("D", "K")
</trial>

##################################################

################


<block intro_2>
/ trials = [1 = intro_2]
</block>

<block intro_3_HG>
/ trials = [1 = intro_3_HG]
</block>

<block intro_3_HB>
/ trials = [1 = intro_3_HB]
</block>

<block intro_4_HG>
/ trials = [1 = intro_4_HG]
</block>

<block intro_4_HB>
/ trials = [1 = intro_4_HB]
</block>

<block intro_5_HG>
/ trials = [1 = intro_5_HG]
</block>

<block intro_5_HB>
/ trials = [1 = intro_5_HB]
</block>

<block intro_6_HG_DK>
/ trials = [1 = intro_6_HG_DK]
</block>

<block intro_6_HG_KD>
/ trials = [1 = intro_6_HG_KD]
</block>

<block intro_6_HB_DK>
/ trials = [1 = intro_6_HB_DK]
</block>

<block intro_6_HB_KD>
/ trials = [1 = intro_6_HB_KD]
</block>

<block intro_Attention_Check>
/ trials = [1 = intro_Attention_Check]
</block>

<block Experiment>

/ trials = [1-60 = noreplace(Bluey, Greeny)]
</block>

##################################################

<expt>
/ subjects = (1 of 4)
/ groupassignment = random
/ onblockbegin = [
values.order = "Upright_First";]

/ blocks = [
1 = intro_Attention_Check;
2 = intro_2;
3 = intro_3_HG;
4 = intro_4_HG;
5 = intro_5_HG;
6 = intro_6_HG_DK;
7 = Experiment;
]

</expt>

<expt>
/ subjects = (2 of 4)
/ groupassignment = random
/ onblockbegin = [
values.order = "Upright_First";]

/ blocks = [
1 = intro_Attention_Check;
2 = intro_2;
3 = intro_3_HG;
4 = intro_4_HG;
5 = intro_5_HG;
6 = intro_6_HG_KD;
7 = Experiment;
]

</expt>

<expt>
/ subjects = (3 of 4)
/ groupassignment = random
/ onblockbegin = [
values.order = "Upright_First";]

/ blocks = [
1 = intro_Attention_Check;
2 = intro_2;
3 = intro_3_HB;
4 = intro_4_HB;
5 = intro_5_HB;
6 = intro_6_HB_DK;
7 = Experiment;
]

</expt>

<expt>
/ subjects = (4 of 4)
/ groupassignment = random
/ onblockbegin = [
values.order = "Upright_First";]

/ blocks = [
1 = intro_Attention_Check;
2 = intro_2;
3 = intro_3_HB;
4 = intro_4_HB;
5 = intro_5_HB;
6 = intro_6_HB_KD;
7 = Experiment;
]

</expt>


<values>

/order = ""

</values>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search