Presenting Images


Author
Message
cutkiller
cutkiller
Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)
Group: Forum Members
Posts: 13, Visits: 23
I need to make a simple script which displays 20 images and collects 20 answers (one for each image), but I have a lot of trouble figuring it out, I've never used Inquisit and I'm not a programmer. Could anyone help? I'm thinking this is extremely simple to program, I just can't figure out the actual script.

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: 104K
cutkiller - Monday, May 8, 2017
I need to make a simple script which displays 20 images and collects 20 answers (one for each image), but I have a lot of trouble figuring it out, I've never used Inquisit and I'm not a programmer. Could anyone help? I'm thinking this is extremely simple to program, I just can't figure out the actual script.

Thank you.

At a minimum, you need a <picture> element with the 20 images as its items, a <trial> element that displays the <picture> element and collects a response, and a <block> that runs the <trial> 20 times.

<picture mypicture>
/ items = pictureitems
...
</picture>

<item pictureitems>
/ 1 = "image01.jpg"
...
/ 20 = "image20.jpg"
</item>

<trial mytrial>
/ stimulusframes = [1=mypicture]
...
</trial>

<block myblock>
/ trials = [1-20 = mytrial]
...
</block>

Depending on what kind of "answer" you need to collect, you might want to use either <likert> or <openended> elements instead of <trial>.

The Picture IAT tutorial in the Inquisit documentation might be worth a look, too, you'll find the relevant basics covered there in some greater detail.

cutkiller
cutkiller
Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)
Group: Forum Members
Posts: 13, Visits: 23
Thanks so much, this helps a lot.

I just wanna display 20 pictures and have subjects press a key (enter or whatever other key) to display a field in which they write what they see. I'm guessing that would be <openended>?

I'm displaying the pictures full screen and that's why I want to have the field pop up after they look at it, so they're unobstructed while the subjects look at them.

Not sure what goes in here

<picture mypicture>
/ items = pictureitems
...
</picture>

Right now I'm getting an error saying Could not locate trial 'pictureitems'

Thanks again.



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: 104K
cutkiller - Monday, May 8, 2017
Thanks so much, this helps a lot.

I just wanna display 20 pictures and have subjects press a key (enter or whatever other key) to display a field in which they write what they see. I'm guessing that would be <openended>?

I'm displaying the pictures full screen and that's why I want to have the field pop up after they look at it, so they're unobstructed while the subjects look at them.

Not sure what goes in here

<picture mypicture>
/ items = pictureitems
...
</picture>

Right now I'm getting an error saying Could not locate trial 'pictureitems'

Thanks again.



> Not sure what goes in here

<picture mypicture>
/ items = pictureitems
...
</picture>

refers to the <item> element in the example code I posted:

<item pictureitems>
/ 1 = "image01.jpg"
...
/ 20 = "image20.jpg"
</item>

That's where you would list your 20 image items.

> I just wanna display 20 pictures and have subjects press a key (enter or whatever other key) to display a field in which they write what they see.

Then you would use *both* a <trial> element -- to display the image full screen and wait for a key press -- followed by an <openended> to collect the description. In a nutshell:

<picture mypicture>
/ items = pictureitems
/ select = noreplace
/ size = (100%, 100%)
</picture>

<item pictureitems>
/ 1 = "image01.jpg"
/ 2 = "image02.jpg"
/ 3 = "image03.jpg"
/ 4 = "image04.jpg"
/ 5 = "image05.jpg"
/ 6 = "image06.jpg"
/ 7 = "image07.jpg"
/ 8 = "image08.jpg"
/ 9 = "image09.jpg"
/ 10 = "image10.jpg"
/ 11 = "image11.jpg"
/ 12 = "image12.jpg"
/ 13 = "image13.jpg"
/ 14 = "image14.jpg"
/ 15 = "image15.jpg"
/ 16 = "image16.jpg"
/ 17 = "image17.jpg"
/ 18 = "image18.jpg"
/ 19 = "image19.jpg"
/ 20 = "image20.jpg"
</item>

// press spacebar to move on
<trial showpicture>
/ stimulusframes = [1=mypicture]
/ validresponse = (57)
</trial>

