By IR - 12/18/2014
Hello,
I would like to have a series of pictures evaluated. I created a surveypage element in which each picture is presented with a slider. If I use the <image> element however, I do not have the name of the file that was presented to the participant listed anywhere in the results file. How can I fix this so that I can tell the order with which the pictures were presented to participants?
Thank you in advance for your help!
<item valence> /1 = "prime_lit1.jpg" /2 = "prime_lit2.jpg" /3 = "prime_lit3.jpg" /4 = "prime_lit4.jpg" /5 = "prime_lit5.jpg" </item>
<image val> /items = valence /position = (6.25%,2%) </image>
<slider slid_val> / fontstyle = ("Arial", 4%) / position = (14%, 75%) / labels = ("Negative", "Positive") / range = (1,9) / slidersize = (60%, 6%) / showtooltips = false / required = true </slider>
<surveypage Explicit1> / fontstyle = ("Arial", 3%, false, true) / questions=[1=val;2=slid_val] / showpagenumbers = false / showquestionnumbers = false / finishlabel = "Next" / nextbuttonposition = (60%, 90%) </surveypage>
|
By Dave - 12/18/2014
To do this, you need to employ a bit of trickery. One way is to have a <picture> element displayed of-screen on the <surveypage>, with the <image> element referencing that <picture>'s current item:
<block myblock> / trials = [1-5=Explicit1] </block>
<item valence> /1 = "prime_lit1.jpg" /2 = "prime_lit2.jpg" /3 = "prime_lit3.jpg" /4 = "prime_lit4.jpg" /5 = "prime_lit5.jpg" </item>
<picture valpic> / items = valence / position = (-20%,-20%) </picture>
<image val> /items = ("<%picture.valpic.currentitem%>") /position = (6.25%,2%) </image>
<slider slid_val> / fontstyle = ("Arial", 4%) / position = (14%, 75%) / labels = ("Negative", "Positive") / range = (1,9) / slidersize = (60%, 6%) / showtooltips = false / required = true </slider>
<surveypage Explicit1> / stimulusframes = [1=valpic] / fontstyle = ("Arial", 3%, false, true) / questions=[1=val;2=slid_val] / showpagenumbers = false / showquestionnumbers = false / finishlabel = "Next" / nextbuttonposition = (60%, 90%) </surveypage>
|
By IR - 12/18/2014
Thank you for your quick reply.
I tried to implement the changes that you suggested but it looks like /items = ("<%picture.valpic.currentitem%>") in the image element is not recognized. The error says "File not found".
Is there anything else that need to be done?
Thank you, IR
|
By Dave - 12/18/2014
Code works for me as given in my response (tested under 4.0.7.0) provided that the image files are where they're supposed to be (same folder as the script).
|
By Dave - 12/18/2014
Attaching complete example (including images).
|
By IR - 12/18/2014
I updated my version of Inquisit (I was using the previous one) and now it works.
Thank you!!
|
|