Unable to locate element


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
An <item> element is *not* a stimulus element. It merely holds items. Those items can be used by a stimulus element (<text>, <picture>, etc.).

Hence

<trial self_test>
/ontrialbegin = [values.trialcount +=1]
/stimulustimes = [0 = focuspoint; 500 = erasefixaton; 2500 = self]
...
</trial>


will not work. There is no *stimulus* called "self". You need to set up a <picture> element that uses the <item> element:

<picture self>
/ items = self
...
</picture>

Those basics are covered in greater detail in the tutorials included in the Inquisit documentation.

gracethenoob
gracethenoob
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 11, Visits: 85
In my experiment, participants see a series of objects and learn whether those (ostensibly) belong to the objects belong to them ("self") or to the experimenter ("other"). In the current task I am programming, participants see one of the images and must report who owned it (self or other). I have based my code off of a working version of another task. However, even though I specified the stimulus images the same way as the previous task, my current experimental task is not working.

The error I am given is "Could not locate element 'self'. I have checked that all the images are in the folder with my code so that's not the problem. Inquisit currently also cannot locate other elements but I suspect the same issue occurs throughout so fixing one will likely help fix them all.

My code is as follows:


<item self>
/1 = "eggplant.jpg"
/2 = "shorts.jpg"
/3 = "toydinosaur.jpg"
</item>

[...]

<trial self_test>
/ontrialbegin = [values.trialcount +=1]
/stimulustimes = [0 = focuspoint; 500 = erasefixaton; 2500 = self]
/correctresponse = ("E")
/validresponse = ("E", "I")
</trial>



What needs to be changed?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search