Millisecond Forums

images with response

https://www.millisecond.com/forums/Topic17516.aspx

By sagar - 10/28/2015

i am new to inquisit and psytools in general.I trying to display a set of random images with response option for user,also the response has to checked for its correctness .
i have written following code ,please tell me what i am doing wrong
<picture IQ1>
/items = ("3.gif","9.gif","15.gif","17.gif","32.gif","35.gif","45.gif","53.gif","57.gif")
</picture>
<picture IQ2>
/items = ("4.gif","8.gif","10.gif","13.gif","16.gif","26.gif","36.gif","46.gif","52.gif","55.gif")
</picture>
</picture>
<picture IQ3>
/items = ("6.gif","18.gif","22.gif","27.gif","37.gif","39.gif","59.gif")
</picture>
</picture>
<picture IQ4>
/items = ("1.gif","12.gif","21.gif","23.gif","30.gif","38.gif","44.gif","56.gif")
</picture>
</picture>
<picture IQ5>
/items = ("2.gif","11.gif","19.gif","24.gif","31.gif","43.gif","47.gif","54.gif","60.gif")
</picture>
</picture>
<picture IQ6>
/items = ("5.gif","7.gif","14.gif","20.gif","34.gif","42.gif","48.gif","50.gif","58.gif")
</picture>
</picture>
<picture IQ7>
/items = ("29.gif","33.gif","40.gif","49.gif")
</picture>
</picture>
<picture IQ8>
/items = ("41.gif","51.gif","25.gif","28.gif")
</picture>
 



<trial tIQ1>
/ validresponse = ("1", "2","3","4","5" ,"6","7","8")
/ correctresponse = ("1")
/ stimulusframes = [1 = IQ1]
/ posttrialpause = 250
</trial>
<trial tIQ2>
/ validresponse = ("1", "2","3","4","5" ,"6","7","8")
/ correctresponse = ("2")
/ stimulusframes = [1 = IQ2]
/ posttrialpause = 250
</trial>
<trial tIQ3>
/ validresponse = ("1", "2","3","4","5" ,"6","7","8")
/ correctresponse = ("3")
/ stimulusframes = [1 = IQ3]
/ posttrialpause = 250
</trial>
<trial tIQ4>
/ validresponse = ("1", "2","3","4","5" ,"6","7","8")
/ correctresponse = ("4")
/ stimulusframes = [1 = IQ4]
/ posttrialpause = 250
</trial>
<trial tIQ5>
/ validresponse = ("1", "2","3","4","5" ,"6","7","8")
/ correctresponse = ("5")
/ stimulusframes = [1 = IQ5]
/ posttrialpause = 250
</trial>
<trial tIQ6>
/ validresponse = ("1", "2","3","4","5" ,"6","7","8")
/ correctresponse = ("6")
/ stimulusframes = [1 = IQ6]
/ posttrialpause = 250
</trial>
<trial tIQ7>
/ validresponse = ("1", "2","3","4","5" ,"6","7","8")
/ correctresponse = ("7")
/ stimulusframes = [1 = IQ7]
/ posttrialpause = 250
</trial>

<trial tIQ8>
/ validresponse = ("1", "2","3","4","5" ,"6","7","8")
/ correctresponse = ("8")
/ stimulusframes = [1 = IQ8]
/ posttrialpause = 250
</trial>

<<block IQTEST>

/ trials = [1-10=tIQ1,tI2,tIQ3,tIQ4,tIQ5,tIQ6,tIQ7,tIQ8]
</block>
By Dave - 10/28/2015

Since you did not explain in any way what you want the script to do precisely (how many trials, etc.), nobody can tell you what is "wrong" with it. It's not possible to infer that from code that by your own account is wrong / does not do what you want.

For the basics of setting up scripts, please first work through the tutorials in the Inquisit documentation. Then start by fixing the various syntax errors in your own code, such as the superfluous close tags

<picture IQ2>
/items = ("4.gif","8.gif","10.gif","13.gif","16.gif","26.gif","36.gif","46.gif","52.gif","55.gif")
</picture>
</picture>

If you still need help after that, please articulate *clearly* and in sufficient detail what you intend your script to achieve and how you want it to behave.