﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » Unable to locate element</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 12 Sep 2026 07:15:46 GMT</lastBuildDate><ttl>20</ttl><item><title>Unable to locate element</title><link>https://forums.millisecond.com/Topic16946.aspx</link><description>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. &lt;br/&gt;&lt;br/&gt;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. &lt;br/&gt;&lt;br/&gt;My code is as follows:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item self&amp;gt;&lt;br/&gt;/1 = "eggplant.jpg"&lt;br/&gt;/2 = "shorts.jpg"&lt;br/&gt;/3 = "toydinosaur.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;[...]&lt;br/&gt;&lt;br/&gt;&amp;lt;trial self_test&amp;gt;&lt;br/&gt;/ontrialbegin = [values.trialcount +=1]&lt;br/&gt;/stimulustimes = [0 = focuspoint; 500 = erasefixaton; 2500 = self]&lt;br/&gt;/correctresponse = ("E")&lt;br/&gt;/validresponse = ("E", "I")&lt;br/&gt;&amp;lt;/trial&amp;gt; &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;What needs to be changed?&lt;br/&gt;</description><pubDate>Tue, 11 Aug 2015 16:06:58 GMT</pubDate><dc:creator>gracethenoob</dc:creator></item><item><title>RE: Unable to locate element</title><link>https://forums.millisecond.com/Topic16947.aspx</link><description>An &amp;lt;item&amp;gt; element is *not* a stimulus element. It merely holds items. Those items can be used by a stimulus element (&amp;lt;text&amp;gt;, &amp;lt;picture&amp;gt;, etc.).&lt;br/&gt;&lt;br/&gt;Hence&lt;br/&gt;&lt;br/&gt;&amp;lt;trial self_test&amp;gt;&lt;br/&gt;/ontrialbegin = [values.trialcount +=1]&lt;br/&gt;/stimulustimes = [0 = focuspoint; 500 = erasefixaton; 2500 = &lt;strong&gt;self&lt;/strong&gt;]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;will not work. There is no *stimulus* called "self". You need to set up a &amp;lt;picture&amp;gt; element that uses the &amp;lt;item&amp;gt; element:&lt;br/&gt;&lt;br/&gt;&amp;lt;picture &lt;strong&gt;self&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ items = &lt;strong&gt;self&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;Those basics are covered in greater detail in the tutorials included in the Inquisit documentation.&lt;br/&gt;</description><pubDate>Tue, 11 Aug 2015 16:06:58 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>