Millisecond Online Community

Experiment working offline but not online

rated by 0 users
This post has 4 Replies | 1 Follower

Top 500 Contributor
Posts 7
AmyB Posted: 04-11-2012 10:29 PM

Hi,

I am running an experiment using a batch file (see below) which randomises the order of 4 different tasks.

While the experiment runs perfectly offline, when I run it online http://research.millisecond.com/sydney_psych/DiabetesFollowup.web it consistently fails to load one of the tasks: the CardSortTest.exp.

The only other difference between the offline and online version is the subject ID which I am using javascript for to assign an ID containing letters and numbers of 8 digits in length (also below).

Does any reason come to mind why this might be the case?

Cheers,

Amy

___________________________________________________________________________________

Batch file:

<batch>
/ subjects = (1 of 24)
/ groupassignment = random
/ file = "CardSortTest.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "SingleTaskNBack.exp"
</batch>

<batch>
/ subjects = (2 of 24)
/ groupassignment = random
/ file = "CardSortTest.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "SingleTaskNBack.exp"
</batch>

<batch>
/ subjects = (3 of 24)
/ groupassignment = random
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "CardSortTest.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "SingleTaskNBack.exp"
</batch>

<batch>
/ subjects = (4 of 24)
/ groupassignment = random
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "CardSortTest.exp"
/ file = "SingleTaskNBack.exp"
</batch>

<batch>
/ subjects = (5 of 24)
/ groupassignment = random
/ file = "AutomatedOSPAN-1.exp"
/ file = "CardSortTest.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "SingleTaskNBack.exp"
</batch>

<batch>
/ subjects = (6 of 24)
/ groupassignment = random
/ file = "AutomatedOSPAN-1.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "CardSortTest.exp"
/ file = "SingleTaskNBack.exp"
</batch>

Second lot of six:
<batch>
/ subjects = (7 of 24)
/ groupassignment = random
/ file = "CardSortTest.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "SingleTaskNBack.exp"
/ file = "AutomatedOSPAN-1.exp"
</batch>

<batch>
/ subjects = (8 of 24)
/ groupassignment = random
/ file = "CardSortTest.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "SingleTaskNBack.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
</batch>

<batch>
/ subjects = (9 of 24)
/ groupassignment = random
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "CardSortTest.exp"
/ file = "SingleTaskNBack.exp"
/ file = "AutomatedOSPAN-1.exp"
</batch>

<batch>
/ subjects =
/ subjects = (10 of 24)
/ groupassignment = random
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "SingleTaskNBack.exp"
/ file = "CardSortTest.exp"
</batch>

<batch>
/ subjects = (11 of 24)
/ groupassignment = random
/ file = "AutomatedOSPAN-1.exp"
/ file = "CardSortTest.exp"
/ file = "SingleTaskNBack.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
</batch>

<batch>
/ subjects = (12 of 24)
/ groupassignment = random
/ file = "AutomatedOSPAN-1.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "SingleTaskNBack.exp"
/ file = "CardSortTest.exp"
</batch>

Third lot of six:
<batch>
/ subjects = (13 of 24)
/ groupassignment = random
/ file = "CardSortTest.exp"
/ file = "SingleTaskNBack.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "AutomatedOSPAN-1.exp"
</batch>

<batch>
/ subjects = (14 of 24)
/ groupassignment = random
/ file = "CardSortTest.exp"
/ file = "SingleTaskNBack.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
</batch>

<batch>
/ subjects = (15 of 24)
/ groupassignment = random
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "SingleTaskNBack.exp"
/ file = "CardSortTest.exp"
/ file = "AutomatedOSPAN-1.exp"
</batch>

<batch>
/ subjects = (16 of 24)
/ groupassignment = random
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "SingleTaskNBack.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "CardSortTest.exp"
</batch>

<batch>
/ subjects = (17 of 24)
/ groupassignment = random
/ file = "AutomatedOSPAN-1.exp"
/ file = "SingleTaskNBack.exp"
/ file = "CardSortTest.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
</batch>

