Millisecond Forums

alternative to batch element

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

By jusaar - 5/6/2014

Hello guys,
is there an alternativ to the "batch" element?
I got many single files which should be included into one, but batch breaks up before it continues the next data (tasks and questionnaires).

Thank you for your help!

Julia :)
By Dave - 5/6/2014

The only other option is to merge everything into a single script. You'll find this covered in the latter part of the "How to Combine Multiple Scripts" topic in the Inquisit documentation.
By jusaar - 5/6/2014

Thank you for your answer! I tried but it isn't possible to run the skript.
By Dave - 5/6/2014

> I tried but it isn't possible to run the skript.                               

... which most likely means you've made mistakes in the process of merging the various procedures and need to thoroughly double-check your code.
By jusaar - 5/7/2014

Thank you! - i got it.
By Eimear - 3/27/2015

Hi,

I was wondering whether there is a way for the script to run without 'breaking' between the different files if you use the batch function? The files run together fine but there is always a second between them where the script of one visibly ends before beginning again with the next file. 

I know they can run seamlessly with the include function but I was hoping to avoid this as I need to include 3 IATs, 3 questionnaires and a demographics section into the one file so it gets complicated.

Thank you.
By Dave - 3/27/2015

No. The only way to avoid those transitions is to merge the files into a single script -- whether by using <include> or otherwise. It won't work via <batch> or other means.
By Eimear - 3/27/2015

OK. Thanks for the quick reply.
By Dave - 3/27/2015

To explain why that is: Before Inquisit can start to actually execute a given script, it must check it for syntax errors, verify that any external files (images, etc.) the script needs are where they ought to be, etc. If Inquisit didn't do that, you'd risk failing catastrophically at runtime and -- at worst -- loosing some of your data. Those checks are what happens during the short transition periods when running multiple scripts one after another via <batch>.

If you have everything in a single script, Inquisit only has to perform syntax, etc.checks once -- at the very beginning of the session. Hope this clarifies.
By Eimear - 3/27/2015

Ah OK, that makes sense. Thanks very much for clarifying.