﻿<?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  » Recording Current Time in Data Log</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 21 Sep 2026 22:32:21 GMT</lastBuildDate><ttl>20</ttl><item><title>Recording Current Time in Data Log</title><link>https://forums.millisecond.com/Topic35154.aspx</link><description>Hi all,&lt;br/&gt;I would like for the program to record the current time in the data file when a surveypage with a video stimulus pops up in Inquisit 5. I believe it could be accomplished with the currenttime property, but I'm not sure what commands I should use to get it to record it in the data file. Any advice? Specifics with what commands and where to put it would be amazing!&lt;br/&gt;An example survey and surveypage from the study are below.&lt;br/&gt;&lt;br/&gt;&amp;lt;survey p1c1&amp;gt;&lt;br/&gt;/ pages = [ 1 = surveypage.textp1c1; 2 =surveypage.videop1c1; 3 = surveypage.p1c1qs1; 4 = surveypage.p1c1qs2]&lt;br/&gt;/ontrialbegin = [text.ReminderFT]&lt;br/&gt;/ fontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/subcaptionfontstyle = ("Times New Roman", 1.5%, false, false, false, false, 5, 1)&lt;br/&gt;/itemfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/responsefontstyle = ("Times New Roman", 2.5%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonsize = (15%, 5%)&lt;br/&gt;/ nextbuttonposition = (100%, 0%)&lt;br/&gt;/ backbuttonposition = (0%, 0%)&lt;br/&gt;/ finishlabel = "Finish"&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage videop1c1&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = video.p1c1]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;</description><pubDate>Wed, 25 Jan 2023 21:39:40 GMT</pubDate><dc:creator>hehathorn</dc:creator></item><item><title>RE: Recording Current Time in Data Log</title><link>https://forums.millisecond.com/Topic35156.aspx</link><description>&lt;blockquote data-id="35155" class="if-quote-wrapper" unselectable="on" data-guid="1674682878185" id="if_insertedNode_1674682877207" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35155" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="35155" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="35155" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 1/25/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35155"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35154" class="if-quote-wrapper" unselectable="on" data-guid="1674682878185" id="if_insertedNode_1674678149204" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35154" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="35154" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="35154" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;hehathorn - 1/25/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35154"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt;I would like for the program to record the current time in the data file when a surveypage with a video stimulus pops up in Inquisit 5. I believe it could be accomplished with the currenttime property, but I'm not sure what commands I should use to get it to record it in the data file. Any advice? Specifics with what commands and where to put it would be amazing!&lt;br/&gt;An example survey and surveypage from the study are below.&lt;br/&gt;&lt;br/&gt;&amp;lt;survey p1c1&amp;gt;&lt;br/&gt;/ pages = [ 1 = surveypage.textp1c1; 2 =surveypage.videop1c1; 3 = surveypage.p1c1qs1; 4 = surveypage.p1c1qs2]&lt;br/&gt;/ontrialbegin = [text.ReminderFT]&lt;br/&gt;/ fontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/subcaptionfontstyle = ("Times New Roman", 1.5%, false, false, false, false, 5, 1)&lt;br/&gt;/itemfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/responsefontstyle = ("Times New Roman", 2.5%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonsize = (15%, 5%)&lt;br/&gt;/ nextbuttonposition = (100%, 0%)&lt;br/&gt;/ backbuttonposition = (0%, 0%)&lt;br/&gt;/ finishlabel = "Finish"&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage videop1c1&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = video.p1c1]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35154"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Survey data output cannot be customised (i.e. no way to log the currenttime property), so first thing is you'd need to run the surveypages via a &amp;lt;block&amp;gt;'s /trials instead of running them via a &amp;lt;survey&amp;gt;'s /pages. (A &amp;lt;surveypage&amp;gt; is a special kind of &amp;lt;trial&amp;gt;, a &amp;lt;survey&amp;gt; is a special kind of &amp;lt;block&amp;gt;).&lt;br/&gt;&lt;br/&gt;Once you've done that, you can specify whatever values or properties you want to log by specifying /columns in the &amp;lt;data&amp;gt; element.&lt;br/&gt;&lt;br/&gt;To capture the currenttime at the start of the given surveypage, then, you would do something like&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block p1c1&amp;gt;&lt;br/&gt;/ trials = [1 = surveypage.textp1c1; 2 =surveypage.videop1c1; 3 = surveypage.p1c1qs1; 4 = surveypage.p1c1qs2]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ videop1c1_time  = ""&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage videop1c1&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.videop1c1_time = script.currenttime;&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = video.p1c1]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/ fontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/subcaptionfontstyle = ("Times New Roman", 1.5%, false, false, false, false, 5, 1)&lt;br/&gt;/itemfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/responsefontstyle = ("Times New Roman", 2.5%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonsize = (15%, 5%)&lt;br/&gt;/ nextbuttonposition = (100%, 0%)&lt;br/&gt;/ backbuttonposition = (0%, 0%)&lt;br/&gt;/ finishlabel = "Finish"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (date time subject group blocknum blockcode trialnum trialcode response latency correct values.videop1c1_time)&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;[/code]&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35155"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;Hey Dave,&lt;br/&gt;Thanks for the help with this, that's just what I was looking for. Sounds like I've got a bit of rewriting ahead of me!</description><pubDate>Wed, 25 Jan 2023 21:39:40 GMT</pubDate><dc:creator>hehathorn</dc:creator></item><item><title>RE: Recording Current Time in Data Log</title><link>https://forums.millisecond.com/Topic35155.aspx</link><description>&lt;blockquote data-id="35154" class="if-quote-wrapper" unselectable="on" data-guid="1674678150964" id="if_insertedNode_1674678149204" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35154" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="35154" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="35154" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;hehathorn - 1/25/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35154"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&lt;br/&gt;I would like for the program to record the current time in the data file when a surveypage with a video stimulus pops up in Inquisit 5. I believe it could be accomplished with the currenttime property, but I'm not sure what commands I should use to get it to record it in the data file. Any advice? Specifics with what commands and where to put it would be amazing!&lt;br/&gt;An example survey and surveypage from the study are below.&lt;br/&gt;&lt;br/&gt;&amp;lt;survey p1c1&amp;gt;&lt;br/&gt;/ pages = [ 1 = surveypage.textp1c1; 2 =surveypage.videop1c1; 3 = surveypage.p1c1qs1; 4 = surveypage.p1c1qs2]&lt;br/&gt;/ontrialbegin = [text.ReminderFT]&lt;br/&gt;/ fontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/subcaptionfontstyle = ("Times New Roman", 1.5%, false, false, false, false, 5, 1)&lt;br/&gt;/itemfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/responsefontstyle = ("Times New Roman", 2.5%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonsize = (15%, 5%)&lt;br/&gt;/ nextbuttonposition = (100%, 0%)&lt;br/&gt;/ backbuttonposition = (0%, 0%)&lt;br/&gt;/ finishlabel = "Finish"&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage videop1c1&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = video.p1c1]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35154"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Survey data output cannot be customised (i.e. no way to log the currenttime property), so first thing is you'd need to run the surveypages via a &amp;lt;block&amp;gt;'s /trials instead of running them via a &amp;lt;survey&amp;gt;'s /pages. (A &amp;lt;surveypage&amp;gt; is a special kind of &amp;lt;trial&amp;gt;, a &amp;lt;survey&amp;gt; is a special kind of &amp;lt;block&amp;gt;).&lt;br/&gt;&lt;br/&gt;Once you've done that, you can specify whatever values or properties you want to log by specifying /columns in the &amp;lt;data&amp;gt; element.&lt;br/&gt;&lt;br/&gt;To capture the currenttime at the start of the given surveypage, then, you would do something like&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block p1c1&amp;gt;&lt;br/&gt;/ trials = [1 = surveypage.textp1c1; 2 =surveypage.videop1c1; 3 = surveypage.p1c1qs1; 4 = surveypage.p1c1qs2]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ videop1c1_time  = ""&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage videop1c1&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.videop1c1_time = script.currenttime;&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1 = video.p1c1]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/ fontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/subcaptionfontstyle = ("Times New Roman", 1.5%, false, false, false, false, 5, 1)&lt;br/&gt;/itemfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/responsefontstyle = ("Times New Roman", 2.5%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonfontstyle = ("Times New Roman", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ navigationbuttonsize = (15%, 5%)&lt;br/&gt;/ nextbuttonposition = (100%, 0%)&lt;br/&gt;/ backbuttonposition = (0%, 0%)&lt;br/&gt;/ finishlabel = "Finish"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (date time subject group blocknum blockcode trialnum trialcode response latency correct values.videop1c1_time)&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;[/code]&lt;br/&gt;</description><pubDate>Wed, 25 Jan 2023 20:30:37 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>