Unable to run IAT as batch or standalone on web


Author
Message
patruvius
patruvius
Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)
Group: Forum Members
Posts: 57, Visits: 1

Sorry Dave, vassal Patrick again and so soon.


This time different academic.


She has 3 experiments she wants to run, a demographics, an IAT, and a survey.


On the desktop these all run individually and via  a batch file.


On registering the script - initially batch file  on the web, only  the demographics and the survey would run.


Script for batch file:


<batch>
/ file = "demographics.txt"
/ file = "iat.txt"
/ file = "refugee.txt"
</batch>


there is no error message for the missing iat.txt.


I then tried to change tack and register three separate scripts, again the demographics and survey files will run but an error is generated for the iat.


"The address wasn't understood
               Firefox doesn't know how to open this address, because the protocol (c) isn't associated with any program.
          You might need to install other software to open this address."


Any  help would be great. In the meantime, I will talk to her and find out where she sourced the iat, Could it be a version issue as my scripts are registered under the latest ver 4 release.


regards,


Patrick


patruvius
patruvius
Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)
Group: Forum Members
Posts: 57, Visits: 1

I downloaded a fresh version of an Inquisit 4 script, WeaponsIAT.iqx and registered a script to run that as is with all images etc in the folder, and the script ran without an error message but went  straight to the thank you page.


It runs on the desktop too as both iqx and .txt files.


the relevant url for running these is:


http://wsww01.csumain.csu.edu.au/psysurveys/jih/index.asp


thank you


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: 108K

Patrick,


that IAT script is set up to assing subjects based on the groupnumber / groupid


<expt >
/subjects = (1 of 2)
/groupassignment = groupnumber
/ blocks = [1=targetcompatiblepractice; 2=attributepractice; 3=compatibletest1; 4=compatibletestinstructions;
                5=compatibletest2; 6=targetincompatiblepractice; 7=incompatibletest1; 8=incompatibletestinstructions;
                9=incompatibletest2; 10=summary]
</expt>

<expt >
/subjects = (2 of 2)
/groupassignment = groupnumber
/ blocks = [1=targetincompatiblepractice; 2=attributepractice; 3=incompatibletest1; 4=incompatibletestinstructions;
                5=incompatibletest2; 6=targetcompatiblepractice; 7=compatibletest1; 8=compatibletestinstructions;
                9=compatibletest2; 10=summary]
</expt>


and your launch page does not provide / generate one. Hence none of the conditions apply and nothing will be run.


patruvius
patruvius
Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)
Group: Forum Members
Posts: 57, Visits: 1

Dave,


I edited the web script to include group numbers randomly generated, generated a new launch page, uploaded it to the web site after removing the old one.


Same result, just skipping through without any message to the help page.


I also tried removing the experiment properties of /groupassignment and editing the web script again without a group id as a requirement. Same result.


I have gone  back once again by putting a group number requirement but again, no change.


regards,


Patrick


patruvius
patruvius
Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)
Group: Forum Members
Posts: 57, Visits: 1

Dave,


I have tried other options like a random participant number and now  I get the message from inquisit, Group ID is  not defined for both the modified iat we wish to use and for the WeaponsIAT downloaded script (I v 4).


I have searched the forum for this error without success and looked at the documentation in Help similarly no luck there.


I don't get a chance to enter the group number as you do when testing on the desktop. I do get a chance to enter subject numbers when that choice is chosen in registering the scripts.


P


patruvius
patruvius
Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)
Group: Forum Members
Posts: 57, Visits: 1

If it  helps the two links to test the IAT's alone outside of the batch file are:


<h1>session 1: <a href="http://wsww01.csumain.csu.edu.au/psysurveys/jih/session1/part1/inquisit.htm">Click Here for Part 1</a></h1>
<h1>session 1: <a href="http://wsww01.csumain.csu.edu.au/psysurveys/jih/newIAT/inquisit.htm">Click Here for Part 2</a></h1>


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: 108K

The problem is still the same. None of your launch pages provide a groupid, yet your IAT script expects one to run. Two ways to fix this:


#1: Have the page generate a groupid and pass it to the script as required. For that look at the standard template for 4.0.2.0 available at


https://www.millisecond.com/web/launch.4.0.2.0.aspx


and pay attention to the GetSubjectNumber() and GetGroupId() functions in the page's source. You'll want to model GetGroupId() after GetSubjectNumber() to have the page generate a random number to use as groupid.


#2: Modify your scripts to not require a groupid. I.e., switch /groupassignment to 'subjectnumber' or 'random' wherever necessary.


patruvius
patruvius
Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)
Group: Forum Members
Posts: 57, Visits: 1

Sir Dave, though I think a Baronacy might now be in order.


All now working.


I modified the inquisit.htm file to include the following snippets:


=====================
My attempt at modelling the GroupID on SubjectId
=====================
// get the Group number
GroupId = GetGroupId();
if ( GroupId == null )
{
return;
}


and


==========================
My attempt at generating a random group ID
==========================

function GetGroupId()
{
var gnum = Math.floor(Math.random() * 1000000000);
return gnum.toString();
}


Thank you, thank you, thank you.


Patrick



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: 108K

Great! Thanks for the update & glad it's working now.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search