Reusing a random selection of images and new images within a trial


Author
Message
Selene_MQ
Selene_MQ
Associate Member (215 reputation)Associate Member (215 reputation)Associate Member (215 reputation)Associate Member (215 reputation)Associate Member (215 reputation)Associate Member (215 reputation)Associate Member (215 reputation)Associate Member (215 reputation)Associate Member (215 reputation)
Group: Forum Members
Posts: 17, Visits: 42
Good afternoon,

I am very new to Inquisit, with programming experience in other languages (Matlab, a bit of JS and Python). I have to program an emotion-induced blindness task, and have been adapting some code that I was given by a collaborator.

Each trial in the task consists in
1- A rapid visual stream of images, that are drawn from a bunch of Filler images, one Distractor, and one Target, which can be drawn from Familiar or Unfamiliar items.
These are defined like this:

<item fillers>
/1="scene35.jpg"
/2="scene36.jpg"
/3="scene37.jpg"
... 
</item>

<item famtargetsitems>
/1="FamScene1.jpg"
/2="FamScene2.jpg"
/3="FamScene3.jpg"
...
</item> etc.. for the distractors

<picture f1>
/items = fillers
/select = noreplace
</picture>

<picture f2>
/items = fillers
/select = noreplace
</picture>
...
<picture famtargets>
/items = famtargetsitems
/select = replace
</picture>

This step seems to work fine.

Then step 2- I would like to have 9 images displayed at once (in a 3 x 3 array), and these need to include:
- 3 fillers that were present in the stream (but chosen randomly)
- 3 Familiar targets (including the one target present in the stream, if they were in the Familiar condition)
- 3 Unfamiliar targets (including the one target present in the stream, if they were in the Unfamiliar condition).

I'm not sure where to start, as there are many things that need to be coded:
1) I would need to have some sort of object that includes all the filler images that were presented in the stream, from which I can randomly draw 3, and draw these at any of the random location on my 3x3 array.
2) I would need to pick from the unselected Familiar and Unfamiliar targets, again at random and draw them at the random locations in the 3x3 array.

I'm sorry this is such a complex thing (or maybe it's simpler than it looks to me!)

Thank you so much in advance for any help that you may provide, I'm grateful for this forum that has already helped me a bunch!

Selene
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Selene_MQ - 4 Years Ago
Dave - 4 Years Ago
Selene_MQ - 4 Years Ago
Dave - 4 Years Ago
                     Absolutely brilliant, it works like a charm! Thanks so much Dav
Selene_MQ - 4 Years Ago
                         Hi again Dave, Our experiment is almost finalised, and would just...
Selene_MQ - 4 Years Ago
                             Sorry, the file did not upload properly with the last post. Please see...
Selene_MQ - 4 Years Ago
                                 You'll need to get rid of the list resets -- list.u_targets.reset()...
Dave - 4 Years Ago
                                     Thank you so much, this seems to work good. It's almost ready now, but...
Selene_MQ - 4 Years Ago
                                         /trials = [1-60...
Dave - 4 Years Ago
                                             That makes sense. I'm now using 40 trials per block and it fixed the...
Selene_MQ - 4 Years Ago
                                                 Hi Dave, Thanks so much for your help on this topic already. Now we...
Selene_MQ - 4 Years Ago
                                                     It's unclear to me what exactly you referring to as "conditions" and...
Dave - 4 Years Ago
                                                         Hi Dave. Currently there are 4 types of trials that are presented...
Selene_MQ - 4 Years Ago
                                                             Then why don't you simply set up separate lists to sample your target...
Dave - 4 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search