<openended typeanswer>
/ stimulusframes = [1=typeprompt]
/ size = (70%, 40%)
/ position = (50%, 70%)
/ multiline = true
/ charlimit = 10000
</openended>

<text typeprompt>
/ items = ("Please describe what you saw:")
/ position = (50%, 20%)
</text>

<block myblock>
/ trials = [1-20 = sequence(showpicture, typeanswer)]
</block>




cutkiller
cutkiller
Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)
Group: Forum Members
Posts: 13, Visits: 23
Thank you so much, it works like a charm. One more thing: do you happen to know why they're displayed randomly? Need them to be displayed in that order (1-20), but it starts with a different one each time and it shows them in a random order.

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: 104K
cutkiller - Monday, May 8, 2017
Thank you so much, it works like a charm. One more thing: do you happen to know why they're displayed randomly? Need them to be displayed in that order (1-20), but it starts with a different one each time and it shows them in a random order.

Random item selection is the default -- and I explicitly set it, because that's what most people want. For sequential selection, simply change

<picture mypicture>
/ items = pictureitems
/ select = noreplace
/ size = (100%, 100%)
</picture>

(noreplace = random selection without replacement)

to 

<picture mypicture>
/ items = pictureitems
/ select = sequence
/ size = (100%, 100%)
</picture>

(sequence = sequential selection, i.e. items are selected in the order given)

Hope this helps.

cutkiller
cutkiller
Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)
Group: Forum Members
Posts: 13, Visits: 23
Helps a lot, it's exactly what I needed. Thank you.

cutkiller
cutkiller
Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)
Group: Forum Members
Posts: 13, Visits: 23
One more question here. If instead of asking participants what they saw in each image, I would want to have them press different keys if they decide they saw something (Y for Yes, where a textbox appears in which they can write their answer and N for No and the image just skips to the next one) how would I do that?

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: 104K
cutkiller - Wednesday, May 10, 2017
One more question here. If instead of asking participants what they saw in each image, I would want to have them press different keys if they decide they saw something (Y for Yes, where a textbox appears in which they can write their answer and N for No and the image just skips to the next one) how would I do that?

Thank you.

Like this, for example:

<picture mypicture>
/ items = pictureitems
/ select = sequence
/ size = (100%, 100%)
</picture>

<item pictureitems>
/ 1 = "image01.jpg"
/ 2 = "image02.jpg"
/ 3 = "image03.jpg"
/ 4 = "image04.jpg"
/ 5 = "image05.jpg"
/ 6 = "image06.jpg"
/ 7 = "image07.jpg"
/ 8 = "image08.jpg"
/ 9 = "image09.jpg"
/ 10 = "image10.jpg"
/ 11 = "image11.jpg"
/ 12 = "image12.jpg"
/ 13 = "image13.jpg"
/ 14 = "image14.jpg"
/ 15 = "image15.jpg"
/ 16 = "image16.jpg"
/ 17 = "image17.jpg"
/ 18 = "image18.jpg"
/ 19 = "image19.jpg"
/ 20 = "image20.jpg"
</item>

// press y or n
<trial showpicture>
/ stimulusframes = [1=mypicture]
/ validresponse = ("y", "n")
/ correctresponse = ("y")

</trial>

// skip openended if answer in showpicture trial was wrong (= "n"; no, did not see anything)
<openended typeanswer>
/ skip = [trial.showpicture.error]
/ stimulusframes = [1=typeprompt]
/ size = (70%, 40%)
/ position = (50%, 70%)
/ multiline = true
/ charlimit = 10000
</openended>

<text typeprompt>
/ items = ("Please describe what you saw:")
/ position = (50%, 20%)
</text>

<block myblock>
/ trials = [1-20 = sequence(showpicture, typeanswer)]
</block>

Edited 7 Years Ago by Dave
cutkiller
cutkiller
Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)Expert (1.4K reputation)
Group: Forum Members
Posts: 13, Visits: 23
This is so great, thank you. Would it be possible to code the written answers in the previous entry? (If a correct answer is provided as Y and then described in the letterbox for image05.jpg, could the entry get a category which contains the answer)

It would be very helpful for moving the data to SPSS afterwards. Right now the text answer is coded in the text stimulus entry (Please describe what you saw:), which follows the image stimulus entry.

Hope it makes sense. Thank you.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search