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
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********************




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,

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
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>


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
A <surveypage> doesn't have an /optionsvalues attribute. The <dropdown> has, and that's where it needs to go.

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 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********************



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,

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>

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,

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********************



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
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.

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 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********************


 

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
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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search