Malfunctioning Batch Script


Author
Message
unicornx
unicornx
Partner Member (674 reputation)Partner Member (674 reputation)Partner Member (674 reputation)Partner Member (674 reputation)Partner Member (674 reputation)Partner Member (674 reputation)Partner Member (674 reputation)Partner Member (674 reputation)Partner Member (674 reputation)
Group: Forum Members
Posts: 5, Visits: 82
Hello,

I am trying to run a <batch> script, and for some reason, it does not work. I've tried to validate the two files of the <batch> script, and they work fine, but when I put them together, it doesn't work in Inquisit 4 (but it works in Inquisit 5). Is there a feature of Inquisit 4 that I've missed that Inquisit 5 has, and if so, is there a way around this issue? 

Here are the scripts: 

The combined script: 
<batch condition01>
/subjects= (1 of 2)
/groupassignment= random
/ file= "Batch UVA Final.iqx"
</batch>

<batch condition02>
/subjects= (2 of 2)
/groupassignment= random
/ file= "Batch VCU.iqx"
</batch>


Batch UVA (same thing for Batch VCU.iqx): 
<batch>
/ file = "UVA group assignment.iqx"
/ file = "ManipCheck UVA.iqx"
/ file = "Disgust Ratings UVA.iqx"
/ file = "donatemoney.iqx"
/ file = "Demographic Survey UVA Final (2).iqx"
</batch>

Thanks! 
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: 13K, Visits: 104K
If I'm understanding your setup correctly, you are trying to run a <batch> element that _in turn_ runs another <batch>-script that runs the "actual" scripts, right?

If so, that won't work. The solution would be to get rid of "Batch UVA Final.iqx" and "Batch VCU.iqx", and instead list the scripts direclty in the "main" <batch> elements. I.e., you'd have a single <batch>-script containing just

// scripts for the UVA condition
<batch condition01>
/subjects= (1 of 2)
/groupassignment= random
/ file = "UVA group assignment.iqx"
/ file = "ManipCheck UVA.iqx"
/ file = "Disgust Ratings UVA.iqx"
/ file = "donatemoney.iqx"
/ file = "Demographic Survey UVA Final (2).iqx"
</batch>

// scripts for the VCU condition
<batch condition02>
/subjects= (2 of 2)
/groupassignment= random
/ file= "1st script formerly contained in Batch VCU.iqx'"
/ file = "2nd script formerly contained in Batch VCU.iqx"
....
</batch>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search