﻿<?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 5  » get data X Y positions of a trail on inquisit 5</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 25 Sep 2026 01:39:20 GMT</lastBuildDate><ttl>20</ttl><item><title>get data X Y positions of a trail on inquisit 5</title><link>https://forums.millisecond.com/Topic18764.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I've seen that it's possible to draw a trail, but it is possible to get the x y coordinates in function of time ?&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Mandy</description><pubDate>Tue, 19 Apr 2016 07:48:49 GMT</pubDate><dc:creator>jolimie971</dc:creator></item><item><title>RE: get data X Y positions of a trail on inquisit 5</title><link>https://forums.millisecond.com/Topic18930.aspx</link><description>&amp;gt; &lt;font&gt;&lt;font class=""&gt;Thanks for the reply, it was exactly what I wanted except that I was wandering how to get the decimals values  of x and y  rather than interger &lt;br/&gt;&amp;gt; mode?&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;x and y coordinates are given in terms of pixels, which are always integers. They range from 0 (the upper left corner of your display) to the display's width-1 and height-1 respectively. I.e., suppose you have a 800 x 600 pixel display, then the x coordinates would range from 0 to 799 horizontally, and the y coordinates from 0 to 599 vertically in one-pixel increments.&lt;br/&gt;&lt;br/&gt;Given the above, I'm honestly not sure what you mean by "decimal values of x and y". Please explain.&lt;br/&gt;</description><pubDate>Tue, 19 Apr 2016 07:48:49 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: get data X Y positions of a trail on inquisit 5</title><link>https://forums.millisecond.com/Topic18929.aspx</link><description>&lt;font&gt;&lt;font class=""&gt;Bonjour,&lt;br/&gt;Thanks for the reply, it was exactly what I wanted except that I was wandering how to get the decimals values  of x and y  rather than interger mode ?&lt;br/&gt;I do not know If I have to change the values function or the trial and how to do it. &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ x = 0px&lt;br/&gt;/ y = 0px&lt;br/&gt;/ mirrorx = 0.00&lt;br/&gt;/ mirrory = 0.00&lt;br/&gt;/ mousexpath = ""&lt;br/&gt;/ mouseypath = ""&lt;br/&gt;/ trialcount = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ x = 1.00px*abs(values.x-(values.mirrorx*display.width))&lt;br/&gt;/ y = 1.00px*abs(values.y-(values.mirrory*display.height))&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/ stimulusframes = [1=clickhere]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ ontrialend = [values.x=trial.start.responsex; values.y=trial.start.responsey]&lt;br/&gt;/ branch = [trial.record]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial record&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.trialcount=values.trialcount+1]&lt;br/&gt;/ stimulusframes = [1=dot, coordinates]&lt;br/&gt;/ validresponse = (mousemove, lbuttondown, rbuttondown)&lt;br/&gt;/ numframes = 1&lt;br/&gt;/ ontrialend = [values.x=trial.record.responsex; values.y=trial.record.responsey]&lt;br/&gt;/ ontrialend = [values.mousexpath=concat(concat(values.mousexpath, values.x)," ")]&lt;br/&gt;/ ontrialend = [values.mouseypath=concat(concat(values.mouseypath, values.y)," ")]&lt;br/&gt;/ ontrialend = [insert(counter.x, values.x, values.trialcount)]&lt;br/&gt;/ ontrialend = [insert(counter.y, values.y, values.trialcount)]&lt;br/&gt;/ ontrialend = [insert(counter.duration, trial.record.latency, values.trialcount)]&lt;br/&gt;/ branch = [if(trial.record.response=="lbuttondown")trial.end]&lt;br/&gt;/ branch = [if(trial.record.response=="rbuttondown")trial.pause]&lt;br/&gt;/ branch = [if(trial.record.response=="mousemove")trial.record]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial pause&amp;gt;&lt;br/&gt;/ stimulusframes = [1=coordinates]&lt;br/&gt;/ validresponse = (mousemove, lbuttondown)&lt;br/&gt;/ numframes = 1&lt;br/&gt;/ ontrialend = [values.x=trial.pause.responsex; values.y=trial.pause.responsey]&lt;br/&gt;/ branch = [if(trial.pause.response=="lbuttondown")trial.record else trial.pause]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial end&amp;gt;&lt;br/&gt;/ stimulusframes = [1=blank, goodbye]&lt;br/&gt;/ validresponse = (lbuttondown)&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial playback&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.x=counter.x.selectedvalue; values.y=counter.y.selectedvalue]&lt;br/&gt;/ stimulusframes = [1=dot, coordinates]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ numframes = 1&lt;br/&gt;/ trialduration = counter.duration.selectedvalue&lt;br/&gt;/ branch = [if(counter.x.unselectedcount&amp;lt;=0)trial.end else trial.playback]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;Stimulus Elements&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;shape dot&amp;gt;&lt;br/&gt;/ shape = circle&lt;br/&gt;/ size = (3.00%, 4.00%)&lt;br/&gt;/ color = (blue)&lt;br/&gt;/ erase = false&lt;br/&gt;/ hposition = expressions.x&lt;br/&gt;/ vposition = expressions.y&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;&lt;/font&gt;&lt;/font&gt;</description><pubDate>Tue, 19 Apr 2016 06:35:55 GMT</pubDate><dc:creator>jolimie971</dc:creator></item><item><title>RE: get data X Y positions of a trail on inquisit 5</title><link>https://forums.millisecond.com/Topic18767.aspx</link><description>Possibly. See &lt;a href="https://www.millisecond.com/forums/FindPost18175.aspx"&gt;https://www.millisecond.com/forums/FindPost18175.aspx&lt;/a&gt; for an example and further links to alternative approaches.&lt;br/&gt;</description><pubDate>Tue, 05 Apr 2016 05:04:36 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>