Could not locate element error


Author
Message
jm560@sussex.ac.uk
jm560@sussex.ac.uk
Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)
Group: Forum Members
Posts: 25, Visits: 208
Hi,

I am trying to make an visual search experiment where one of two letters appears in on of 6 locations around a circle display. I had this all working perfectly. I also want to add distractor text outside of the circle, on 10% of trials the distractor should be the word food and on 90% it should be the word blank. I put the distractors into a list so that they would be randomly selected and then added the list to the stimulus times. Both parts of the script run by themselves but when i add the distractor list to the trial stimulus times it won't work. It comes up with the error message 'could not locate element list.Lowdistractor'. Any help would be greatly appreciated! I have attached the relevant script below.

STIMULI

<defaults>
/ screencolor = black
</defaults>

<text LD1>
/ items = ("X", "N")
/ fontstyle = ("Arial Black", 5%, false, false, false, false)
/ txcolor = darkgray
/ select =replace
/ txbgcolor = black
/ position = (50%, 35%)
</text>

<text LD2>
/ items = ("X", "N")
/ fontstyle = ("Arial Black", 5%, false, false, false, false)
/ txcolor = darkgray
/ select =replace
/ txbgcolor = black
/ position = (60%, 57.5%)
</text>

<text LD3>
/ items = ("X", "N")
/ fontstyle = ("Arial Black", 5%, false, false, false, false)
/ txcolor = darkgray
/ select =replace
/ txbgcolor = black
/ position = (60%, 42.5%)
</text>

<text LD4>
/ items = ("X", "N")
/ fontstyle = ("Arial Black", 5%, false, false, false, false)
/ txcolor = darkgray
/ select =replace
/ txbgcolor = black
/ position = (50%, 65%)
</text>

<text LD5>
/ items = ("X", "N")
/ fontstyle = ("Arial Black", 5%, false, false, false, false)
/ txcolor = darkgray
/ select =replace
/ txbgcolor = black
/ position = (40%, 42.5%)
</text>

<text LD6>
/ items = ("X", "N")
/ fontstyle = ("Arial Black", 5%, false, false, false, false)
/ txcolor = darkgray
/ select =replace
/ txbgcolor = black
/ position = (40%, 57.5%)
</text>

<text Ll1filler>
/ items = ("O")
/ fontstyle = ("Arial Black", 2%, false, false, false, false)
/ txcolor = darkgray
/ select =sequence
/ txbgcolor = black
/ position = (50%, 35%)
</text>

<text Ll2filler>
/ items = ("O")
/ fontstyle = ("Arial Black", 2%, false, false, false, false)
/ txcolor = darkgray
/ select =sequence
/ txbgcolor = black
/ position = (60%, 57.5%)
</text>

<text Ll3filler>
/ items = ("O")
/ fontstyle = ("Arial Black", 2%, false, false, false, false)
/ txcolor = darkgray
/ select =sequence
/ txbgcolor = black
/ position = (60%, 42.5%)
</text>

<text Ll4filler>
/ items = ("O")
/ fontstyle = ("Arial Black", 2%, false, false, false, false)
/ txcolor = darkgray
/ select =sequence
/ txbgcolor = black
/ position = (50%, 65%)
</text>

<text Ll5filler>
/ items = ("O")
/ fontstyle = ("Arial Black", 2%, false, false, false, false)
/ txcolor = darkgray
/ select =sequence
/ txbgcolor = black
/ position = (40%, 42.5%)
</text>


<text Ll6filler>
/ items = ("O")
/ fontstyle = ("Arial Black", 2%, false, false, false, false)
/ txcolor = darkgray
/ select =sequence
/ txbgcolor = black
/ position = (40%, 57.5%)
</text>

<text fixation>
/ items = ("+")
/ fontstyle = ("Arial Black")
/ txcolor = darkgray
/ txbgcolor = black
/ position = (50%, 50%)
</text>

<shape fixationcover>
/ shape = circle
/ color = black
/ size = (20,20)
/ position = (50%, 50%)
</shape>

<text food>
/ items = ("cookies", "cake", "muffin", "choc", "doughnut", "sweets")
/ fontstyle = ("Arial Black", 5%, false, false, false, false)
/ txcolor = darkgray
/ select =noreplace
/ txbgcolor = black
/ position = (50%, 20%)
</text>

<text blank>
/ items = ("blank")
/ fontstyle = ("Arial Black", 5%, false, false, false, false)
/ txcolor = darkgray
/ select =replace
/ txbgcolor = black
/ position = (50%, 20%)
</text>

<list Lowdistractor>
/ items = (text.blank, text.food)
/ itemprobabilities = (.10, .90)
/ poolsize = 60
</list>

TRIALS

<trial lowX1>
/ stimulustimes = [1=fixation; 500=sequence (fixationcover, LD1, Ll2filler, Ll3filler, Ll4filler, Ll5filler, Ll6filler, list.Lowdistractor)]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowX2>
/ stimulustimes = [1=fixation; 500= sequence (fixationcover, Ll1filler, LD2, Ll3filler, Ll4filler, Ll5filler, Ll6filler, list.Lowdistractor)]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowX3>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=Ll1filler; 500=Ll2filler; 500=LD3; 500=Ll4filler; 500=Ll5filler; 500=Ll6filler]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowX4>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=Ll1filler; 500=Ll2filler; 500=Ll3filler; 500=LD4; 500=Ll5filler; 500=Ll6filler]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowX5>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=Ll1filler; 500=Ll2filler; 500=Ll3filler; 500=Ll4filler; 500=LD5; 500=Ll6filler]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowX6>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=Ll1filler; 500=Ll2filler; 500=Ll3filler; 500=Ll4filler; 500=Ll5filler; 500=LD6]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowN1>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=LD1; 500=Ll2filler; 500=Ll3filler; 500=Ll4filler; 500=Ll5filler; 500=Ll6filler]
/ validresponse = ("0", "2")
/ correctresponse = ("2")
/ response = timeout(2000)
</trial>

<trial lowN2>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=Ll1filler; 500=LD2; 500=Ll3filler; 500=Ll4filler; 500=Ll5filler; 500=Ll6filler]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowN3>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=Ll1filler; 500=Ll2filler; 500=LD3; 500=Ll4filler; 500=Ll5filler; 500=Ll6filler]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowN4>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=Ll1filler; 500=Ll2filler; 500=Ll3filler; 500=LD4; 500=Ll5filler; 500=Ll6filler]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowN5>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=Ll1filler; 500=Ll2filler; 500=Ll3filler; 500=Ll4filler; 500=LD5; 500=Ll6filler]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<trial lowN6>
/ stimulustimes = [1=fixation; 500=fixationcover; 500=list.Lowdistractor; 500=Ll1filler; 500=Ll2filler; 500=Ll3filler; 500=Ll4filler; 500=Ll5filler; 500=LD6]
/ validresponse = ("0", "2")
/ correctresponse = ("0")
/ response = timeout(2000)
</trial>

<list Lowtrials>
/ items = (trial.lowN1, trial.lowN2, trial.lowN3, trial.lowN4, trial.lowN5, trial.lowN6, trial.lowX1, trial.lowX2, trial.lowX3, trial.lowX4, trial.lowX5, trial.lowX6)
/ selectionmode = random
</list>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search