﻿<?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  » Lag to play video when repeating a trial</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 03 Apr 2026 18:02:28 GMT</lastBuildDate><ttl>20</ttl><item><title>Lag to play video when repeating a trial</title><link>https://forums.millisecond.com/Topic15494.aspx</link><description>I've run into a strange issue when repeating trials. I've copied my code below. &lt;br/&gt;&lt;br/&gt;I have two trials that run back-to-back (the prime trial and target trial, see below). I was successful in repeating these pairs of trials using keyboard input. However, when I incorporate a video that plays 500 ms into one of the trials, the repeated trial lags a significant amount of time (on the order of seconds) to play the video. Note that this only happens when I repeat the trial. Any help is appreciated!!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial prime&amp;gt;&lt;br/&gt;/ontrialbegin =  [values.itemnumber = counter.mycounter.selectedvalue]&lt;br/&gt;/stimulusframes= [1 = soundWAVfile; 500 = video]&lt;br/&gt;/trialduration = 3000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial target&amp;gt;&lt;br/&gt;/stimulustimes = [400 = soundWAVfile2; 800= picture]&lt;br/&gt;/timeout = 3700&lt;br/&gt;/recorddata = true&lt;br/&gt;/inputdevice = keyboard&lt;br/&gt;/validresponse = ( 19)&lt;br/&gt;/responsetrial = (19, repeatprime)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial repeatprime&amp;gt;&lt;br/&gt;/stimulusframes= [1 = soundWAVfile; 500 = video]&lt;br/&gt;/trialduration = 3000&lt;br/&gt;/validresponse = (anyresponse)&lt;br/&gt;/responsetrial = (anyresponse, repeatTarget)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial repeatTarget&amp;gt;&lt;br/&gt;/stimulustimes = [400 = soundWAVfile2; 800= picture]&lt;br/&gt;/timeout = 3700&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Thu, 12 Feb 2015 14:13:54 GMT</pubDate><dc:creator>sdeanda</dc:creator></item><item><title>RE: Lag to play video when repeating a trial</title><link>https://forums.millisecond.com/Topic15536.aspx</link><description>Great -- thanks for taking the time to update the thread!&lt;br/&gt;</description><pubDate>Thu, 12 Feb 2015 14:13:54 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Lag to play video when repeating a trial</title><link>https://forums.millisecond.com/Topic15535.aspx</link><description>Sorry for the delayed response. I finally got a chance to go back and look at this. You were right about "stimulusframes" and "stimulustimes"! That fixed it. Thanks for the help!</description><pubDate>Thu, 12 Feb 2015 14:08:54 GMT</pubDate><dc:creator>sdeanda</dc:creator></item><item><title>RE: Lag to play video when repeating a trial</title><link>https://forums.millisecond.com/Topic15499.aspx</link><description>They behave absolutely identically -- or rather as expected -- for me (using arbitrary files I have plugged in, I don't have the ones you're using obviously).&lt;br/&gt;&lt;br/&gt;What do the relevant stimulusonset columns in your data file report as onsets for the two different trials?&lt;br/&gt;</description><pubDate>Sat, 07 Feb 2015 19:10:12 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Lag to play video when repeating a trial</title><link>https://forums.millisecond.com/Topic15496.aspx</link><description>That makes sense. But why would the prime trial run fine but not repeatprime? </description><pubDate>Sat, 07 Feb 2015 19:04:20 GMT</pubDate><dc:creator>sdeanda</dc:creator></item><item><title>RE: Lag to play video when repeating a trial</title><link>https://forums.millisecond.com/Topic15495.aspx</link><description>/stimulusframes= [1 = soundWAVfile; 500 = video]&lt;br/&gt;&lt;br/&gt;You're a using *stimulusframes* here, not *stimulustimes*. I.e., you aren't displaying the video at 500 *ms* into the trial, but at 500 *frames*. Depending on your display's refresh rate, a single frame lasts between 10-20ms, i.e. the video is displayed somewhere between 5 to 10 seconds into the trial.&lt;br/&gt;</description><pubDate>Sat, 07 Feb 2015 18:45:54 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>