Millisecond Forums

Running a batch script - problem with integrating demographic section

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

By AndyM - 12/9/2013

Hi


I have a batch script which has a demographic set of questions then 2 IATs.


Each script runs fine in isolation and the 2 IATs run into one another in the script correctly.  However, if I put the demographic part into the batch script it executes, asks for the ID and group, box disappears and nothing happens (and Inquisit closes).


Is there something that must be included in the demographic part (I am using a version of the demographic similar to that in the demo in the library https://www.millisecond.com/download/library/v3/demographics/demographics.exp)


Thanks in advance


Andy

By Dave - 12/9/2013

This is impossible to answer without the respective script.

By AndyM - 12/9/2013

Hi Dave thanks for the reply,


The demog script is quite basic - here it is in full:



**********page 1*******************



<dropdown sex>


/ caption = "Are you..."


/ options = ("Male", "Female")


</dropdown>



<textbox age>


/ caption = "How old are you?"


/ mask = positiveinteger


/ range = (7, 110)


</textbox>



<radiobuttons phonemake>


/ caption = "Which make is your mobile phone (if you have more than one please select your main phone)"


/ options = ("Apple iPhone", "Samsung", "HTC", "Nokia", "Siemens", "Sony", "Other")


/ optionvalues = ("1", "2", "3", "4", "5", "6", "7")


</radiobuttons>



<checkboxes otherdevices>


/ caption = "Which of the following devices do you own?"


/ options = ("Windows desktop computer", "Windows laptop computer", "Apple Mac Laptop", "iPad", "Tablet (non-iPad, e.g. Nexus", "iPod mp3 player", "non-apple MP3 player")


/ optionvalues = ("1", "2", "3", "4", "5", "6", "7")


</checkboxes>



<slider techy>


/ caption = "How techy do you think you are? (please use the slider below)"


/ labels = ("Extremely not techy", "Quite not techy", "Not very techy", "Neither", "A little techy", "Quite techy", "Extremely techy")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



**********page 2*******************



<slider goodbad>


/ caption = ""


/ labels = ("Bad", "", "", "", "", "", "Good")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ txcolor = (0, 125, 177)


/ showtooltips = false


</slider>



<slider plesunples>


/ caption = ""


/ labels = ("Unpleasent", "", "", "", "", "", "Pleasant")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



<slider infsup>


/ caption = ""


/ labels = ("Inferior", "", "", "", "", "", "Superior")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



<slider satunsat>


/ caption = ""


/ labels = ("Unsatisfactory", "", "", "", "", "", "Satisfactory")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



<slider favunfav>


/ caption = ""


/ labels = ("Unfavourable", "", "", "", "", "", "Favourable")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



**********page 3*******************



<slider goodbad1>


/ caption = ""


/ labels = ("Bad", "", "", "", "", "", "Good")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



<slider plesunples1>


/ caption = ""


/ labels = ("Unpleasent", "", "", "", "", "", "Pleasant")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



<slider infsup1>


/ caption = ""


/ labels = ("Inferior", "", "", "", "", "", "Superior")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



<slider satunsat1>


/ caption = ""


/ labels = ("Unsatisfactory", "", "", "", "", "", "Satisfactory")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



<slider favunfav1>


/ caption = ""


/ labels = ("Unfavourable", "", "", "", "", "", "Favourable")


/ range = (1, 7)


/ slidersize = (60%, 5%)


/ showtooltips = false


</slider>



<surveypage demographics1>


/ caption = "First, just a couple of quick questions..."


/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)


/ questions = [1=sex; 2=age; 3=phonemake; 4=otherdevices; 5=techy] 


</surveypage>



<surveypage demographics2>


/ caption = "I would like to ask you a few questions about Apple's iPhone..."


/ fontstyle = ("Verdana", -16, true, true, false, false, 5, 0)


/ questions = [1=goodbad; 2=plesunples; 3=infsup; 4=satunsat; 5=favunfav] 


</surveypage>



<surveypage demographics3>


/ caption = "I would like to ask you a few questions about Samsung..."


/ fontstyle = ("Verdana", -16, true, true, false, false, 5, 0)


/ questions = [1=goodbad1; 2=plesunples1; 3=infsup1; 4=satunsat1; 5=favunfav1] 


</surveypage>



<survey demographics>


/ pages = [1=demographics1; 2=demographics2; 3=demographics3]


/ responsefontstyle = ("Verdana", -16, false, false, false, false, 5, 0)


/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)


/ itemspacing = 2%


/ showpagenumbers = false


</survey>



By Dave - 12/9/2013

Thanks. I can run that script just fine via <batch> along with others:


<batch>
/ file = "demo.iqx"
/ file = "iat.iqx"
</batch>


#1: Is your Inquisit installation up to date?


#2: Have you double-checked the syntax in your <batch> element(s) for any errors / typos etc.?

By AndyM - 12/9/2013

hmm i think i am have the correct script:


<batch>


/ file = "Demogs.ipx"


/ file = "pictureiat_pleasent_unpleasent.iqx"


/ file = "pictureiat_self_other.iqx"


</batch>



hmmm?


By Dave - 12/9/2013

hmm i think i am have the correct script:


Nope:



<batch>


/ file = "Demogs.ipx"


/ file = "pictureiat_pleasent_unpleasent.iqx"


/ file = "pictureiat_self_other.iqx"


</batch>



By AndyM - 12/9/2013

wow I am a dope - thanks!