Millisecond Forums

drop down responses

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

By Shona - 6/15/2014

Hi, 
I would like a dropdown option box to appear at the end of each trial. I've programmed a dropdown box called "question", which should be called up at the end of each trial. However, when I try to run my script, a message pops up saying "could not locate element 'question'". Do you know why this is happening? I'd be so grateful for your help. My script is pasted below. 


***********************************************************************
                  AFFECT MISATTRIBUTION PROCEDURE (AMP)
***********************************************************************

***********************************************************************
                                 SCRIPT INFO

updated for Inquisit 4.0 by K. Borchert (katjab@millisecond.com) for Millisecond Software LLC

last changed: 08-14-2012
***********************************************************************
                              BACKGROUND INFO
***********************************************************************
A script that implements the AMP measuring implicit attitudes towards flowers and insects. 
The script is designed to be easily adaptable to other target categories. 



***********************************************************************
                                 DEFAULTS
***********************************************************************
requires Inquisit 4.0.0.0 or higher

<defaults>
/ fontstyle = ("Arial", 3.5%)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
/ minimumversion = "4.0.0.0"
/canvasaspectratio = (4, 3)
</defaults>
***********************************************************************
                                 VALUES
***********************************************************************
***********************************************************************
Scoring
***********************************************************************

************
editable parameters
************


************
other parameters
************
<values>
</values>

***********************************************************************
                                 DATA
***********************************************************************
***********************************************************************
Data Columns
***********************************************************************
******************
Raw Data Files
******************
<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, response, latency, trialdata, trialdata, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]
/separatefiles = true
</data>


***********************************************************************
                                 INSTRUCTIONS
***********************************************************************
***********************************************************************
Task instruction stimuli
***********************************************************************

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>


<item instructions>
/ 1 = "In this phase of the study, we will assess your memory and perceptual ability.~n~nYou will see playing cards appear briefly on the screen and you will be asked to report which card was presented. Please try to identify each card. This may be difficult because the cards will be presented for very brief (varying) amounts of time. Please try to perform as best you can."
</item>


<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>



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

***********************************************************************
This sample AMP can be easily adapted to different target categories 
and attributes. To change the categories, you need only change the 
stimulus items and labels immediately below this line.

***********************************************************************
<item heart>
/1 = "3diamonds.jpg"
/2 = "4hearts.jpg"
/3 = "5spades.jpg"
/4 = "7clubs.jpg"
/5 = "9hearts.jpg"
</item>

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


***********************************************************************
Symbol and neutral stimuli
***********************************************************************


<dropdown Question>
/ caption="Which card was just presented on the screen?"
/ options=("2 of hearts", "2 of diamonds", "2 of clubs", "3 of spades", "3 of hearts", "3 of diamonds", "3 of clubs", "3 of spades", "4 of hearts", "4 of diamonds", "4 of clubs", "4 of spades", "5 of hearts", "5 of diamonds", "5 of clubs", "5 of spades")
/ required=true
</dropdown>


<shape blank>
/ shape = rectangle
/ color = black
/ size = (50%, 50%)
</shape>

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

<picture heart>
/ items = heart
/ size = (75%, 75%)
</picture>

***********************************************************************
Trials
***********************************************************************

