drop down responses


Author
Message
Shona
Shona
Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)
Group: Forum Members
Posts: 72, Visits: 58
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********************



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
<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.

Shona
Shona
Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)
Group: Forum Members
Posts: 72, Visits: 58
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********************



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
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>

Edited 10 Years Ago by Dave
Shona
Shona
Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)
Group: Forum Members
Posts: 72, Visits: 58
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)?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
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.

Shona
Shona
Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)
Group: Forum Members
Posts: 72, Visits: 58
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********************



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
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.

Shona
Shona
Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)Guru (12K reputation)
Group: Forum Members
Posts: 72, Visits: 58
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********************




Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
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         |
|                               |
|                               |
|                               |
|                               |
|                               |
|                               |
|---------------|---------------|



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search