pairing images and words for later test


Author
Message
lir1995
lir1995
Partner Member (831 reputation)Partner Member (831 reputation)Partner Member (831 reputation)Partner Member (831 reputation)Partner Member (831 reputation)Partner Member (831 reputation)Partner Member (831 reputation)Partner Member (831 reputation)Partner Member (831 reputation)
Group: Forum Members
Posts: 44, Visits: 201
Hello, 

For my experiment, participants see images followed by words. Within a single block, participants switch back and forth between two images while seeing multiple different words (see attached screenshot for clarification if needed). 

My current code (see below) is set up such that the images are randomly assigned to each condition for each unique participant, and that the same image appears when switching back.

At the end of the experiment, I have a memory test. Right now, my code is set up so that it nicely brings back the image that was originally paired with the word (e.g., apple and bedroom in the screenshot) . However, I need the word to be presented with three total images for participants to choose which one they originally saw the word with:
1) the image that it was paired with. (already done) (e.g., apple and bedroom) 
2) the other image from the same block (e.g, apple and beach) 
3) another random image from a different block in the experiment (e.g., apple and dentist) 


I will have 8 blocks total, but I'm only including a small piece of code here as an example.

Is this possible within inquisit, and if so, how would I go about implementing this?

Thank you so much, and let me know if you need more clarification!




*************************************************
Creating Text and Picture Stimuli
***********************************************
<text pracnoun>
/ items = pracnoun
/ select = values.noun_itemnumber
/ position = (50,50)
/ fontstyle = ("Arial", 25pt)
/ erase = false
</text>

<list noun_items>
/ poolsize = 6
</list>

<item pracnoun>
/ 1 = "SCOOTER"
/ 2 = "CUPCAKE"
/ 3 = "TRUMPET"
/ 4 = "ZEBRA"
/ 5 = "NOTEBOOK"
/ 6 = "LILY"
</item>

<item scenes>
/1 = "bedroom.jpg"
/2 = "library_aisle10.jpg"
/3 = "office.jpg"
/4 = "dentist1.jpg"
</item>

<list word>
</list>

<list scene>
/ selectionmode = list.word.currentindex
</list>

<values>
/ p1 = 0
/ p2 = 0
/ p3 = 0
/ p4 = 0
/ pic_itemnumber = 1
/ noun_itemnumber = 1
</values>

<picture p>
/ items = scenes
/ select = values.pic_itemnumber
/ position = (50%, 50%)
/ size = (60%, 60%)
</picture>

<list pic_items>
/ poolsize = 4
/ selectionrate = always
/ resetinterval = 0
</list>

<shape blank>
/ color = white
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>


<text belong>
/ items = ("Yes")
/ position = (70%, 80%)
/ size = (30%, 5%)
/ hjustify = center
/ vjustify = center
/ fontstyle = ("Arial", 18pt)
/ txbgcolor = white
/ erase = false
</text>


<text nobelong>
/ items = ("No")
/ position = (30%, 80%)
/ size = (30%, 5%)
/ hjustify = center
/ vjustify = center
/ fontstyle = ("Arial", 18pt)
/ txbgcolor = white
/ erase = false
</text>


*************************************************
Creating Trials
*************************************************

<trial practice>
/ ontrialbegin = [
  values.pic_itemnumber = values.p1;
  values.noun_itemnumber = list.noun_items.nextindex;
  list.scene.appenditem(values.pic_itemnumber);
  list.word.appenditem(values.noun_itemnumber);
]
/ stimulustimes = [0 =p; 1000 = blank; 1500 = pracnoun, belong, nobelong; 4000 = blank]
/ validresponse = ("n","m")
/ posttrialpause = 1000
/ trialduration = 5000
/ responseinterrupt = frames
/ beginresponsetime = 0
/ inputdevice = keyboard
</trial>


<trial practice2>
/ ontrialbegin = [
  values.pic_itemnumber = values.p2;
  values.noun_itemnumber = list.noun_items.nextindex;
  list.scene.appenditem(values.pic_itemnumber);
  list.word.appenditem(values.noun_itemnumber);
]

/ stimulustimes = [0 =p; 1000 = blank; 1500 = pracnoun, belong, nobelong; 4000 = blank]
/ validresponse = ("n","m")
/ posttrialpause = 1000
/ trialduration = 5000
/ responseinterrupt = frames
/ beginresponsetime = 0
/ inputdevice = keyboard
</trial>


<trial image3>
/ ontrialbegin = [
  values.pic_itemnumber = values.p3;
  values.noun_itemnumber = list.noun_items.nextindex;
  list.scene.appenditem(values.pic_itemnumber);
  list.word.appenditem(values.noun_itemnumber);
]

/ stimulustimes = [0 =p; 1000 = blank; 1500 = pracnoun, belong, nobelong; 4000 = blank]
/ validresponse = ("n","m")
/ posttrialpause = 1000
/ trialduration = 5000
/ responseinterrupt = frames
/ beginresponsetime = 0
/ inputdevice = keyboard
</trial>


<trial image4>
/ ontrialbegin = [
  values.pic_itemnumber = values.p4;
  values.noun_itemnumber = list.noun_items.nextindex;
  list.scene.appenditem(values.pic_itemnumber);
  list.word.appenditem(values.noun_itemnumber);
]
/ stimulustimes = [0 =p; 1000 = blank; 1500 = pracnoun, belong, nobelong; 4000 = blank]
/ validresponse = ("n","m")
/ posttrialpause = 1000
/ trialduration = 5000
/ responseinterrupt = frames
/ beginresponsetime = 0
/ inputdevice = keyboard
</trial>


*************************************************
Creating Blocks
*************************************************

<block practice>
/ onblockbegin = [values.p1=list.pic_items.nextindex; values.p2=list.pic_items.nextindex;]
/ trials = [1-2 = practice; 3-4 = practice2; 5-6 = practice]
</block>


<block mid_same>
/ onblockbegin = [values.p3=list.pic_items.nextindex; values.p4=list.pic_items.nextindex;]
/ trials = [1-4 = image3; 5-8 = image4; 9-12 = image3; 13-16 = image4]
</block>

<trial source>
/ ontrialbegin = [values.noun_itemnumber=list.word.nextvalue; values.pic_itemnumber=list.scene.nextvalue;]
/ stimulustimes = [0 =p, pracnoun]
/ validresponse = ("m", "n")
/ posttrialpause = 500
/ timeout = 5000
/ beginresponsetime = 0
</trial>

<block source_mem>
/ trials = [1-6 = source]
</block>

<expt >
/ blocks = [1 = practice; 2 = source_mem;
]
</expt>
Attachments
bedroom.jpg (186 views, 23.00 KB)
library_aisle10.jpg (207 views, 251.00 KB)
office.jpg (192 views, 35.00 KB)
dentist1.jpg (191 views, 132.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search