Millisecond Forums

combining task and survey

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

By boffnot - 7/2/2013

Hi there,


I have a reaction time task ready to go in one inquisit file, and a survey in another.  I want to combine them so that the survey comes immediately after reaction time task.  I know this would be extremely common.  Would you mind giving a little direction?


Thank you so much,


Naomi 

By Dave - 7/2/2013

See the "Running Sequences of Inquisit Scripts and Other Applications" topic in the documentation.

By boffnot - 7/2/2013

Magic.  Thank you Dave.

By boffnot - 7/3/2013

Hi there,


Now that things are running using batch, is it possible to combine the data to be all in one file whilst still within Inquisit? 


Many thanks,


Naomi

By Dave - 7/3/2013

No. Given that the resulting data files will presumably differ substantially in terms of formatting, recorded variables etc. and require different steps in terms of data pre-processing and aggregation, you'll want to do that using your dedicated data analysis application of choice.


If you want everything in a single file, you should not use <batch> in the first place. Neither should you use <survey> elements, but instead run any <surveypage>s via <block> elements.

By boffnot - 7/3/2013

Sorry Dave! Will you tell me where i can find more about using blocks for surveys?

By Dave - 7/3/2013

You can find all relevant info In the respective documentation topics (i.e. language reference for <survey>, <surveypage> etc.) as well as here via the forum's search facility.


A <surveypage> is a special type of <trial>, a <survey> is a special type of <block>. <survey>s record data in 'wide' format in a separate file, <block>s record data in 'long' format.

By boffnot - 7/3/2013

Thank you.  I have the program running now but it stops when it finishes the task and gets to the survey and it is not showing any error message as to why.  Can you see why from this?  Blocks 1-4 run fine so I didn't include them but when it gets up to the demographics block it stops.



<block demographics>


/ pages = [1=demographics1]


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


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


/ itemspacing = 2%


/ showpagenumbers = false


</block>



<block SDQICU>


/ pages = [1 = SDQ1; 2 = SDQ2; 3 = SDQ3; 4 = SDQ4; 5 = SDQ5; 6 = ICU1; 7 = ICU2; 8 = ICU3; 9 = ICU4; 10 = ICU5]


/ finishlabel = "Finish"


/ nextlabel = "Next"


/ backlabel = "Back"


</block>


<expt>


/blocks = [1=blockprac; 2=block1; 3=block2; 4=block3; 5=block4; 6=demographics; 7=SDQICU]


</expt>



By Dave - 7/3/2013


<block demographics>


/ pages = [1=demographics1]




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




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




/ itemspacing = 2%




/ showpagenumbers = false


</block>



There is no such thing as a /pages attribute in <block> elements. You need to use /trials. The other attributes highlighted do not exist either, as the error message will clearly tell you when to try to parse that script. You need to define that stuff at the <surveypage> level.