Random presentation of coloured letters


Author
Message
lukasg
lukasg
Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)
Group: Forum Members
Posts: 35, Visits: 103
Hi All,

I am new to Inquisit and in the process of programming an illusory conjunction task. The paradigm involves the random presentation of three coloured letters flanked by two digits (see image: ). The letters are sampled from a target-population (e.g., X or N) and a distractor population (e.g., HSTO). On a given trial, the letters should be distinct in colour and letter. I am struggling to implement this characteristic in Inquisit and would greatly appreciate your help. 

Since Inquisit seems unable to present separate text-items in combination or a text-element with different colours, I have switched to images and defined them as follows:

<item targets>
/1 = "Stimuli\nblue.png"
/2 = "Stimuli\ngreen.png"
...
</item>

<item distractors>
/1 = "Stimuli\oblue.png"
/2 = "Stimuli\ogreen.png"
...
</item>

<list xpos>
/items = (35%,50%,65%)
/ selectionrate = always
/ resetinterval = 0
</list>

<list target>
/ items = (1,2,3,4,5,6)
/ replace = false
/ selectionrate = trial
/ resetinterval = 0
</list>


Using this code, the pictures are sampled via values determined at the start of each trial (with ontrialstart), which looks like the following:

<picture target>
/ items = letters
/ select = list.target.nextvalue
/ erase = false
/ position = (list.xpos.nextvalue, 50%)
</picture>

<picture distr1>
/ items = distractors
/ select = list.distractor1.nextvalue
/ erase = false
/ position = (list.xpos.nextvalue, 50%)
</picture>

<picture distr2>
/ items = distractors
/ select = list.distractor2.nextvalue
/ erase = false
/ position = (list.xpos.nextvalue, 50%)
</picture>


The following if-functions are thought to limit the possible distractor space depending on the characteristics of the already selected stimuli. In theory that is, as the if-functions appear not to work as intended. Trials frequently feature stimuli with the same letter or colour. I hope the above code-chunks are sufficient, if not, please see the attached file with the entire script. Thanks in advance for your help!

All the best,
Lukas


Attachments
II-Task.iqx (155 views, 16.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
lukasg - 3 Years Ago
lukasg - 3 Years Ago
Dave - 3 Years Ago
lukasg - 3 Years Ago
                     https://www.millisecond.com/forums/Topic18657.aspx
lukasg - 3 Years Ago
                         This pertained to a case where you have a single <text> element...
Dave - 3 Years Ago
                             Thanks for your response, Dave. Would you be able to demonstrate how...
lukasg - 3 Years Ago
                                 Here's a basic example:
Dave - 3 Years Ago
                                     Thanks! Sadly, this would have taken me hours. One additional...
lukasg - 3 Years Ago
                                         You can easily integrate that into the existing logic.
Dave - 3 Years Ago
                                             Thanks a lot
lukasg - 3 Years Ago
lukasg - 3 Years Ago
Dave - 3 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search