Calling a list of shapes within a trial


Author
Message
ben_sydney
ben_sydney
Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)Associate Member (85 reputation)
Group: Forum Members
Posts: 5, Visits: 19


Hi,

I’m trying to call a list of shapes using stimulus frames within trials as follows in a dot probe type task, but I keep getting the error 'could not locate list.listname', it's a long script, but the key elements are below

KEY SCRIPT

<shape pain30hzUP>
/position = (50, values.probeUP)
/shape = rectangle
/color = mediumturquoise
/size = (20%, 10%)
</shape>

<shape painoff>
/position = (0,0)
/shape = rectangle
/color = (127,127,127)
/size = (20%, 10%)
</shape>

<list pain30hzUP>
/items = (shape.pain30hzUP,
         shape.painoff,
         shape.pain30hzUP,
         shape.painoff)
/select=sequence
</list>


<shape control15hzDOWN>
/position = (50, values.probeDOWN)
/shape = rectangle
/color = mediumturquoise
/size = (20%, 10%)
</shape>

<shape controloff>
/position = (0,0)
/shape = rectangle
/color = (127,127,127)
/size = (20%, 10%)
</shape>

<list control15hzDOWN>
/items = (shape.control15hzDOWN,
         shape.control15hzDOWN,
         shape.controloff,
         shape.controloff)
/select=sequence
</list>

<trial sensory_CONGUP>
/stimulusframes = [1-60     =     whitescreen, list.pain30hzUP, list.control15hzDOWN, sensorywords_CONGUP, sensorycontrol_CONGUP]
/inputdevice = keyboard
/correctresponse = (noresponse)
/trialduration = 1000
/ontrialend = [values.currenttarget = text.sensorywords_CONGUP.currentitem]
/ontrialend = [values.currentfoil = text.sensorycontrol_CONGUP.currentitem]
</trial>


----

If I run it with just the elements it works fine:

<trial sensory_CONGUP>
/stimulusframes = [1-60  =  whitescreen, shape.pain30hzUP, shape.control15hzDOWN, sensorywords_CONGUP, sensorycontrol_CONGUP]
/inputdevice = keyboard
/correctresponse = (noresponse)
/trialduration = 1000
/ontrialend = [values.currenttarget = text.sensorywords_CONGUP.currentitem]
/ontrialend = [values.currentfoil = text.sensorycontrol_CONGUP.currentitem]
</trial>

So everything else seems two be working, I just can't call the list, which I want to use to alternate the shapes appearing at different frequencies.

Thanks in advance,
Ben

(PS - a workaround would be if if there was a shape attribute that would allow me to pulse the shape on and off at a certain frequency, but I take it that's not possible?)


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
ben_sydney - 5 Years Ago
Dave - 5 Years Ago
ben_sydney - 5 Years Ago
                 PS this is what the trial looks like now: <trial...
ben_sydney - 5 Years Ago
Dave - 5 Years Ago
ben_sydney - 5 Years Ago
                         Attach the full code and then I might be able to tell you why.
Dave - 5 Years Ago
                             Let me add that there are more efficient ways to code this as well....
Dave - 5 Years Ago
                                 Thanks, fixed the long version (had made a mistake updating a block...
ben_sydney - 5 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search