Hi Millisecond forum,
I've got a problem with trying to present randomly selected images based on conditional logic in Inquisit 6. It's a visual search task where some images need to appear in colour whilst others in plain grey. I thought the easiest way of doing this would be to set the positions as picture elements, with a list array defining the picture to be presented with each position in the list corresponding to it's matched position (see below).
<picture p1>
/ items = ("<%list.StimSet.item(1)%>")
/ position = (expressions.hp1, expressions.vp1)
/ size = (expressions.StimSize_X, expressions.StimSize_Y)
/ erase = false
</picture>
Then using conditional logic I'd update the list using the .setitem function to change the item for each corresponding position (see below).
/ ontrialbegin = [if(values.DistractorPos == "D1"){
list.StimSet.setitem(list.Filler_Colour.nextvalue, 1);
When I do this however it gives me an "Inquisit Error: prepare() failed, Line 214, File trial.cpp." error message when it attempts to run that trial with the picture image. I'm not sure what's going wrong, as I've managed to present text stimuli this way, and have managed a similar thing Inquisit 5 with images but updating a value element.
I've tested what it is and when I used a fixed list of stimuli without changing it with the .setitem function it presents the stimuli fine, therefore it seems to be an issue with the updating of the list preventing it from presenting the stimuli - but not sure why this would be? I've also attempted it with updating a value element for each picture element, but get similar results.
Thanks in advance for any advice!
Chris