Lag to play video when repeating a trial


Author
Message
sdeanda
sdeanda
Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)
Group: Forum Members
Posts: 9, Visits: 31
I've run into a strange issue when repeating trials. I've copied my code below.

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!!


<trial prime>
/ontrialbegin = [values.itemnumber = counter.mycounter.selectedvalue]
/stimulusframes= [1 = soundWAVfile; 500 = video]
/trialduration = 3000
</trial>

<trial target>
/stimulustimes = [400 = soundWAVfile2; 800= picture]
/timeout = 3700
/recorddata = true
/inputdevice = keyboard
/validresponse = ( 19)
/responsetrial = (19, repeatprime)
</trial>

<trial repeatprime>
/stimulusframes= [1 = soundWAVfile; 500 = video]
/trialduration = 3000
/validresponse = (anyresponse)
/responsetrial = (anyresponse, repeatTarget)
</trial>

<trial repeatTarget>
/stimulustimes = [400 = soundWAVfile2; 800= picture]
/timeout = 3700
</trial>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search