Optimize RSVP script


Author
Message
bkennedy
bkennedy
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 7, Visits: 83
Hello!  My apologies for another question.  I am writing a task with a rapid serial visual presentation (RSVP) where 9 320x240 images come up on the screen one at a time at 100ms per picture.  One of the images is a "target" image (and comes from a different bank of images) and the other images are "fillers".  The target image comes on at jittered serial positions in the stream (positions 3-6).  I've used code from the Attentional Blink task from the Test Library, but it seems that Inquisit is having a hard time loading the images at this speed - the timing is off and I can see the monitor drawing the images on the screen.  My guess is that I need to optimize the script to preload the images in order and then have them display during a single trial, but I am struggling to find a way to do so.  I'm still learning Inquisit, but from what I've found on the web, it seems there may be a way to use "setstimulusframe" or some similar command to set up images ontrialbegin.  If anyone can help me optimize this code, I'd really appreciate your help!!

<trial RSVP>
/ontrialbegin = [values.streamelement_count += 1]
/branch = [if (values.streamelement_count == values.t_streamposition) trial.RSVP_targetimage]
/stimulusframes = [1=filler]
/timeout = values.stimuluspresentation
/recorddata = false
/branch = [if (values.streamelement_count == values.max_streamelements) surveypage.emotionalratingsSU else trial.RSVP]
</trial>

<trial RSVP_targetimage>
/stimulusframes = [1=border, target]
/timeout = values.stimuluspresentation
/branch = [trial.RSVP]
</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