nrouhani
|
|
Group: Forum Members
Posts: 83,
Visits: 261
|
hello, I was wondering whether it's possible to access a list of previous stimulus items (if the stimuli have been randomly chosen) so that stimuli from particular trials can be re-shown at a later point in the task. In other words, does inquisit store this list in such a way that it can be accessed online during the experiment?
thank you!
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 105K
|
+xhello, I was wondering whether it's possible to access a list of previous stimulus items (if the stimuli have been randomly chosen) so that stimuli from particular trials can be re-shown at a later point in the task. In other words, does inquisit store this list in such a way that it can be accessed online during the experiment? thank you! Inquisit does not create or store such a list automatically, but you can implement such a list. See e.g. https://www.millisecond.com/forums/FindPost16277.aspxIf you store the respective item numbers in a <list>, for example, and want to later show the item displayed in trial #4 again, you can simply retrieve the list's 4th item number.
|
|
|
nrouhani
|
|
Group: Forum Members
Posts: 83,
Visits: 261
|
+x+xhello, I was wondering whether it's possible to access a list of previous stimulus items (if the stimuli have been randomly chosen) so that stimuli from particular trials can be re-shown at a later point in the task. In other words, does inquisit store this list in such a way that it can be accessed online during the experiment? thank you! Inquisit does not create or store such a list automatically, but you can implement such a list. See e.g. https://www.millisecond.com/forums/FindPost16277.aspxIf you store the respective item numbers in a <list>, for example, and want to later show the item displayed in trial #4 again, you can simply retrieve the list's 4th item number. Thank you for your help! I'm using the following code imitating the link that you sent me, but as you mention above, i'm trying to repeat an item from a particular trial (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list memStim1", but haven't been able to call specific trials properly. here is what I'm working with right now: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <picture stim1> / items = stim1 / size = (40%, 40%) </picture> <picture stim2> / items = stim2 / size = (40%, 40%) </picture> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 </values> <block learning> / trials = [1-5 = sequence(cue,outcome)] / errormessage = false </block> <block memory> / trials = [1-5 = old] / errormessage = false </block> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 3000 / validresponse = (noresponse) / branch = [ openended.estimate ] </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / responsefontstyle = ("Arial",30) / beginresponsetime = 0 / timeout = 5000 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <trial old> / stimulustimes = [0=blank; 1=stim1] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list>
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 105K
|
+x+x+xhello, I was wondering whether it's possible to access a list of previous stimulus items (if the stimuli have been randomly chosen) so that stimuli from particular trials can be re-shown at a later point in the task. In other words, does inquisit store this list in such a way that it can be accessed online during the experiment? thank you! Inquisit does not create or store such a list automatically, but you can implement such a list. See e.g. https://www.millisecond.com/forums/FindPost16277.aspxIf you store the respective item numbers in a <list>, for example, and want to later show the item displayed in trial #4 again, you can simply retrieve the list's 4th item number. Thank you for your help! I'm using the following code imitating the link that you sent me, but as you mention above, i'm trying to repeat an item from a particular trial (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list memStim1", but haven't been able to call specific trials properly. here is what I'm working with right now: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <picture stim1> / items = stim1 / size = (40%, 40%) </picture> <picture stim2> / items = stim2 / size = (40%, 40%) </picture> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 </values> <block learning> / trials = [1-5 = sequence(cue,outcome)] / errormessage = false </block> <block memory> / trials = [1-5 = old] / errormessage = false </block> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 3000 / validresponse = (noresponse) / branch = [ openended.estimate ] </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / responsefontstyle = ("Arial",30) / beginresponsetime = 0 / timeout = 5000 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <trial old> / stimulustimes = [0=blank; 1=stim1] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list> > (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list > memStim1", but haven't been able to call specific trials properly. If you want to repeat the item displayed in the 5th learning trial, all you need to do is read out the 5th item in the <list>: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <text stim1> / items = stim1 / size = (40%, 40%) / select = values.stim1 </text> <text stim2> / items = stim2 / size = (40%, 40%) / select = values.stim2 </text> <text oldstim1> / items = stim1 / select = values.oldstim1/ size = (40%, 40%) </text> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 / oldstim1 = 1 </values> <block learning> / trials = [1-5 = sequence(cue, estimate, outcome)] / errormessage = false </block> <block memory> / preinstructions = (memoryintro) / trials = [1 = old] / errormessage = false </block> <page memoryintro> now showing you the item you saw in the 5th trial during the learning phase. </page> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 300 / validresponse = (noresponse) </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / beginresponsetime = 0 / timeout = 500 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 300 / validresponse = (noresponse) </trial> <trial old> / ontrialbegin = [values.oldstim1 = list.memstim1.item(5)]/ stimulustimes = [0=blank; 1=oldstim1] / beginresponsetime = 0 / validresponse = (57) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list>
|
|
|
nrouhani
|
|
Group: Forum Members
Posts: 83,
Visits: 261
|
+x+x+x+xhello, I was wondering whether it's possible to access a list of previous stimulus items (if the stimuli have been randomly chosen) so that stimuli from particular trials can be re-shown at a later point in the task. In other words, does inquisit store this list in such a way that it can be accessed online during the experiment? thank you! Inquisit does not create or store such a list automatically, but you can implement such a list. See e.g. https://www.millisecond.com/forums/FindPost16277.aspxIf you store the respective item numbers in a <list>, for example, and want to later show the item displayed in trial #4 again, you can simply retrieve the list's 4th item number. Thank you for your help! I'm using the following code imitating the link that you sent me, but as you mention above, i'm trying to repeat an item from a particular trial (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list memStim1", but haven't been able to call specific trials properly. here is what I'm working with right now: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <picture stim1> / items = stim1 / size = (40%, 40%) </picture> <picture stim2> / items = stim2 / size = (40%, 40%) </picture> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 </values> <block learning> / trials = [1-5 = sequence(cue,outcome)] / errormessage = false </block> <block memory> / trials = [1-5 = old] / errormessage = false </block> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 3000 / validresponse = (noresponse) / branch = [ openended.estimate ] </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / responsefontstyle = ("Arial",30) / beginresponsetime = 0 / timeout = 5000 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <trial old> / stimulustimes = [0=blank; 1=stim1] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list> > (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list > memStim1", but haven't been able to call specific trials properly. If you want to repeat the item displayed in the 5th learning trial, all you need to do is read out the 5th item in the <list>: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <text stim1> / items = stim1 / size = (40%, 40%) / select = values.stim1 </text> <text stim2> / items = stim2 / size = (40%, 40%) / select = values.stim2 </text> <text oldstim1> / items = stim1 / select = values.oldstim1/ size = (40%, 40%) </text> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 / oldstim1 = 1 </values> <block learning> / trials = [1-5 = sequence(cue, estimate, outcome)] / errormessage = false </block> <block memory> / preinstructions = (memoryintro) / trials = [1 = old] / errormessage = false </block> <page memoryintro> now showing you the item you saw in the 5th trial during the learning phase. </page> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 300 / validresponse = (noresponse) </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / beginresponsetime = 0 / timeout = 500 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 300 / validresponse = (noresponse) </trial> <trial old> / ontrialbegin = [values.oldstim1 = list.memstim1.item(5)]/ stimulustimes = [0=blank; 1=oldstim1] / beginresponsetime = 0 / validresponse = (57) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list> Thank you so much!!! And if I wanted to show more than one specific trial, how would I do this? (the below obviously doesn't work :) / ontrialbegin = [values.oldStim1 = list.memStim1.item(5),list.memStim1.item(1)]
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 105K
|
+x+x+x+x+xhello, I was wondering whether it's possible to access a list of previous stimulus items (if the stimuli have been randomly chosen) so that stimuli from particular trials can be re-shown at a later point in the task. In other words, does inquisit store this list in such a way that it can be accessed online during the experiment? thank you! Inquisit does not create or store such a list automatically, but you can implement such a list. See e.g. https://www.millisecond.com/forums/FindPost16277.aspxIf you store the respective item numbers in a <list>, for example, and want to later show the item displayed in trial #4 again, you can simply retrieve the list's 4th item number. Thank you for your help! I'm using the following code imitating the link that you sent me, but as you mention above, i'm trying to repeat an item from a particular trial (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list memStim1", but haven't been able to call specific trials properly. here is what I'm working with right now: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <picture stim1> / items = stim1 / size = (40%, 40%) </picture> <picture stim2> / items = stim2 / size = (40%, 40%) </picture> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 </values> <block learning> / trials = [1-5 = sequence(cue,outcome)] / errormessage = false </block> <block memory> / trials = [1-5 = old] / errormessage = false </block> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 3000 / validresponse = (noresponse) / branch = [ openended.estimate ] </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / responsefontstyle = ("Arial",30) / beginresponsetime = 0 / timeout = 5000 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <trial old> / stimulustimes = [0=blank; 1=stim1] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list> > (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list > memStim1", but haven't been able to call specific trials properly. If you want to repeat the item displayed in the 5th learning trial, all you need to do is read out the 5th item in the <list>: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <text stim1> / items = stim1 / size = (40%, 40%) / select = values.stim1 </text> <text stim2> / items = stim2 / size = (40%, 40%) / select = values.stim2 </text> <text oldstim1> / items = stim1 / select = values.oldstim1/ size = (40%, 40%) </text> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 / oldstim1 = 1 </values> <block learning> / trials = [1-5 = sequence(cue, estimate, outcome)] / errormessage = false </block> <block memory> / preinstructions = (memoryintro) / trials = [1 = old] / errormessage = false </block> <page memoryintro> now showing you the item you saw in the 5th trial during the learning phase. </page> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 300 / validresponse = (noresponse) </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / beginresponsetime = 0 / timeout = 500 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 300 / validresponse = (noresponse) </trial> <trial old> / ontrialbegin = [values.oldstim1 = list.memstim1.item(5)]/ stimulustimes = [0=blank; 1=oldstim1] / beginresponsetime = 0 / validresponse = (57) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list> Thank you so much!!! And if I wanted to show more than one specific trial, how would I do this? (the below obviously doesn't work :) / ontrialbegin = [values.oldStim1 = list.memStim1.item(5),list.memStim1.item(1)] > And if I wanted to show more than one specific trial, how would I do this? Show in what way? Please be more specific. If all you want to do is simply show the stimuli again (for example in the same order as during the learning block), you merely do: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <text stim1> / items = stim1 / size = (40%, 40%) / select = values.stim1 </text> <text stim2> / items = stim2 / size = (40%, 40%) / select = values.stim2 </text> <text oldstim1> / items = stim1 / select = values.oldstim1 / size = (40%, 40%) </text> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 / oldstim1 = 1 </values> <block learning> / trials = [1-5 = sequence(cue, estimate, outcome)] / errormessage = false </block> <block memory> / preinstructions = (memoryintro) / trials = [1-5 = old] / errormessage = false </block> <page memoryintro> now showing you the item you saw in the 5th trial during the learning phase. </page> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 300 / validresponse = (noresponse) </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / beginresponsetime = 0 / timeout = 500 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 300 / validresponse = (noresponse) </trial> <trial old> / ontrialbegin = [values.oldstim1 = list.memstim1.nextvalue] / stimulustimes = [0=blank; 1=oldstim1] / beginresponsetime = 0 / validresponse = (57) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> / selectionmode = sequence </list> <list memStim2> </list>
|
|
|
nrouhani
|
|
Group: Forum Members
Posts: 83,
Visits: 261
|
+x+x+x+x+x+xhello, I was wondering whether it's possible to access a list of previous stimulus items (if the stimuli have been randomly chosen) so that stimuli from particular trials can be re-shown at a later point in the task. In other words, does inquisit store this list in such a way that it can be accessed online during the experiment? thank you! Inquisit does not create or store such a list automatically, but you can implement such a list. See e.g. https://www.millisecond.com/forums/FindPost16277.aspxIf you store the respective item numbers in a <list>, for example, and want to later show the item displayed in trial #4 again, you can simply retrieve the list's 4th item number. Thank you for your help! I'm using the following code imitating the link that you sent me, but as you mention above, i'm trying to repeat an item from a particular trial (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list memStim1", but haven't been able to call specific trials properly. here is what I'm working with right now: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <picture stim1> / items = stim1 / size = (40%, 40%) </picture> <picture stim2> / items = stim2 / size = (40%, 40%) </picture> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 </values> <block learning> / trials = [1-5 = sequence(cue,outcome)] / errormessage = false </block> <block memory> / trials = [1-5 = old] / errormessage = false </block> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 3000 / validresponse = (noresponse) / branch = [ openended.estimate ] </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / responsefontstyle = ("Arial",30) / beginresponsetime = 0 / timeout = 5000 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <trial old> / stimulustimes = [0=blank; 1=stim1] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list> > (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list > memStim1", but haven't been able to call specific trials properly. If you want to repeat the item displayed in the 5th learning trial, all you need to do is read out the 5th item in the <list>: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <text stim1> / items = stim1 / size = (40%, 40%) / select = values.stim1 </text> <text stim2> / items = stim2 / size = (40%, 40%) / select = values.stim2 </text> <text oldstim1> / items = stim1 / select = values.oldstim1/ size = (40%, 40%) </text> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 / oldstim1 = 1 </values> <block learning> / trials = [1-5 = sequence(cue, estimate, outcome)] / errormessage = false </block> <block memory> / preinstructions = (memoryintro) / trials = [1 = old] / errormessage = false </block> <page memoryintro> now showing you the item you saw in the 5th trial during the learning phase. </page> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 300 / validresponse = (noresponse) </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / beginresponsetime = 0 / timeout = 500 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 300 / validresponse = (noresponse) </trial> <trial old> / ontrialbegin = [values.oldstim1 = list.memstim1.item(5)]/ stimulustimes = [0=blank; 1=oldstim1] / beginresponsetime = 0 / validresponse = (57) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list> Thank you so much!!! And if I wanted to show more than one specific trial, how would I do this? (the below obviously doesn't work :) / ontrialbegin = [values.oldStim1 = list.memStim1.item(5),list.memStim1.item(1)] > And if I wanted to show more than one specific trial, how would I do this? Show in what way? Please be more specific. If all you want to do is simply show the stimuli again (for example in the same order as during the learning block), you merely do: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <text stim1> / items = stim1 / size = (40%, 40%) / select = values.stim1 </text> <text stim2> / items = stim2 / size = (40%, 40%) / select = values.stim2 </text> <text oldstim1> / items = stim1 / select = values.oldstim1 / size = (40%, 40%) </text> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 / oldstim1 = 1 </values> <block learning> / trials = [1-5 = sequence(cue, estimate, outcome)] / errormessage = false </block> <block memory> / preinstructions = (memoryintro) / trials = [1-5 = old] / errormessage = false </block> <page memoryintro> now showing you the item you saw in the 5th trial during the learning phase. </page> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 300 / validresponse = (noresponse) </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / beginresponsetime = 0 / timeout = 500 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 300 / validresponse = (noresponse) </trial> <trial old> / ontrialbegin = [values.oldstim1 = list.memstim1.nextvalue] / stimulustimes = [0=blank; 1=oldstim1] / beginresponsetime = 0 / validresponse = (57) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> / selectionmode = sequence </list> <list memStim2> </list> Thank you for the response. What I mean is that if I want to repeat images from trial 5 and 7, not all the trials within the memory list, how would I indicate this? <trial old> / ontrialbegin = [values.oldStim1 = list.memStim1.item(5), list.memStim1.item(7)] *<- this is wrong, but how do indicate retrieving item 5, and item 7?* / stimulustimes = [0=blank; 1=oldStim1] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial>
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 105K
|
+x+x+x+x+x+x+xhello, I was wondering whether it's possible to access a list of previous stimulus items (if the stimuli have been randomly chosen) so that stimuli from particular trials can be re-shown at a later point in the task. In other words, does inquisit store this list in such a way that it can be accessed online during the experiment? thank you! Inquisit does not create or store such a list automatically, but you can implement such a list. See e.g. https://www.millisecond.com/forums/FindPost16277.aspxIf you store the respective item numbers in a <list>, for example, and want to later show the item displayed in trial #4 again, you can simply retrieve the list's 4th item number. Thank you for your help! I'm using the following code imitating the link that you sent me, but as you mention above, i'm trying to repeat an item from a particular trial (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list memStim1", but haven't been able to call specific trials properly. here is what I'm working with right now: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <picture stim1> / items = stim1 / size = (40%, 40%) </picture> <picture stim2> / items = stim2 / size = (40%, 40%) </picture> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 </values> <block learning> / trials = [1-5 = sequence(cue,outcome)] / errormessage = false </block> <block memory> / trials = [1-5 = old] / errormessage = false </block> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 3000 / validresponse = (noresponse) / branch = [ openended.estimate ] </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / responsefontstyle = ("Arial",30) / beginresponsetime = 0 / timeout = 5000 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <trial old> / stimulustimes = [0=blank; 1=stim1] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list> > (i.e. show the image that was present during trial #5 during the learning portion). I want items to repeat in "trial old", and am assuming I would have to sample from "list > memStim1", but haven't been able to call specific trials properly. If you want to repeat the item displayed in the 5th learning trial, all you need to do is read out the 5th item in the <list>: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <text stim1> / items = stim1 / size = (40%, 40%) / select = values.stim1 </text> <text stim2> / items = stim2 / size = (40%, 40%) / select = values.stim2 </text> <text oldstim1> / items = stim1 / select = values.oldstim1/ size = (40%, 40%) </text> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 / oldstim1 = 1 </values> <block learning> / trials = [1-5 = sequence(cue, estimate, outcome)] / errormessage = false </block> <block memory> / preinstructions = (memoryintro) / trials = [1 = old] / errormessage = false </block> <page memoryintro> now showing you the item you saw in the 5th trial during the learning phase. </page> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 300 / validresponse = (noresponse) </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / beginresponsetime = 0 / timeout = 500 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 300 / validresponse = (noresponse) </trial> <trial old> / ontrialbegin = [values.oldstim1 = list.memstim1.item(5)]/ stimulustimes = [0=blank; 1=oldstim1] / beginresponsetime = 0 / validresponse = (57) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> </list> <list memStim2> </list> Thank you so much!!! And if I wanted to show more than one specific trial, how would I do this? (the below obviously doesn't work :) / ontrialbegin = [values.oldStim1 = list.memStim1.item(5),list.memStim1.item(1)] > And if I wanted to show more than one specific trial, how would I do this? Show in what way? Please be more specific. If all you want to do is simply show the stimuli again (for example in the same order as during the learning block), you merely do: <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <text stim1> / items = stim1 / size = (40%, 40%) / select = values.stim1 </text> <text stim2> / items = stim2 / size = (40%, 40%) / select = values.stim2 </text> <text oldstim1> / items = stim1 / select = values.oldstim1 / size = (40%, 40%) </text> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 / oldstim1 = 1 </values> <block learning> / trials = [1-5 = sequence(cue, estimate, outcome)] / errormessage = false </block> <block memory> / preinstructions = (memoryintro) / trials = [1-5 = old] / errormessage = false </block> <page memoryintro> now showing you the item you saw in the 5th trial during the learning phase. </page> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 300 / validresponse = (noresponse) </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / beginresponsetime = 0 / timeout = 500 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 300 / validresponse = (noresponse) </trial> <trial old> / ontrialbegin = [values.oldstim1 = list.memstim1.nextvalue] / stimulustimes = [0=blank; 1=oldstim1] / beginresponsetime = 0 / validresponse = (57) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> / selectionmode = sequence </list> <list memStim2> </list> Thank you for the response. What I mean is that if I want to repeat images from trial 5 and 7, not all the trials within the memory list, how would I indicate this? <trial old> / ontrialbegin = [values.oldStim1 = list.memStim1.item(5), list.memStim1.item(7)] *<- this is wrong, but how do indicate retrieving item 5, and item 7?* / stimulustimes = [0=blank; 1=oldStim1] / beginresponsetime = 0 / trialduration = 3000 / validresponse = (noresponse) </trial> This still isn't clear. > What I mean is that if I want to repeat images from trial 5 and 7. Do you want to display both images at the same time, i.e. in a single trial? If not, do you want to display them one after the other, i.e. across two separate trials? If so, in what order? Image from trial 5 first? Image from trial 7 first? In random order?
|
|
|
nrouhani
|
|
Group: Forum Members
Posts: 83,
Visits: 261
|
One after the other (not simultaneously), and randomly (I'm only putting 2 as an example, but ultimately am sampling 32 out of 64 trials, and want them to be presented randomly). Thank you!!
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 105K
|
+xOne after the other (not simultaneously), and randomly (I'm only putting 2 as an example, but ultimately am sampling 32 out of 64 trials, and want them to be presented randomly). Thank you!! Okay, thanks. If you want to pull the items from _specific_ trial numbers, you do this (here: 2 items, the one from the 1st trial, and the one from the 5th trial): <item stim1> /1 = "Outdoor_1.jpg" /2 = "Outdoor_2.jpg" /3 = "Outdoor_3.jpg" /4 = "Outdoor_4.jpg" /5 = "Outdoor_5.jpg" </item> <item stim2> /1 = "objects_11.png" /2 = "objects_12.png" /3 = "objects_13.png" /4 = "objects_14.png" /5 = "objects_15.png" </item> <text stim1> / items = stim1 / size = (40%, 40%) / select = values.stim1 </text> <text stim2> / items = stim2 / size = (40%, 40%) / select = values.stim2 </text> <text oldstim1> / items = stim1 / select = values.oldstim1 / size = (40%, 40%) </text> <defaults> / screencolor = (175, 175, 175) / txcolor = (0, 0, 0) </defaults> <shape blank> / color = (175, 175, 175) / shape = rectangle / size = (100%,100%) </shape> <text estimateQ> / items = ("please estimate the value of this type of scene ~n(indoor or outdoor) from 1 to 100") / hjustify = center / size = (50%,50%) / fontstyle = ("Arial",30) / vposition = (60) / hposition = (50) / txbgcolor = (transparent) / erase = false </text> ************************************************* Creating an Experiment ************************************************* <expt> / blocks = [1=learning;2=memory] </expt> <values> / stim1 = 1 / stim2 = 1 / oldstim1 = 1 </values> <block learning> / trials = [1-5 = sequence(cue, estimate, outcome)] / errormessage = false </block> <block memory> / onblockbegin = [list.oldstims.appenditem(list.memstim1.item(1)); list.oldstims.appenditem(list.memstim1.item(5));] / preinstructions = (memoryintro) / trials = [1-2 = old] / errormessage = false </block> <page memoryintro> now showing you the item you saw in the 5th trial during the learning phase. </page> <trial cue> / ontrialbegin = [values.stim1=list.randomStim1.nextindex; list.memStim1.appenditem(values.stim1);] / pretrialpause = 1000 / stimulustimes = [0=stim1] / beginresponseframe = 0 / timeout = 300 / validresponse = (noresponse) </trial> <openended estimate> / position = (50, 50) / buttonlabel = " press enter to submit" / fontstyle = ("Arial",15) / inputdevice = keyboard / stimulustimes = [0=estimateQ] / linelength = 3 / range = (1,100) / numlines = 1 / beginresponsetime = 0 / timeout = 500 </openended> <trial outcome> / ontrialbegin = [values.stim2=list.randomStim2.nextindex; list.memStim2.appenditem(values.stim2);] / stimulustimes = [0=blank; 1=stim2] / beginresponsetime = 0 / trialduration = 300 / validresponse = (noresponse) </trial> <trial old> / ontrialbegin = [values.oldstim1 = list.oldstims.nextvalue] / stimulustimes = [0=blank; 1=oldstim1] / beginresponsetime = 0 / validresponse = (57) </trial> <list randomStim1> / poolsize = 5 </list> <list randomStim2> / poolsize = 5 </list> <list memStim1> / selectionrate = always </list> <list memStim2> </list> <list oldstims> </list> You can extend this to as many items as you need (e.g 32 out of 64).
|
|
|