<batch>
/ subjects = (18 of 24)
/ groupassignment = random
/ file = "AutomatedOSPAN-1.exp"
/ file = "SingleTaskNBack.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "CardSortTest.exp"
</batch>

Fourth lot of six:
<batch>
/ subjects = (19 of 24)
/ groupassignment = random
/ file = "SingleTaskNBack.exp"
/ file = "CardSortTest.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "AutomatedOSPAN-1.exp"
</batch>

<batch>
/ subjects = (20 of 24)
/ groupassignment = random
/ file = "SingleTaskNBack.exp"
/ file = "CardSortTest.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
</batch>

<batch>
/ subjects = (21 of 24)
/ groupassignment = random
/ file = "SingleTaskNBack.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "CardSortTest.exp"
/ file = "AutomatedOSPAN-1.exp"
</batch>

<batch>
/ subjects = (22 of 24)
/ groupassignment = random
/ file = "SingleTaskNBack.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "CardSortTest.exp"
</batch>

<batch>
/ subjects = (23 of 24)
/ groupassignment = random
/ file = "SingleTaskNBack.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "CardSortTest.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
</batch>

<batch>
/ subjects = (24 of 24)
/ groupassignment = random
/ file = "SingleTaskNBack.exp"
/ file = "AutomatedOSPAN-1.exp"
/ file = "StroopWithControlKeyboard-1PB.exp"
/ file = "CardSortTest.exp"
</batch>

JavaScript ID

var intRegExp = /(^\w{8}$)/;
var promptMsg = "Please enter your password.";
var confirmMsg = "Please confirm your password.";
var invalidMsg = "The password was invalid. Please enter a valid password.";
var matchMsg = "The passwords you entered did not match. Please enter the password again.";

var snum = window.prompt(promptMsg, "");

while ( snum != null && intRegExp.test(snum) == false )
{
// if the input was invalid, prompt again
    window.alert(invalidMsg);
    snum = window.prompt(promptMsg, "");
}

if ( snum == null )
{
    return null;
}

var sconfirm = window.prompt(confirmMsg, "");
while ( sconfirm != null && (sconfirm != snum || intRegExp.test(sconfirm) == false) )
{
    // if the input was invalid, prompt again
    if ( intRegExp.test(sconfirm) == false)
    {
        window.alert(invalidMsg);
    }
   
    // if the numbers do not match, alert the user and bail out so
   //they can start over
    else if ( sconfirm != snum )
    {
        window.alert(matchMsg);
        return null;
    }
   
    sconfirm = window.prompt(confirmMsg, "");
}

return sconfirm;

Top 10 Contributor
Posts 3,376

AmyB:

While the experiment runs perfectly offline, when I run it online http://research.millisecond.com/sydney_psych/DiabetesFollowup.web it consistently fails to load one of the tasks: the CardSortTest.exp.

The only other difference between the offline and online version is the subject ID which I am using javascript for to assign an ID containing letters and numbers of 8 digits in length (also below).

Does any reason come to mind why this might be the case?

<expt>
/ subjects = (1 of 1)
/ blocks = [1=color]
/ preinstructions = (welcome, page1)
/ postinstructions = (end)
</expt

in CardSort.exp means Inquisit expects to get a numerical id. Simply delete the /subjects attribute.

Regards,

~Dave

 

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Top 500 Contributor
Posts 7

That worked perfectly thanks :)

I've done a few tests and it seems to be radomising the order of the scripts.

I presume then, the fact that I have a non-numeric password, does not effect the radomisation function in the batch file?

Many thanks for the help,

Amy

Top 10 Contributor
Posts 3,376

AmyB:
I presume then, the fact that I have a non-numeric password, does not effect the radomisation function in the batch file?

Your <batch> elements do not use the subject id for assignment (/groupassignment=random; *not* /groupassignment=subjectnumber). Thus they don't need any numerical id and will work just fine with your alphanumerical code. See the documentation for the /groupassignment and /subjects attributes for details.

Regards,

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Top 500 Contributor
Posts 7

Brilliant. Thanks!

Page 1 of 1 (5 items) | RSS
Powered by Community Server (Non-Commercial Edition), by Telligent Systems