<trial 32ms>
/ stimulustimes = [0=fixation; 900=heart; 932=blank; 1005=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 64ms>
/ stimulustimes = [0=fixation; 900=heart; 964=blank; 1020=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 80ms>
/ stimulustimes = [0=fixation; 900=heart; 980=blank; 1035=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 96ms>
/ stimulustimes = [0=fixation; 900=heart; 996=blank; 1051=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1012ms>
/ stimulustimes = [0=fixation; 900=heart; 1012=blank; 1067=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1028ms>
/ stimulustimes = [0=fixation; 900=heart; 1028=blank; 1083=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1044ms>
/ stimulustimes = [0=fixation; 900=heart; 1044=blank; 1099=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1060ms>
/ stimulustimes = [0=fixation; 900=heart; 1060=blank; 1115=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>

<trial 1076ms>
/ stimulustimes = [0=fixation; 900=heart; 1076=blank; 1131=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1092ms>
/ stimulustimes = [0=fixation; 900=heart; 1092=blank; 1147=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>

***********************************************************************
Blocks
***********************************************************************
<block instructions>
/ trials = [1 = instructions]
/ recorddata = false
</block>

<block test>
/ trials = [1-3 = 32ms; 4-6 = 64ms; 7-9 = 80ms; 10-12 = 96ms; 13-15 = 1012ms; 16-18 = 1028ms; 19-21 = 1044ms; 22-24 = 1060ms; 25-27 = 1076ms; 28-30 = 1092ms]
</block>


***********************************************************************
Experiment
***********************************************************************
<expt>
/ blocks = [1=instructions; 2=test]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>



***********End of Script********************



By Dave - 6/15/2014

Shona,

a <dropdown> element is *not a stimulus*. It *cannot* be displayed via a <trial>'s /stimulustimes or -frames. What you need to do is put that dropdown on a <surveypage> and then run that page after the <trial> presenting the other stimuli.
By Shona - 6/15/2014

Thank you for your response. I tried to set up a dropdown options question with the surveypage element. See below. However, I am not permitted to use the "/optionvalues" attribute with a surveypage so I'm not sure how/where to insert the options for the dropdown response choices. I'd be so grateful for your help. Thanks again!

<surveypage Question>
/ caption = "Which card was just presented on the screen?"
/ optionvalues = ("2 of hearts", "2 of diamonds", "2 of clubs", "3 of spades", "3 of hearts", "3 of diamonds", "3 of clubs", "3 of spades", "4 of hearts", "4 of diamonds", "4 of clubs", "4 of spades", "5 of hearts", "5 of diamonds", "5 of clubs", "5 of spades")
/ showbackbutton=false
/ nextlabel="Forward"
/ ontrialend = [if (radiobuttons.q1.response == 1) values.sex = "female"]
</surveypage>

By Dave - 6/15/2014

A <surveypage> doesn't have an /optionsvalues attribute. The <dropdown> has, and that's where it needs to go.
By Shona - 6/15/2014

Thanks for your response. I now have a dropdown element as well as a survey element. However, when I try to run the experiment, the dropdown/survey response scale, which is entitled "question", cannot be found in the trials element. My script is pasted below. Do you know what I'm doing wrong? Thanks so much!

***********************************************************************
                  AFFECT MISATTRIBUTION PROCEDURE (AMP)
***********************************************************************

***********************************************************************
                                 SCRIPT INFO

updated for Inquisit 4.0 by K. Borchert (katjab@millisecond.com) for Millisecond Software LLC

last changed: 08-14-2012
***********************************************************************
                              BACKGROUND INFO
***********************************************************************
A script that implements the AMP measuring implicit attitudes towards flowers and insects. 
The script is designed to be easily adaptable to other target categories. 



***********************************************************************
                                 DEFAULTS
***********************************************************************
requires Inquisit 4.0.0.0 or higher

<defaults>
/ fontstyle = ("Arial", 3.5%)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
/ minimumversion = "4.0.0.0"
/canvasaspectratio = (4, 3)
</defaults>
***********************************************************************
                                 VALUES
***********************************************************************
***********************************************************************
Scoring
***********************************************************************

************
editable parameters
************


************
other parameters
************
<values>
</values>

***********************************************************************
                                 DATA
***********************************************************************
***********************************************************************
Data Columns
***********************************************************************
******************
Raw Data Files
******************
<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, response, latency, trialdata, trialdata, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]
/separatefiles = true
</data>


***********************************************************************
                                 INSTRUCTIONS
***********************************************************************
***********************************************************************
Task instruction stimuli
***********************************************************************

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>


<item instructions>
/ 1 = "In this phase of the study, we will assess your memory and perceptual ability.~n~nYou will see playing cards appear briefly on the screen and you will be asked to report which card was presented. Please try to identify each card. This may be difficult because the cards will be presented for very brief (varying) amounts of time. Please try to perform as best you can."
</item>


<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>



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

***********************************************************************
This sample AMP can be easily adapted to different target categories 
and attributes. To change the categories, you need only change the 
stimulus items and labels immediately below this line.

***********************************************************************
<item heart>
/1 = "3diamonds.jpg"
/2 = "4hearts.jpg"
/3 = "5spades.jpg"
/4 = "7clubs.jpg"
/5 = "9hearts.jpg"
</item>

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


***********************************************************************
Symbol and neutral stimuli
***********************************************************************

<surveypage Question>
/ caption = "Which card was just presented on the screen?"
/ showbackbutton=false
/ questions=[1=question]
/ nextlabel="Forward"
</surveypage>


<dropdown Question>
/ caption = "Which card was just presented on the screen?"
/ options = ("2 of hearts", "2 of diamonds", "2 of clubs", "3 of spades", "3 of hearts", "3 of diamonds", "3 of clubs", "3 of spades", "4 of hearts", "4 of diamonds", "4 of clubs", "4 of spades", "5 of hearts", "5 of diamonds", "5 of clubs", "5 of spades")
/ required = true
</dropdown>


<shape blank>
/ shape = rectangle
/ color = black
/ size = (50%, 50%)
</shape>

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

<picture heart>
/ items = heart
/ size = (75%, 75%)
</picture>

***********************************************************************
Trials
***********************************************************************

<trial 32ms>
/ stimulustimes = [0=fixation; 900=heart; 932=blank; 1005=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 64ms>
/ stimulustimes = [0=fixation; 900=heart; 964=blank; 1020=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 80ms>
/ stimulustimes = [0=fixation; 900=heart; 980=blank; 1035=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 96ms>
/ stimulustimes = [0=fixation; 900=heart; 996=blank; 1051=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1012ms>
/ stimulustimes = [0=fixation; 900=heart; 1012=blank; 1067=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1028ms>
/ stimulustimes = [0=fixation; 900=heart; 1028=blank; 1083=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1044ms>
/ stimulustimes = [0=fixation; 900=heart; 1044=blank; 1099=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1060ms>
/ stimulustimes = [0=fixation; 900=heart; 1060=blank; 1115=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>

<trial 1076ms>
/ stimulustimes = [0=fixation; 900=heart; 1076=blank; 1131=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>


<trial 1092ms>
/ stimulustimes = [0=fixation; 900=heart; 1092=blank; 1147=question]
/ trialdata = [heart]
/ validresponse = (mouseevent)
</trial>

***********************************************************************
Blocks
***********************************************************************
<block instructions>
/ trials = [1 = instructions]
/ recorddata = false
</block>

<block test>
/ trials = [1-3 = 32ms; 4-6 = 64ms; 7-9 = 80ms; 10-12 = 96ms; 13-15 = 1012ms; 16-18 = 1028ms; 19-21 = 1044ms; 22-24 = 1060ms; 25-27 = 1076ms; 28-30 = 1092ms]
</block>


***********************************************************************
Experiment
***********************************************************************
<expt>
/ blocks = [1=instructions; 2=test]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>



***********End of Script********************


By Dave - 6/15/2014

Shona,

a <surveypage> is *not a stimulus either*. You cannot display it via a <trial>'s /stimulustimes or -frames. A <surveypage> is a kind of <trial> and you need to treat it accordingly. Run it via a <block>'s /trials attribute or use a /branch as in

<trial 32ms>
...
/ branch = [surveypage.question]
</trial>
By Shona - 6/15/2014

Hi Dave,

Thanks so much for your help. It works now but I have a few more questions. A "1" is being presented on the screen at the end of each trial. I did not program this and I'm sure why it's showing up. There's also a "1)" in front of the caption of my dropdown box, which I did not program. Why are these "1s" showing up and is there anything that I can do to get rid of them? Also, how can I get my caption to be centered and to appear on just one line that stretches farther across the screen? I'm so grateful for you help! 

***********************************************************************
                  AFFECT MISATTRIBUTION PROCEDURE (AMP)
***********************************************************************

***********************************************************************
                                 SCRIPT INFO

updated for Inquisit 4.0 by K. Borchert (katjab@millisecond.com) for Millisecond Software LLC

last changed: 08-14-2012
***********************************************************************
                              BACKGROUND INFO
***********************************************************************
A script that implements the AMP measuring implicit attitudes towards flowers and insects. 
The script is designed to be easily adaptable to other target categories. 



***********************************************************************
                                 DEFAULTS
***********************************************************************
requires Inquisit 4.0.0.0 or higher

<defaults>
/ fontstyle = ("Arial", 3.5%)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
/ minimumversion = "4.0.0.0"
/canvasaspectratio = (4, 3)
</defaults>
***********************************************************************
                                 VALUES
***********************************************************************
***********************************************************************
Scoring
***********************************************************************

************
editable parameters
************


************
other parameters
************
<values>
</values>

***********************************************************************
                                 DATA
***********************************************************************
***********************************************************************
Data Columns
***********************************************************************
******************
Raw Data Files
******************
<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, response, latency, trialdata, trialdata, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]
/separatefiles = true
</data>


***********************************************************************
                                 INSTRUCTIONS
***********************************************************************
***********************************************************************
Task instruction stimuli
***********************************************************************

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>


<item instructions>
/ 1 = "In this phase of the study, we will assess your memory and perceptual ability.~n~nYou will see playing cards appear briefly on the screen and you will be asked to report which card was presented. Please try to identify each card. This may be difficult because the cards will be presented for very brief (varying) amounts of time. Please try to perform as best you can."
</item>


<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>



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

***********************************************************************
This sample AMP can be easily adapted to different target categories 
and attributes. To change the categories, you need only change the 
stimulus items and labels immediately below this line.

***********************************************************************
<item heart>
/1 = "3diamonds.jpg"
/2 = "4hearts.jpg"
/3 = "5spades.jpg"
/4 = "7clubs.jpg"
/5 = "9hearts.jpg"
</item>

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

<dropdown Question>
/ caption = "Which card was just presented on the screen?"
/ textboxsize=(80%, 5%)
/ options = ("2 of hearts", "2 of diamonds", "2 of clubs", "3 of spades", "3 of hearts", "3 of diamonds", "3 of clubs", "3 of spades", "4 of hearts", "4 of diamonds", "4 of clubs", "4 of spades", "5 of hearts", "5 of diamonds", "5 of clubs", "5 of spades")
/ position = (20%, 5%) 
/ size = (90%, 5%) 
/ required = true
</dropdown>

***********************************************************************
Symbol and neutral stimuli
***********************************************************************



<shape blank>
/ shape = rectangle
/ color = black
/ size = (50%, 50%)
</shape>

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

<picture heart>
/ items = heart
/ size = (75%, 75%)
</picture>

***********************************************************************
Trials
***********************************************************************

<surveypage 32ms>
/ stimulustimes = [0=fixation; 900=heart; 932=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>

<surveypage 64ms>
/ stimulustimes = [0=fixation; 900=heart; 964=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 80ms>
/ stimulustimes = [0=fixation; 900=heart; 980=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 96ms>
/ stimulustimes = [0=fixation; 900=heart; 996=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 1012ms>
/ stimulustimes = [0=fixation; 900=heart; 1012=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>


<surveypage 1028ms>
/ stimulustimes = [0=fixation; 900=heart; 1028=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 1044ms>
/ stimulustimes = [0=fixation; 900=heart; 1044=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 1060ms>
/ stimulustimes = [0=fixation; 900=heart; 1060=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>


<surveypage 1076ms>
/ stimulustimes = [0=fixation; 900=heart; 1076=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>


<surveypage 1092ms>
/ stimulustimes = [0=fixation; 900=heart; 1092=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>

***********************************************************************
Blocks
***********************************************************************
<block instructions>
/ trials = [1 = instructions]
/ recorddata = false
</block>

<block test>
/ trials = [1-3 = 32ms; 4-6 = 64ms; 7-9 = 80ms; 10-12 = 96ms; 13-15 = 1012ms; 16-18 = 1028ms; 19-21 = 1044ms; 22-24 = 1060ms; 25-27 = 1076ms; 28-30 = 1092ms]
</block>


***********************************************************************
Experiment
***********************************************************************
<expt>
/ blocks = [1=instructions; 2=test]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>



***********End of Script********************


By Dave - 6/15/2014

See the documentation for the <surveypage> element's /showpagenumbers and /showquestionnumbers attributes. You'll want to set both to false.


Captions (and any survey elements in general) are left-aligned. You cannot center them. If need be, define a separate <caption> element and use its /position attribute to place it according to your preferences.
By Shona - 6/15/2014

Thank you for your help! I really need the caption to be centered. I created a separate caption element, as you suggested. However, it's not showing up. Do you know what I'm doing wrong? Thanks so much again!!

***********************************************************************
                  AFFECT MISATTRIBUTION PROCEDURE (AMP)
***********************************************************************

***********************************************************************
                                 SCRIPT INFO

updated for Inquisit 4.0 by K. Borchert (katjab@millisecond.com) for Millisecond Software LLC

last changed: 08-14-2012
***********************************************************************
                              BACKGROUND INFO
***********************************************************************
A script that implements the AMP measuring implicit attitudes towards flowers and insects. 
The script is designed to be easily adaptable to other target categories. 



***********************************************************************
                                 DEFAULTS
***********************************************************************
requires Inquisit 4.0.0.0 or higher

<defaults>
/ fontstyle = ("Arial", 3.5%)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
/ minimumversion = "4.0.0.0"
/canvasaspectratio = (4, 3)
</defaults>
***********************************************************************
                                 VALUES
***********************************************************************
***********************************************************************
Scoring
***********************************************************************

************
editable parameters
************


************
other parameters
************
<values>
</values>

***********************************************************************
                                 DATA
***********************************************************************
***********************************************************************
Data Columns
***********************************************************************
******************
Raw Data Files
******************
<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, response, latency, trialdata, trialdata, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]
/separatefiles = true
</data>


***********************************************************************
                                 INSTRUCTIONS
***********************************************************************
***********************************************************************
Task instruction stimuli
***********************************************************************

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>


<item instructions>
/ 1 = "In this phase of the study, we will assess your memory and perceptual ability.~n~nYou will see playing cards appear briefly on the screen and you will be asked to report which card was presented. Please try to identify each card. This may be difficult because the cards will be presented for very brief (varying) amounts of time. Please try to perform as best you can."
</item>


<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>



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

***********************************************************************
This sample AMP can be easily adapted to different target categories 
and attributes. To change the categories, you need only change the 
stimulus items and labels immediately below this line.

***********************************************************************
<item heart>
/1 = "3diamonds.jpg"
/2 = "4hearts.jpg"
/3 = "5spades.jpg"
/4 = "7clubs.jpg"
/5 = "9hearts.jpg"
</item>

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

<dropdown Question>
/ options = ("2 of hearts", "2 of diamonds", "2 of clubs", "3 of spades", "3 of hearts", "3 of diamonds", "3 of clubs", "3 of spades", "4 of hearts", "4 of diamonds", "4 of clubs", "4 of spades", "5 of hearts", "5 of diamonds", "5 of clubs", "5 of spades")
/ position = (20%, 20%) 
/ size = (90%, 5%) 
/ required = true
</dropdown>

<caption caption_question>
/ caption = "Which card was just presented on the screen?"
/ position = (80%, 5%) 
/ size = (90%, 5%) 
</caption>



***********************************************************************
Symbol and neutral stimuli
***********************************************************************



<shape blank>
/ shape = rectangle
/ color = black
/ size = (50%, 50%)
</shape>

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

<picture heart>
/ items = heart
/ size = (75%, 75%)
</picture>

***********************************************************************
Trials
***********************************************************************

<surveypage 32ms>
/ stimulustimes = [0=fixation; 900=heart; 932=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>

<surveypage 64ms>
/ stimulustimes = [0=fixation; 900=heart; 964=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 80ms>
/ stimulustimes = [0=fixation; 900=heart; 980=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 96ms>
/ stimulustimes = [0=fixation; 900=heart; 996=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 1012ms>
/ stimulustimes = [0=fixation; 900=heart; 1012=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>


<surveypage 1028ms>
/ stimulustimes = [0=fixation; 900=heart; 1028=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 1044ms>
/ stimulustimes = [0=fixation; 900=heart; 1044=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>



<surveypage 1060ms>
/ stimulustimes = [0=fixation; 900=heart; 1060=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>


<surveypage 1076ms>
/ stimulustimes = [0=fixation; 900=heart; 1076=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>


<surveypage 1092ms>
/ stimulustimes = [0=fixation; 900=heart; 1092=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
</surveypage>

***********************************************************************
Blocks
***********************************************************************
<block instructions>
/ trials = [1 = instructions]
/ recorddata = false
</block>

<block test>
/ trials = [1-3 = 32ms; 4-6 = 64ms; 7-9 = 80ms; 10-12 = 96ms; 13-15 = 1012ms; 16-18 = 1028ms; 19-21 = 1044ms; 22-24 = 1060ms; 25-27 = 1076ms; 28-30 = 1092ms]
</block>


***********************************************************************
Experiment
***********************************************************************
<expt>
/ blocks = [1=instructions; 2=test]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>



***********End of Script********************


 
By Dave - 6/15/2014

A <caption> element must be displayed via a <surveypage>'s /questions attribute -- just like any other type of survey-question. I recommend working through the "Demographics Survey" tutorial in the documentation to acquire the basics of survey-handling in Inquisit.
By Shona - 6/15/2014

Thanks very much. That was quite helpful. However, my caption is still not centered. I've included a position attribute in my surveypage element under the caption attribute. It doesn't seem to be controlling the position of the caption. Do you know what I'm doing wrong? Thanks again!

***********************************************************************
                  AFFECT MISATTRIBUTION PROCEDURE (AMP)
***********************************************************************

***********************************************************************
                                 SCRIPT INFO

updated for Inquisit 4.0 by K. Borchert (katjab@millisecond.com) for Millisecond Software LLC

last changed: 08-14-2012
***********************************************************************
                              BACKGROUND INFO
***********************************************************************
A script that implements the AMP measuring implicit attitudes towards flowers and insects. 
The script is designed to be easily adaptable to other target categories. 



***********************************************************************
                                 DEFAULTS
***********************************************************************
requires Inquisit 4.0.0.0 or higher

<defaults>
/ fontstyle = ("Arial", 3.5%)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
/ minimumversion = "4.0.0.0"
/canvasaspectratio = (4, 3)
</defaults>
***********************************************************************
                                 VALUES
***********************************************************************
***********************************************************************
Scoring
***********************************************************************

************
editable parameters
************


************
other parameters
************
<values>
</values>

***********************************************************************
                                 DATA
***********************************************************************
***********************************************************************
Data Columns
***********************************************************************
******************
Raw Data Files
******************
<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, response, latency, trialdata, trialdata, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]
/separatefiles = true
</data>


***********************************************************************
                                 INSTRUCTIONS
***********************************************************************
***********************************************************************
Task instruction stimuli
***********************************************************************

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>


<item instructions>
/ 1 = "In this phase of the study, we will assess your memory and perceptual ability.~n~nYou will see playing cards appear briefly on the screen and you will be asked to report which card was presented. Please try to identify each card. This may be difficult because the cards will be presented for very brief (varying) amounts of time. Please try to perform as best you can."
</item>


<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>



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

***********************************************************************
This sample AMP can be easily adapted to different target categories 
and attributes. To change the categories, you need only change the 
stimulus items and labels immediately below this line.

***********************************************************************
<item heart>
/1 = "3diamonds.jpg"
/2 = "4hearts.jpg"
/3 = "5spades.jpg"
/4 = "7clubs.jpg"
/5 = "9hearts.jpg"
</item>

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

<dropdown Question>
/ options = ("2 of hearts", "2 of diamonds", "2 of clubs", "3 of spades", "3 of hearts", "3 of diamonds", "3 of clubs", "3 of spades", "4 of hearts", "4 of diamonds", "4 of clubs", "4 of spades", "5 of hearts", "5 of diamonds", "5 of clubs", "5 of spades")
/ position = (20%, 20%) 
/ size = (90%, 5%) 
/ required = true
</dropdown>



***********************************************************************
Symbol and neutral stimuli
***********************************************************************



<shape blank>
/ shape = rectangle
/ color = black
/ size = (50%, 50%)
</shape>

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

<picture heart>
/ items = heart
/ size = (75%, 75%)
</picture>

***********************************************************************
Trials
***********************************************************************

<surveypage 32ms>
/ stimulustimes = [0=fixation; 900=heart; 932=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>

<surveypage 64ms>
/ stimulustimes = [0=fixation; 900=heart; 964=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>


<surveypage 80ms>
/ stimulustimes = [0=fixation; 900=heart; 980=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>



<surveypage 96ms>
/ stimulustimes = [0=fixation; 900=heart; 996=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>



<surveypage 1012ms>
/ stimulustimes = [0=fixation; 900=heart; 1012=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>


<surveypage 1028ms>
/ stimulustimes = [0=fixation; 900=heart; 1028=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>



<surveypage 1044ms>
/ stimulustimes = [0=fixation; 900=heart; 1044=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>



<surveypage 1060ms>
/ stimulustimes = [0=fixation; 900=heart; 1060=blank]
/ trialdata = [heart]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>

<surveypage 1076ms>
/ stimulustimes = [0=fixation; 900=heart; 1076=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>


<surveypage 1092ms>
/ stimulustimes = [0=fixation; 900=heart; 1092=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>

***********************************************************************
Blocks
***********************************************************************
<block instructions>
/ trials = [1 = instructions]
/ recorddata = false
</block>

<block test>
/ trials = [1-3 = 32ms; 4-6 = 64ms; 7-9 = 80ms; 10-12 = 96ms; 13-15 = 1012ms; 16-18 = 1028ms; 19-21 = 1044ms; 22-24 = 1060ms; 25-27 = 1076ms; 28-30 = 1092ms]
</block>


***********************************************************************
Experiment
***********************************************************************
<expt>
/ blocks = [1=instructions; 2=test]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>



***********End of Script********************


By Dave - 6/15/2014

<caption caption_question>
/ caption = "Which card was just presented on the screen?"
/ position = (80%, 5%) 
/ size = (90%, 5%) 
</caption>

How is this centered? And nowhere are you actually displaying that <caption> on your <surveypage>s:


<surveypage 32ms>
...
/ questions=[1=question]
...
</surveypage

etc.
By Shona - 6/15/2014

Hi Dave. I think you are looking at an old script of mine. The stuff that you pasted in your reply does not occur in my latest script, which I've pasted again below. I'd be so grateful if you'd let me know what I'm doing wrong. Thanks so much!
***********************************************************************
                  AFFECT MISATTRIBUTION PROCEDURE (AMP)
***********************************************************************

***********************************************************************
                                 SCRIPT INFO

updated for Inquisit 4.0 by K. Borchert (katjab@millisecond.com) for Millisecond Software LLC

last changed: 08-14-2012
***********************************************************************
                              BACKGROUND INFO
***********************************************************************
A script that implements the AMP measuring implicit attitudes towards flowers and insects. 
The script is designed to be easily adaptable to other target categories. 



***********************************************************************
                                 DEFAULTS
***********************************************************************
requires Inquisit 4.0.0.0 or higher

<defaults>
/ fontstyle = ("Arial", 3.5%)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
/ minimumversion = "4.0.0.0"
/canvasaspectratio = (4, 3)
</defaults>
***********************************************************************
                                 VALUES
***********************************************************************
***********************************************************************
Scoring
***********************************************************************

************
editable parameters
************


************
other parameters
************
<values>
</values>

***********************************************************************
                                 DATA
***********************************************************************
***********************************************************************
Data Columns
***********************************************************************
******************
Raw Data Files
******************
<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, response, latency, trialdata, trialdata, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]
/separatefiles = true
</data>


***********************************************************************
                                 INSTRUCTIONS
***********************************************************************
***********************************************************************
Task instruction stimuli
***********************************************************************

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>


<item instructions>
/ 1 = "In this phase of the study, we will assess your memory and perceptual ability.~n~nYou will see playing cards appear briefly on the screen and you will be asked to report which card was presented. Please try to identify each card. This may be difficult because the cards will be presented for very brief (varying) amounts of time. Please try to perform as best you can."
</item>


<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>



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

***********************************************************************
This sample AMP can be easily adapted to different target categories 
and attributes. To change the categories, you need only change the 
stimulus items and labels immediately below this line.

***********************************************************************
<item heart>
/1 = "3diamonds.jpg"
/2 = "4hearts.jpg"
/3 = "5spades.jpg"
/4 = "7clubs.jpg"
/5 = "9hearts.jpg"
</item>

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

<dropdown Question>
/ options = ("Ace of diamonds", "Ace of clubs", "Ace of hearts", "Ace of spades", "2 of diamonds", "2 of clubs", "2 of hearts", "2 of spades", "3 of diamonds", "3 of clubs", "3 of hearts", "3 of spades", "4 of diamonds", "4 of clubs", "4 of hearts", "4 of spades", "5 of diamonds", "5 of clubs", "5 of hearts", "5 of spades", "6 of diamonds", "6 of clubs", "6 of hearts", "6 of spades", "7 of diamonds", "7 of clubs", "7 of hearts", "7 of spades", "8 of diamonds", "8 of clubs", "8 of hearts", "8 of spades", "9 of diamonds", "9 of clubs", "9 of hearts", "9 of spades", "10 of diamonds", "10 of clubs", "10 of hearts", "10 of spades", "11 of diamonds", "11 of clubs", "11 of hearts", "11 of spades", "12 of diamonds", "12 of clubs", "12 of hearts", "12 of spades", "Jack of diamonds", "Jack of clubs", "Jack of hearts", "Jack of spades", "Queen of diamonds", "Queen of clubs", "Queen of hearts", "Queen of spades", "King of diamonds", "King of clubs", "King of hearts", "King of spades")
/ position = (40%, 50%) 
/ size = (90%, 5%) 
/ required = true
</dropdown>



***********************************************************************
Symbol and neutral stimuli
***********************************************************************



<shape blank>
/ shape = rectangle
/ color = black
/ size = (50%, 50%)
</shape>

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

<picture heart>
/ items = heart
/ size = (75%, 75%)
</picture>

***********************************************************************
Trials
***********************************************************************

<surveypage 32ms>
/ stimulustimes = [0=fixation; 900=heart; 932=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>

<surveypage 64ms>
/ stimulustimes = [0=fixation; 900=heart; 964=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>


<surveypage 80ms>
/ stimulustimes = [0=fixation; 900=heart; 980=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>



<surveypage 96ms>
/ stimulustimes = [0=fixation; 900=heart; 996=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>



<surveypage 1012ms>
/ stimulustimes = [0=fixation; 900=heart; 1012=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>


<surveypage 1028ms>
/ stimulustimes = [0=fixation; 900=heart; 1028=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>



<surveypage 1044ms>
/ stimulustimes = [0=fixation; 900=heart; 1044=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>



<surveypage 1060ms>
/ stimulustimes = [0=fixation; 900=heart; 1060=blank]
/ trialdata = [heart]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>

<surveypage 1076ms>
/ stimulustimes = [0=fixation; 900=heart; 1076=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>


<surveypage 1092ms>
/ stimulustimes = [0=fixation; 900=heart; 1092=blank]
/ trialdata = [heart]
/ validresponse = (mouseevent)
/ showpagenumbers = false
/ showquestionnumbers = false
/ questions=[1=question]
/ showbackbutton=false
/ finishlabel = "Next"
/ posttrialpause = 1000
/ caption = "Which card was just presented on the screen?"
/ position = (50%, 20%) 
/ size = (90%, 5%) 
</surveypage>

***********************************************************************
Blocks
***********************************************************************
<block instructions>
/ trials = [1 = instructions]
/ recorddata = false
</block>

<block test>
/ trials = [1-3 = 32ms; 4-6 = 64ms; 7-9 = 80ms; 10-12 = 96ms; 13-15 = 1012ms; 16-18 = 1028ms; 19-21 = 1044ms; 22-24 = 1060ms; 25-27 = 1076ms; 28-30 = 1092ms]
</block>


***********************************************************************
Experiment
***********************************************************************
<expt>
/ blocks = [1=instructions; 2=test]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>



***********End of Script********************


By Dave - 6/15/2014

Shona,

*there is no <caption> at all in your latest script*. And <surveypage> does *not* have /size or /position attributes -- it would not make any sense for it to do. The *stuff you put on it* has /position and /size attributes:

<surveypage mypage>
/ questions = [1=mycaption; 2=mydropdown]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<caption mycaption>
/ caption = "I am a <caption> element."
/ position = (40%, 10%)
</caption>

<dropdown mydropdown>
/ caption = "I am a <dropdown> element."
/ options = ("A", "B", "C")
/ position = (40%, 25%)
</dropdown>
By Shona - 6/15/2014

Thank you so much!! One more question: is there any way for me to present the dropdown box and the caption simultaneously after the other stimuli have been presented on the screen (i.e., at the end of each trial)?
By Dave - 6/15/2014

Dave (6/15/2014)
Shona,

a <dropdown> element is *not a stimulus*. It *cannot* be displayed via a <trial>'s /stimulustimes or -frames. What you need to do is put that dropdown on a <surveypage> and then run that page after the <trial> presenting the other stimuli.
By Shona - 6/15/2014

I'm so grateful for your help! Just one more question. When I specify that the caption and dropdown box should be 50% on the x (horizontal) coordinate, they do not appear to be exactly centered on my screen.  In fact,  I have to specify 30% in order for it to be centered on my screen. Do you know why this is the case? Similarly, the finish button appears slightly to the right of center. How can I get these things to be presented precisely in the middle of any screen that they will be presented on? Thanks again! 

***********************************************************************
                  AFFECT MISATTRIBUTION PROCEDURE (AMP)
***********************************************************************

***********************************************************************
                                 SCRIPT INFO

updated for Inquisit 4.0 by K. Borchert (katjab@millisecond.com) for Millisecond Software LLC

last changed: 08-14-2012
***********************************************************************
                              BACKGROUND INFO
***********************************************************************
A script that implements the AMP measuring implicit attitudes towards flowers and insects. 
The script is designed to be easily adaptable to other target categories. 



***********************************************************************
                                 DEFAULTS
***********************************************************************
requires Inquisit 4.0.0.0 or higher

<defaults>
/ fontstyle = ("Arial", 3.5%)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
/ minimumversion = "4.0.0.0"
/canvasaspectratio = (4, 3)
</defaults>
***********************************************************************
                                 VALUES
***********************************************************************
***********************************************************************
Scoring
***********************************************************************

************
editable parameters
************


************
other parameters
************
<values>
</values>

***********************************************************************
                                 DATA
***********************************************************************
***********************************************************************
Data Columns
***********************************************************************
******************
Raw Data Files
******************
<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, response, latency, trialdata, trialdata, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]
/separatefiles = true
</data>


***********************************************************************
                                 INSTRUCTIONS
***********************************************************************
***********************************************************************
Task instruction stimuli
***********************************************************************

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>


<item instructions>
/ 1 = "In this phase of the study, we will assess your memory and perceptual ability.~n~nYou will see playing cards appear briefly on the screen and you will be asked to report which card was presented. Please try to identify each card. This may be difficult because the cards will be presented for very brief (varying) amounts of time. Please try to perform as best you can."
</item>


<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>



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

***********************************************************************
This sample AMP can be easily adapted to different target categories 
and attributes. To change the categories, you need only change the 
stimulus items and labels immediately below this line.

***********************************************************************
<item heart>
/1 = "3diamonds.jpg"
/2 = "4hearts.jpg"
/3 = "5spades.jpg"
/4 = "7clubs.jpg"
/5 = "9hearts.jpg"
</item>

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

<dropdown Question>
/ options = ("Ace of diamonds", "Ace of clubs", "Ace of hearts", "Ace of spades", "2 of diamonds", "2 of clubs", "2 of hearts", "2 of spades", "3 of diamonds", "3 of clubs", "3 of hearts", "3 of spades", "4 of diamonds", "4 of clubs", "4 of hearts", "4 of spades", "5 of diamonds", "5 of clubs", "5 of hearts", "5 of spades", "6 of diamonds", "6 of clubs", "6 of hearts", "6 of spades", "7 of diamonds", "7 of clubs", "7 of hearts", "7 of spades", "8 of diamonds", "8 of clubs", "8 of hearts", "8 of spades", "9 of diamonds", "9 of clubs", "9 of hearts", "9 of spades", "10 of diamonds", "10 of clubs", "10 of hearts", "10 of spades", "11 of diamonds", "11 of clubs", "11 of hearts", "11 of spades", "12 of diamonds", "12 of clubs", "12 of hearts", "12 of spades", "Jack of diamonds", "Jack of clubs", "Jack of hearts", "Jack of spades", "Queen of diamonds", "Queen of clubs", "Queen of hearts", "Queen of spades", "King of diamonds", "King of clubs", "King of hearts", "King of spades")
/ position = (40%, 20%) 
/ size = (90%, 5%) 
/ required = true
</dropdown>

<caption caption>
/ caption = "Which card was just presented on the screen?"
/ position = (30%, 8%) 
/ size = (70%, 10%) 
</caption>


***********************************************************************
Symbol and neutral stimuli
***********************************************************************



<shape blank>
/ shape = rectangle
/ color = black
/ size = (50%, 50%)
</shape>

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

<picture heart>
/ items = heart
/ size = (75%, 75%)
</picture>

***********************************************************************
Trials
***********************************************************************


<surveypage quest_caption>
/ questions=[1=question; 2=caption]
/ showpagenumbers = false
/ showquestionnumbers = false
/ showbackbutton=false
/ finishlabel = "Next"
</surveypage>

<trial 16ms>
/ stimulustimes = [0=fixation; 900=heart; 916=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 32ms>
/ stimulustimes = [0=fixation; 900=heart; 932=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>


<trial 48ms>
/ stimulustimes = [0=fixation; 900=heart; 948=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 64ms>
/ stimulustimes = [0=fixation; 900=heart; 964=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 80ms>
/ stimulustimes = [0=fixation; 900=heart; 980=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 96ms>
/ stimulustimes = [0=fixation; 900=heart; 996=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 1012ms>
/ stimulustimes = [0=fixation; 900=heart; 1012=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 1028ms>
/ stimulustimes = [0=fixation; 900=heart; 1028=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 1044ms>
/ stimulustimes = [0=fixation; 900=heart; 1044=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 1060ms>
/ stimulustimes = [0=fixation; 900=heart; 1060=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>


***********************************************************************
Blocks
***********************************************************************
<block instructions>
/ trials = [1 = instructions]
/ recorddata = false
</block>

<block test>
/ trials = [1 = 16ms; 2 = quest_caption; 3 = 16ms; 4 = quest_caption; 5 = 16ms; 6 = quest_caption; 7 = 32ms; 8 = quest_caption; 9 = 32ms; 10 = quest_caption; 11 = 32ms; 12 = quest_caption; 13 = 48ms; 14 = quest_caption; 15 = 48ms; 16 = quest_caption; 17 = 48ms; 18 = quest_caption; 19 = 64ms; 20 = quest_caption; 21 = 64ms; 22 = quest_caption; 23 = 64ms; 24 = quest_caption; 25 = 80ms; 26 = quest_caption; 27 = 80ms; 28 = quest_caption; 29 = 80ms; 30 = quest_caption; 31 = 96ms; 32 = quest_caption; 33 = 96ms; 34 = quest_caption; 35 = 96ms; 36 = quest_caption; 37 = 1012ms; 38 = quest_caption; 39 = 1012ms; 40 = quest_caption; 41 = 1012ms; 42 = quest_caption; 43 = 1028ms; 44 = quest_caption; 45 = 1028ms; 46 = quest_caption; 47 = 1028ms; 48 = quest_caption; 49 = 1044ms; 50 = quest_caption; 51 = 1044ms; 52 = quest_caption; 53 = 1044ms; 54 = quest_caption; 55 = 1060ms; 56 = quest_caption; 57 = 1060ms; 58 = quest_caption;  59 = 1060ms; 60 = quest_caption]
</block>


***********************************************************************
Experiment
***********************************************************************
<expt>
/ blocks = [1=instructions; 2=test]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>



***********End of Script********************


By Dave - 6/15/2014

Dave (6/15/2014)
Captions (and any survey elements in general) are left-aligned. You cannot center them. If need be, define a separate <caption> element and use its /position attribute to place it according to your preferences.
By Shona - 6/15/2014

Hi Dave. I did create a separate caption element and I did use the position element to center it. (see script below) When I tried centering it at 50%, it appeared on the screen to the left. That;s why it's not 50%. Do you know why? Thanks again!

***********************************************************************
                  AFFECT MISATTRIBUTION PROCEDURE (AMP)
***********************************************************************

***********************************************************************
                                 SCRIPT INFO

updated for Inquisit 4.0 by K. Borchert (katjab@millisecond.com) for Millisecond Software LLC

last changed: 08-14-2012
***********************************************************************
                              BACKGROUND INFO
***********************************************************************
A script that implements the AMP measuring implicit attitudes towards flowers and insects. 
The script is designed to be easily adaptable to other target categories. 



***********************************************************************
                                 DEFAULTS
***********************************************************************
requires Inquisit 4.0.0.0 or higher

<defaults>
/ fontstyle = ("Arial", 3.5%)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
/ minimumversion = "4.0.0.0"
/canvasaspectratio = (4, 3)
</defaults>
***********************************************************************
                                 VALUES
***********************************************************************
***********************************************************************
Scoring
***********************************************************************

************
editable parameters
************


************
other parameters
************
<values>
</values>

***********************************************************************
                                 DATA
***********************************************************************
***********************************************************************
Data Columns
***********************************************************************
******************
Raw Data Files
******************
<data>
/file = "AMP_rawdata.iqdat"
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, response, latency, trialdata, trialdata, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber, stimulusitem, stimulusnumber]
/separatefiles = true
</data>


***********************************************************************
                                 INSTRUCTIONS
***********************************************************************
***********************************************************************
Task instruction stimuli
***********************************************************************

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>


<item instructions>
/ 1 = "In this phase of the study, we will assess your memory and perceptual ability.~n~nYou will see playing cards appear briefly on the screen and you will be asked to report which card was presented. Please try to identify each card. This may be difficult because the cards will be presented for very brief (varying) amounts of time. Please try to perform as best you can."
</item>


<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>



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

***********************************************************************
This sample AMP can be easily adapted to different target categories 
and attributes. To change the categories, you need only change the 
stimulus items and labels immediately below this line.

***********************************************************************
<item heart>
/1 = "3diamonds.jpg"
/2 = "4hearts.jpg"
/3 = "5spades.jpg"
/4 = "7clubs.jpg"
/5 = "9hearts.jpg"
</item>

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

<dropdown Question>
/ options = ("Ace of diamonds", "Ace of clubs", "Ace of hearts", "Ace of spades", "2 of diamonds", "2 of clubs", "2 of hearts", "2 of spades", "3 of diamonds", "3 of clubs", "3 of hearts", "3 of spades", "4 of diamonds", "4 of clubs", "4 of hearts", "4 of spades", "5 of diamonds", "5 of clubs", "5 of hearts", "5 of spades", "6 of diamonds", "6 of clubs", "6 of hearts", "6 of spades", "7 of diamonds", "7 of clubs", "7 of hearts", "7 of spades", "8 of diamonds", "8 of clubs", "8 of hearts", "8 of spades", "9 of diamonds", "9 of clubs", "9 of hearts", "9 of spades", "10 of diamonds", "10 of clubs", "10 of hearts", "10 of spades", "11 of diamonds", "11 of clubs", "11 of hearts", "11 of spades", "12 of diamonds", "12 of clubs", "12 of hearts", "12 of spades", "Jack of diamonds", "Jack of clubs", "Jack of hearts", "Jack of spades", "Queen of diamonds", "Queen of clubs", "Queen of hearts", "Queen of spades", "King of diamonds", "King of clubs", "King of hearts", "King of spades")
/ position = (40%, 20%) 
/ size = (90%, 5%) 
/ required = true
</dropdown>

<caption caption>
/ caption = "Which card was just presented on the screen?"
/ position = (30%, 8%) 
/ size = (70%, 10%) 
</caption>


***********************************************************************
Symbol and neutral stimuli
***********************************************************************



<shape blank>
/ shape = rectangle
/ color = black
/ size = (50%, 50%)
</shape>

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

<picture heart>
/ items = heart
/ size = (75%, 75%)
</picture>

***********************************************************************
Trials
***********************************************************************


<surveypage quest_caption>
/ questions=[1=question; 2=caption]
/ showpagenumbers = false
/ showquestionnumbers = false
/ showbackbutton=false
/ finishlabel = "Next"
</surveypage>

<trial 16ms>
/ stimulustimes = [0=fixation; 900=heart; 916=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 32ms>
/ stimulustimes = [0=fixation; 900=heart; 932=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>


<trial 48ms>
/ stimulustimes = [0=fixation; 900=heart; 948=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 64ms>
/ stimulustimes = [0=fixation; 900=heart; 964=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 80ms>
/ stimulustimes = [0=fixation; 900=heart; 980=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 96ms>
/ stimulustimes = [0=fixation; 900=heart; 996=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 1012ms>
/ stimulustimes = [0=fixation; 900=heart; 1012=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 1028ms>
/ stimulustimes = [0=fixation; 900=heart; 1028=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 1044ms>
/ stimulustimes = [0=fixation; 900=heart; 1044=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>

<trial 1060ms>
/ stimulustimes = [0=fixation; 900=heart; 1060=blank]
/ trialdata = [heart]
/ timeout = 10
</trial>


***********************************************************************
Blocks
***********************************************************************
<block instructions>
/ trials = [1 = instructions]
/ recorddata = false
</block>

<block test>
/ trials = [1 = 16ms; 2 = quest_caption; 3 = 16ms; 4 = quest_caption; 5 = 16ms; 6 = quest_caption; 7 = 32ms; 8 = quest_caption; 9 = 32ms; 10 = quest_caption; 11 = 32ms; 12 = quest_caption; 13 = 48ms; 14 = quest_caption; 15 = 48ms; 16 = quest_caption; 17 = 48ms; 18 = quest_caption; 19 = 64ms; 20 = quest_caption; 21 = 64ms; 22 = quest_caption; 23 = 64ms; 24 = quest_caption; 25 = 80ms; 26 = quest_caption; 27 = 80ms; 28 = quest_caption; 29 = 80ms; 30 = quest_caption; 31 = 96ms; 32 = quest_caption; 33 = 96ms; 34 = quest_caption; 35 = 96ms; 36 = quest_caption; 37 = 1012ms; 38 = quest_caption; 39 = 1012ms; 40 = quest_caption; 41 = 1012ms; 42 = quest_caption; 43 = 1028ms; 44 = quest_caption; 45 = 1028ms; 46 = quest_caption; 47 = 1028ms; 48 = quest_caption; 49 = 1044ms; 50 = quest_caption; 51 = 1044ms; 52 = quest_caption; 53 = 1044ms; 54 = quest_caption; 55 = 1060ms; 56 = quest_caption; 57 = 1060ms; 58 = quest_caption;  59 = 1060ms; 60 = quest_caption]
</block>


***********************************************************************
Experiment
***********************************************************************
<expt>
/ blocks = [1=instructions; 2=test]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>



***********End of Script********************



By Dave - 6/15/2014

As I've tried to explain repeatedly: Any survey-type stuff is *left-aligned*. That includes <caption> elements. For any element, such as a <caption>, positioned at 50% horizontally this means:

|---------------|---------------|
|                               |
|<-----50%----->Caption         |
|                               |
|                               |
|                               |
|                               |
|                               |
|                               |
|---------------|---------------|