Changing the item of a stimulus across trials


Author
Message
NicoB
NicoB
Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)Associate Member (129 reputation)
Group: Forum Members
Posts: 7, Visits: 12
Dear Members,
does anyone know a way to change all items of a stimulus?

<values>
/ index = 1
</values>

<item numbers>
/ 1 = "1"
/ 2 = "2"
/ 3 = "3"
/ 4 = "4"
</item>

<item letters>
/ 1 = "a"
/ 2 = "b"
/ 3 = "c"
/ 4 = "d"
</item>

<text stim>
/ items = letters
/ select = values.index
</text>

<trial t1>
/ ontrialbegin = [
    //Some code to determine via values.index which letter is displayed
]
/ stimulusframes = [1 = stim]
/ inputdevice = mouse
/ validresponse = (text.stim)
</trial>

<trial t2>
/ ontrialbegin = [
    //Change the item of the stimulus to numbers
    //So one can determine which number is displayed via values.index
    //I thought of
    text.stim.clearitems();
    //and then append- or setitem(); However, I did not succed in resetting all the items.
]
/ stimulusframes = [1 = stim]
/ inputdevice = mouse
/ validresponse = (text.stim)
</trial>

<block run>
/ trials = [1 = t1; 2-5 = t2]
</block>


So in the first trial I want to select from the letters item via stim, in the second I want to select from the number item.
Is there a way asides from "stacking" the items or using multiple stimuli?

Kind regards, Nico

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search