﻿<?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  » Perceptual Vigilance Task</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 27 Sep 2026 05:56:41 GMT</lastBuildDate><ttl>20</ttl><item><title>Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic20891.aspx</link><description>Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. &amp;nbsp;When there is not a target stimulus, I would like there to be a non-target stimulus at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 08 Mar 2017 14:58:14 GMT</pubDate><dc:creator>Eric del Rio</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic21040.aspx</link><description>&lt;div data-id="21038" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21038" 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="21038" 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="21038" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21038"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21034" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21034" 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="21034" 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="21034" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21034"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21032" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21032" 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="21032" 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="21032" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21032"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21031" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21031" 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="21031" 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="21031" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21031"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21030" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21030" 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="21030" 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="21030" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21030"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21029" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21029" 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="21029" 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="21029" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21029"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21028" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21028" 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="21028" 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="21028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21028"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20977" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20977" 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="20977" 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="20977" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20977"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1489013520812"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20977"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alright, I see what I was doing wrong there. The program seems to be working great now. Many Thanks.&lt;br/&gt;&lt;br/&gt;I have one more thing I could use some help with:&lt;br/&gt;&lt;br/&gt;I would like the program to collect not only correct response and latency. (values.rt, and response below in &amp;lt;data&amp;gt;), but also collect when participants respond incorrectly, for example tral.Targboth.latency &amp;lt; values.stiminterval. What column should I add to collect this?&lt;br/&gt;&lt;br/&gt;*************************'&lt;br/&gt;(raw data)&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, time, subject, blockcode, trialcode, trialnum, parameters.testduration,&lt;br/&gt; parameters.fixed,&lt;br/&gt;values.stiminterval, response, values.rt, correct)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also, I think I need to put something at the trial level to tell it to collect this data during the trial, but I cannot find the correct expression. Is it noreplacenorepeat?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for your help, you truly are a supreme being.&lt;a class="if-quote-goto quote-link" href="#" data-id="21028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; but also collect when participants respond incorrectly, for example trial.Targboth.latency &amp;lt; values.stiminterval.&lt;br/&gt;&lt;br/&gt;And incorrect response is distinct from the latency aspect. To clarify: You do realize that collecting a latency where "trial.Targboth.latency &amp;lt; values.stiminterval" would reflect a response that occurred *before* any target was shown, don't you? Why would you want to do that?&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21029"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;I guess I meant "false alarm" rather than incorrect response because there is only one input device.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In this experiment, participants will be attending to changing stimuli on two different monitors at the same time, at varying distances. the changes between the non-target and target stimuli will be relatively discreet, so it is possible that participants will respond incorrectly before one or the other target events have actually occurred (false alarm). If I could collect these instances it could be useful to understand how accurately participants are responding or if any participants are just clicking the mouse repeatedly.&lt;br/&gt;&lt;br/&gt;For example, if somebody clicks the mouse before the TargBoth target happens, it would be nice to know to better understand where the response bias falls.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;a class="if-quote-goto quote-link" href="#" data-id="21030"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Okay, thanks for the clarification. And how would you want the trial to behave in case of a premature response (i.e., false alarm)? Terminate immediately? Continue to display the target stimulus? etc. All these things matter.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21031"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If all you want is allow a response to be registered at any point during the trial, you can remove the /isvalidresponse attribute.&lt;br/&gt;&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;&lt;br/&gt;means "only consider a response valid / accept it if its latency is greater than values.stiminterval," i.e. if it has occurs *after* the display of the target stimulus on-screen. Unless instructed otherwise per a different /responseinterrupt setting, the trial will then immediately terminate upon response. If you want the trial to be able to capture *multiple* responses, i.e. say a false alarm *as well as* the "actual" response after the display of the target stimulus, that opens a bit of a can of worms.&lt;br/&gt;&lt;br/&gt;See e.g. &lt;a href="https://www.millisecond.com/forums/FindPost15812.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/FindPost15812.aspx"&gt;https://www.millisecond.com/forums/FindPost15812.aspx&lt;/a&gt;&lt;/a&gt; &lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21032"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Oh ok, I'll check it out. Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="21034"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;So it seems like the /ifvalidresponse below should record premature responses in "values.rt_premature" column and correct responses in "values.rt" column. For some reason it won't take this line of code though. Did I include too much information?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;values.rt_premature = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&lt;strong&gt;/ isvalidresponse = [if(trial.TargFace.latency &amp;gt; values.stiminterval&amp;amp;&amp;amp;trial.TargFace.response = lbuttondown,rbuttondown){values.rt = trial.TargFace.latency; true;} else if (trial.TargFace.latency &amp;lt; values.stiminterval&amp;amp;&amp;amp;trial.TargFace.response = lbuttondown,rbuttondown){values.rt_premature&lt;br/&gt;&lt;/strong&gt;true}&lt;br/&gt;]&lt;a class="if-quote-goto quote-link" href="#" data-id="21038"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;There are various syntax errors in that statement. = is the *assignment* operator, but you would need the logical comparison operator == in the if-condition.&lt;br/&gt;&lt;br/&gt;And &lt;strong&gt;lbuttondown,rbuttondown &lt;/strong&gt;is not valid syntax at all -- the response property can never be equal to "lbuttondown comma rbuttondown."&lt;br/&gt;&lt;br/&gt;Moreover, this shouldn't be needed at all.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ isvalidresponse = [if(trial.TargFace.latency &amp;gt; values.stiminterval){values.rt = trial.TargFace.latency; true;} else if (trial.TargFace.latency &amp;lt;= values.stiminterval){values.rt_premature=&lt;/strong&gt;&lt;strong&gt;trial.TargFace.latency;&lt;/strong&gt; true}]&lt;br/&gt;&lt;br/&gt;should be sufficient.</description><pubDate>Wed, 08 Mar 2017 14:58:14 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic21038.aspx</link><description>&lt;div data-id="21034" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21034" 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="21034" 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="21034" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21034"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21032" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21032" 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="21032" 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="21032" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21032"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21031" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21031" 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="21031" 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="21031" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21031"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21030" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21030" 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="21030" 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="21030" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21030"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21029" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21029" 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="21029" 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="21029" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21029"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21028" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21028" 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="21028" 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="21028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21028"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20977" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20977" 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="20977" 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="20977" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20977"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1489012110663"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20977"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alright, I see what I was doing wrong there. The program seems to be working great now. Many Thanks.&lt;br/&gt;&lt;br/&gt;I have one more thing I could use some help with:&lt;br/&gt;&lt;br/&gt;I would like the program to collect not only correct response and latency. (values.rt, and response below in &amp;lt;data&amp;gt;), but also collect when participants respond incorrectly, for example tral.Targboth.latency &amp;lt; values.stiminterval. What column should I add to collect this?&lt;br/&gt;&lt;br/&gt;*************************'&lt;br/&gt;(raw data)&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, time, subject, blockcode, trialcode, trialnum, parameters.testduration,&lt;br/&gt; parameters.fixed,&lt;br/&gt;values.stiminterval, response, values.rt, correct)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also, I think I need to put something at the trial level to tell it to collect this data during the trial, but I cannot find the correct expression. Is it noreplacenorepeat?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for your help, you truly are a supreme being.&lt;a class="if-quote-goto quote-link" href="#" data-id="21028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; but also collect when participants respond incorrectly, for example trial.Targboth.latency &amp;lt; values.stiminterval.&lt;br/&gt;&lt;br/&gt;And incorrect response is distinct from the latency aspect. To clarify: You do realize that collecting a latency where "trial.Targboth.latency &amp;lt; values.stiminterval" would reflect a response that occurred *before* any target was shown, don't you? Why would you want to do that?&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21029"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;I guess I meant "false alarm" rather than incorrect response because there is only one input device.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In this experiment, participants will be attending to changing stimuli on two different monitors at the same time, at varying distances. the changes between the non-target and target stimuli will be relatively discreet, so it is possible that participants will respond incorrectly before one or the other target events have actually occurred (false alarm). If I could collect these instances it could be useful to understand how accurately participants are responding or if any participants are just clicking the mouse repeatedly.&lt;br/&gt;&lt;br/&gt;For example, if somebody clicks the mouse before the TargBoth target happens, it would be nice to know to better understand where the response bias falls.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;a class="if-quote-goto quote-link" href="#" data-id="21030"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Okay, thanks for the clarification. And how would you want the trial to behave in case of a premature response (i.e., false alarm)? Terminate immediately? Continue to display the target stimulus? etc. All these things matter.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21031"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If all you want is allow a response to be registered at any point during the trial, you can remove the /isvalidresponse attribute.&lt;br/&gt;&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;&lt;br/&gt;means "only consider a response valid / accept it if its latency is greater than values.stiminterval," i.e. if it has occurs *after* the display of the target stimulus on-screen. Unless instructed otherwise per a different /responseinterrupt setting, the trial will then immediately terminate upon response. If you want the trial to be able to capture *multiple* responses, i.e. say a false alarm *as well as* the "actual" response after the display of the target stimulus, that opens a bit of a can of worms.&lt;br/&gt;&lt;br/&gt;See e.g. &lt;a href="https://www.millisecond.com/forums/FindPost15812.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/FindPost15812.aspx"&gt;https://www.millisecond.com/forums/FindPost15812.aspx&lt;/a&gt;&lt;/a&gt; &lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21032"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Oh ok, I'll check it out. Thanks&lt;a class="if-quote-goto quote-link" href="#" data-id="21034"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;So it seems like the /ifvalidresponse below should record premature responses in "values.rt_premature" column and correct responses in "values.rt" column. For some reason it won't take this line of code though. Did I include too much information?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;values.rt_premature = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&lt;strong&gt;/ isvalidresponse = [if(trial.TargFace.latency &amp;gt; values.stiminterval&amp;amp;&amp;amp;trial.TargFace.response = lbuttondown,rbuttondown){values.rt = trial.TargFace.latency; true;} else if (trial.TargFace.latency &amp;lt; values.stiminterval&amp;amp;&amp;amp;trial.TargFace.response = lbuttondown,rbuttondown){values.rt_premature&lt;br/&gt;&lt;/strong&gt;true}&lt;br/&gt;]</description><pubDate>Wed, 08 Mar 2017 14:34:21 GMT</pubDate><dc:creator>Eric del Rio</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic21034.aspx</link><description>&lt;div data-id="21032" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21032" 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="21032" 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="21032" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21032"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21031" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21031" 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="21031" 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="21031" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21031"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21030" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21030" 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="21030" 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="21030" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21030"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21029" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21029" 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="21029" 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="21029" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21029"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21028" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21028" 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="21028" 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="21028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21028"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20977" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20977" 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="20977" 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="20977" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20977"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1489010279633"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20977"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alright, I see what I was doing wrong there. The program seems to be working great now. Many Thanks.&lt;br/&gt;&lt;br/&gt;I have one more thing I could use some help with:&lt;br/&gt;&lt;br/&gt;I would like the program to collect not only correct response and latency. (values.rt, and response below in &amp;lt;data&amp;gt;), but also collect when participants respond incorrectly, for example tral.Targboth.latency &amp;lt; values.stiminterval. What column should I add to collect this?&lt;br/&gt;&lt;br/&gt;*************************'&lt;br/&gt;(raw data)&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, time, subject, blockcode, trialcode, trialnum, parameters.testduration,&lt;br/&gt; parameters.fixed,&lt;br/&gt;values.stiminterval, response, values.rt, correct)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also, I think I need to put something at the trial level to tell it to collect this data during the trial, but I cannot find the correct expression. Is it noreplacenorepeat?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for your help, you truly are a supreme being.&lt;a class="if-quote-goto quote-link" href="#" data-id="21028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; but also collect when participants respond incorrectly, for example trial.Targboth.latency &amp;lt; values.stiminterval.&lt;br/&gt;&lt;br/&gt;And incorrect response is distinct from the latency aspect. To clarify: You do realize that collecting a latency where "trial.Targboth.latency &amp;lt; values.stiminterval" would reflect a response that occurred *before* any target was shown, don't you? Why would you want to do that?&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21029"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;I guess I meant "false alarm" rather than incorrect response because there is only one input device.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In this experiment, participants will be attending to changing stimuli on two different monitors at the same time, at varying distances. the changes between the non-target and target stimuli will be relatively discreet, so it is possible that participants will respond incorrectly before one or the other target events have actually occurred (false alarm). If I could collect these instances it could be useful to understand how accurately participants are responding or if any participants are just clicking the mouse repeatedly.&lt;br/&gt;&lt;br/&gt;For example, if somebody clicks the mouse before the TargBoth target happens, it would be nice to know to better understand where the response bias falls.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;a class="if-quote-goto quote-link" href="#" data-id="21030"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Okay, thanks for the clarification. And how would you want the trial to behave in case of a premature response (i.e., false alarm)? Terminate immediately? Continue to display the target stimulus? etc. All these things matter.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21031"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If all you want is allow a response to be registered at any point during the trial, you can remove the /isvalidresponse attribute.&lt;br/&gt;&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;&lt;br/&gt;means "only consider a response valid / accept it if its latency is greater than values.stiminterval," i.e. if it has occurs *after* the display of the target stimulus on-screen. Unless instructed otherwise per a different /responseinterrupt setting, the trial will then immediately terminate upon response. If you want the trial to be able to capture *multiple* responses, i.e. say a false alarm *as well as* the "actual" response after the display of the target stimulus, that opens a bit of a can of worms.&lt;br/&gt;&lt;br/&gt;See e.g. &lt;a href="https://www.millisecond.com/forums/FindPost15812.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/FindPost15812.aspx"&gt;https://www.millisecond.com/forums/FindPost15812.aspx&lt;/a&gt;&lt;/a&gt; &lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21032"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Oh ok, I'll check it out. Thanks</description><pubDate>Wed, 08 Mar 2017 13:58:01 GMT</pubDate><dc:creator>Eric del Rio</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic21033.aspx</link><description>&lt;div data-id="21031" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21031" 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="21031" 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="21031" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21031"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21030" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21030" 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="21030" 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="21030" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21030"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21029" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21029" 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="21029" 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="21029" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21029"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21028" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21028" 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="21028" 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="21028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21028"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20977" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20977" 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="20977" 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="20977" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20977"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1489009851610"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20977"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alright, I see what I was doing wrong there. The program seems to be working great now. Many Thanks.&lt;br/&gt;&lt;br/&gt;I have one more thing I could use some help with:&lt;br/&gt;&lt;br/&gt;I would like the program to collect not only correct response and latency. (values.rt, and response below in &amp;lt;data&amp;gt;), but also collect when participants respond incorrectly, for example tral.Targboth.latency &amp;lt; values.stiminterval. What column should I add to collect this?&lt;br/&gt;&lt;br/&gt;*************************'&lt;br/&gt;(raw data)&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, time, subject, blockcode, trialcode, trialnum, parameters.testduration,&lt;br/&gt; parameters.fixed,&lt;br/&gt;values.stiminterval, response, values.rt, correct)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also, I think I need to put something at the trial level to tell it to collect this data during the trial, but I cannot find the correct expression. Is it noreplacenorepeat?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for your help, you truly are a supreme being.&lt;a class="if-quote-goto quote-link" href="#" data-id="21028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; but also collect when participants respond incorrectly, for example trial.Targboth.latency &amp;lt; values.stiminterval.&lt;br/&gt;&lt;br/&gt;And incorrect response is distinct from the latency aspect. To clarify: You do realize that collecting a latency where "trial.Targboth.latency &amp;lt; values.stiminterval" would reflect a response that occurred *before* any target was shown, don't you? Why would you want to do that?&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21029"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;I guess I meant "false alarm" rather than incorrect response because there is only one input device.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In this experiment, participants will be attending to changing stimuli on two different monitors at the same time, at varying distances. the changes between the non-target and target stimuli will be relatively discreet, so it is possible that participants will respond incorrectly before one or the other target events have actually occurred (false alarm). If I could collect these instances it could be useful to understand how accurately participants are responding or if any participants are just clicking the mouse repeatedly.&lt;br/&gt;&lt;br/&gt;For example, if somebody clicks the mouse before the TargBoth target happens, it would be nice to know to better understand where the response bias falls.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;a class="if-quote-goto quote-link" href="#" data-id="21030"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Okay, thanks for the clarification. And how would you want the trial to behave in case of a premature response (i.e., false alarm)? Terminate immediately? Continue to display the target stimulus? etc. All these things matter.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21031"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I was thinking, for convenience sake to have the trial continue until there is a target and wait for a correct response - recording the false alarm. But if &amp;nbsp;it is not too complicated to have a false alarm terminate the trial immediately and display a message "There was no change to the..." , then that would be ideal. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I know how to make the feedback stimulus i.e., but wouldn't know how to make the incorrect response terminate and display it. Or how to make it record the data.&lt;br/&gt;&lt;br/&gt;&amp;lt;text FalseAlrm&amp;gt;&lt;br/&gt;/items = ("There was no change")&lt;br/&gt;/ fontstyle = ("Arial", parameters.feedbackheight, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = red&lt;br/&gt;/txbgcolor = white&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 08 Mar 2017 13:56:54 GMT</pubDate><dc:creator>Eric del Rio</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic21032.aspx</link><description>&lt;div data-id="21031" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21031" 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="21031" 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="21031" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21031"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21030" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21030" 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="21030" 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="21030" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21030"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21029" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21029" 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="21029" 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="21029" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21029"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21028" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21028" 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="21028" 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="21028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21028"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20977" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20977" 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="20977" 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="20977" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20977"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1489009271060"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20977"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alright, I see what I was doing wrong there. The program seems to be working great now. Many Thanks.&lt;br/&gt;&lt;br/&gt;I have one more thing I could use some help with:&lt;br/&gt;&lt;br/&gt;I would like the program to collect not only correct response and latency. (values.rt, and response below in &amp;lt;data&amp;gt;), but also collect when participants respond incorrectly, for example tral.Targboth.latency &amp;lt; values.stiminterval. What column should I add to collect this?&lt;br/&gt;&lt;br/&gt;*************************'&lt;br/&gt;(raw data)&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, time, subject, blockcode, trialcode, trialnum, parameters.testduration,&lt;br/&gt; parameters.fixed,&lt;br/&gt;values.stiminterval, response, values.rt, correct)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also, I think I need to put something at the trial level to tell it to collect this data during the trial, but I cannot find the correct expression. Is it noreplacenorepeat?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for your help, you truly are a supreme being.&lt;a class="if-quote-goto quote-link" href="#" data-id="21028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; but also collect when participants respond incorrectly, for example trial.Targboth.latency &amp;lt; values.stiminterval.&lt;br/&gt;&lt;br/&gt;And incorrect response is distinct from the latency aspect. To clarify: You do realize that collecting a latency where "trial.Targboth.latency &amp;lt; values.stiminterval" would reflect a response that occurred *before* any target was shown, don't you? Why would you want to do that?&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21029"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;I guess I meant "false alarm" rather than incorrect response because there is only one input device.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In this experiment, participants will be attending to changing stimuli on two different monitors at the same time, at varying distances. the changes between the non-target and target stimuli will be relatively discreet, so it is possible that participants will respond incorrectly before one or the other target events have actually occurred (false alarm). If I could collect these instances it could be useful to understand how accurately participants are responding or if any participants are just clicking the mouse repeatedly.&lt;br/&gt;&lt;br/&gt;For example, if somebody clicks the mouse before the TargBoth target happens, it would be nice to know to better understand where the response bias falls.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;a class="if-quote-goto quote-link" href="#" data-id="21030"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Okay, thanks for the clarification. And how would you want the trial to behave in case of a premature response (i.e., false alarm)? Terminate immediately? Continue to display the target stimulus? etc. All these things matter.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21031"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If all you want is allow a response to be registered at any point during the trial, you can remove the /isvalidresponse attribute.&lt;br/&gt;&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;&lt;br/&gt;means "only consider a response valid / accept it if its latency is greater than values.stiminterval," i.e. if it has occurs *after* the display of the target stimulus on-screen. Unless instructed otherwise per a different /responseinterrupt setting, the trial will then immediately terminate upon response. If you want the trial to be able to capture *multiple* responses, i.e. say a false alarm *as well as* the "actual" response after the display of the target stimulus, that opens a bit of a can of worms.&lt;br/&gt;&lt;br/&gt;See e.g. &lt;a href="https://www.millisecond.com/forums/FindPost15812.aspx"&gt;https://www.millisecond.com/forums/FindPost15812.aspx&lt;/a&gt; &lt;br/&gt;</description><pubDate>Wed, 08 Mar 2017 13:48:50 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic21031.aspx</link><description>&lt;div data-id="21030" class="if-quote-wrapper" unselectable="on" data-guid="1489009055758"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21030" 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="21030" 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="21030" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21030"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21029" class="if-quote-wrapper" unselectable="on" data-guid="1489009055758"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21029" 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="21029" 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="21029" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21029"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21028" class="if-quote-wrapper" unselectable="on" data-guid="1489009055758"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21028" 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="21028" 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="21028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21028"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20977" class="if-quote-wrapper" unselectable="on" data-guid="1489009055758"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20977" 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="20977" 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="20977" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20977"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1489009055758"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1489009055758"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1489009055758"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1489009055758"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1489009055758"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20977"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alright, I see what I was doing wrong there. The program seems to be working great now. Many Thanks.&lt;br/&gt;&lt;br/&gt;I have one more thing I could use some help with:&lt;br/&gt;&lt;br/&gt;I would like the program to collect not only correct response and latency. (values.rt, and response below in &amp;lt;data&amp;gt;), but also collect when participants respond incorrectly, for example tral.Targboth.latency &amp;lt; values.stiminterval. What column should I add to collect this?&lt;br/&gt;&lt;br/&gt;*************************'&lt;br/&gt;(raw data)&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, time, subject, blockcode, trialcode, trialnum, parameters.testduration,&lt;br/&gt; parameters.fixed,&lt;br/&gt;values.stiminterval, response, values.rt, correct)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also, I think I need to put something at the trial level to tell it to collect this data during the trial, but I cannot find the correct expression. Is it noreplacenorepeat?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for your help, you truly are a supreme being.&lt;a class="if-quote-goto quote-link" href="#" data-id="21028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; but also collect when participants respond incorrectly, for example trial.Targboth.latency &amp;lt; values.stiminterval.&lt;br/&gt;&lt;br/&gt;And incorrect response is distinct from the latency aspect. To clarify: You do realize that collecting a latency where "trial.Targboth.latency &amp;lt; values.stiminterval" would reflect a response that occurred *before* any target was shown, don't you? Why would you want to do that?&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21029"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;I guess I meant "false alarm" rather than incorrect response because there is only one input device.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In this experiment, participants will be attending to changing stimuli on two different monitors at the same time, at varying distances. the changes between the non-target and target stimuli will be relatively discreet, so it is possible that participants will respond incorrectly before one or the other target events have actually occurred (false alarm). If I could collect these instances it could be useful to understand how accurately participants are responding or if any participants are just clicking the mouse repeatedly.&lt;br/&gt;&lt;br/&gt;For example, if somebody clicks the mouse before the TargBoth target happens, it would be nice to know to better understand where the response bias falls.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;a class="if-quote-goto quote-link" href="#" data-id="21030"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Okay, thanks for the clarification. And how would you want the trial to behave in case of a premature response (i.e., false alarm)? Terminate immediately? Continue to display the target stimulus? etc. All these things matter.&lt;br/&gt;</description><pubDate>Wed, 08 Mar 2017 13:39:33 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic21030.aspx</link><description>&lt;div data-id="21029" class="if-quote-wrapper" unselectable="on" data-guid="1489007572224"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21029" 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="21029" 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="21029" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21029"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="21028" class="if-quote-wrapper" unselectable="on" data-guid="1489007572224"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21028" 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="21028" 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="21028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21028"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20977" class="if-quote-wrapper" unselectable="on" data-guid="1489007572224"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20977" 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="20977" 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="20977" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20977"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1489007572224"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1489007572224"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1489007572224"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1489007572224"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1489007572224"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20977"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alright, I see what I was doing wrong there. The program seems to be working great now. Many Thanks.&lt;br/&gt;&lt;br/&gt;I have one more thing I could use some help with:&lt;br/&gt;&lt;br/&gt;I would like the program to collect not only correct response and latency. (values.rt, and response below in &amp;lt;data&amp;gt;), but also collect when participants respond incorrectly, for example tral.Targboth.latency &amp;lt; values.stiminterval. What column should I add to collect this?&lt;br/&gt;&lt;br/&gt;*************************'&lt;br/&gt;(raw data)&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, time, subject, blockcode, trialcode, trialnum, parameters.testduration,&lt;br/&gt; parameters.fixed,&lt;br/&gt;values.stiminterval, response, values.rt, correct)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also, I think I need to put something at the trial level to tell it to collect this data during the trial, but I cannot find the correct expression. Is it noreplacenorepeat?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for your help, you truly are a supreme being.&lt;a class="if-quote-goto quote-link" href="#" data-id="21028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; but also collect when participants respond incorrectly, for example trial.Targboth.latency &amp;lt; values.stiminterval.&lt;br/&gt;&lt;br/&gt;And incorrect response is distinct from the latency aspect. To clarify: You do realize that collecting a latency where "trial.Targboth.latency &amp;lt; values.stiminterval" would reflect a response that occurred *before* any target was shown, don't you? Why would you want to do that?&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21029"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;I guess I meant "false alarm" rather than incorrect response because there is only one input device.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In this experiment, participants will be attending to changing stimuli on two different monitors at the same time, at varying distances. the changes between the non-target and target stimuli will be relatively discreet, so it is possible that participants will respond incorrectly before one or the other target events have actually occurred (false alarm). If I could collect these instances it could be useful to understand how accurately participants are responding or if any participants are just clicking the mouse repeatedly.&lt;br/&gt;&lt;br/&gt;For example, if somebody clicks the mouse before the TargBoth target happens, it would be nice to know to better understand where the response bias falls.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric</description><pubDate>Wed, 08 Mar 2017 13:23:08 GMT</pubDate><dc:creator>Eric del Rio</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic21029.aspx</link><description>&lt;div data-id="21028" class="if-quote-wrapper" unselectable="on" data-guid="1489003973973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21028" 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="21028" 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="21028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Wednesday, March 8, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21028"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20977" class="if-quote-wrapper" unselectable="on" data-guid="1489003973973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20977" 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="20977" 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="20977" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20977"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1489003973973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1489003973973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1489003973973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1489003973973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1489003973973"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20977"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alright, I see what I was doing wrong there. The program seems to be working great now. Many Thanks.&lt;br/&gt;&lt;br/&gt;I have one more thing I could use some help with:&lt;br/&gt;&lt;br/&gt;I would like the program to collect not only correct response and latency. (values.rt, and response below in &amp;lt;data&amp;gt;), but also collect when participants respond incorrectly, for example tral.Targboth.latency &amp;lt; values.stiminterval. What column should I add to collect this?&lt;br/&gt;&lt;br/&gt;*************************'&lt;br/&gt;(raw data)&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, time, subject, blockcode, trialcode, trialnum, parameters.testduration,&lt;br/&gt; parameters.fixed,&lt;br/&gt;values.stiminterval, response, values.rt, correct)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also, I think I need to put something at the trial level to tell it to collect this data during the trial, but I cannot find the correct expression. Is it noreplacenorepeat?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for your help, you truly are a supreme being.&lt;a class="if-quote-goto quote-link" href="#" data-id="21028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; but also collect when participants respond incorrectly, for example trial.Targboth.latency &amp;lt; values.stiminterval.&lt;br/&gt;&lt;br/&gt;And incorrect response is distinct from the latency aspect. To clarify: You do realize that collecting a latency where "trial.Targboth.latency &amp;lt; values.stiminterval" would reflect a response that occurred *before* any target was shown, don't you? Why would you want to do that?&lt;br/&gt;</description><pubDate>Wed, 08 Mar 2017 12:15:41 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic21028.aspx</link><description>&lt;div data-id="20977" class="if-quote-wrapper" unselectable="on" data-guid="1489001727066"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20977" 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="20977" 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="20977" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20977"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1489001727066"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1489001727066"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1489001727066"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1489001727066"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1489001727066"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20977"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Alright, I see what I was doing wrong there. The program seems to be working great now. Many Thanks.&lt;br/&gt;&lt;br/&gt;I have one more thing I could use some help with:&lt;br/&gt;&lt;br/&gt;I would like the program to collect not only correct response and latency. (values.rt, and response below in &amp;lt;data&amp;gt;), but also collect when participants respond incorrectly, for example tral.Targboth.latency &amp;lt; values.stiminterval. What column should I add to collect this?&lt;br/&gt;&lt;br/&gt;*************************'&lt;br/&gt;(raw data)&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (build, computer.platform, time, subject, blockcode, trialcode, trialnum, parameters.testduration,&lt;br/&gt; parameters.fixed,&lt;br/&gt;values.stiminterval, response, values.rt, correct)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also, I think I need to put something at the trial level to tell it to collect this data during the trial, but I cannot find the correct expression. Is it noreplacenorepeat?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.nextvalue]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for your help, you truly are a supreme being.</description><pubDate>Wed, 08 Mar 2017 11:43:53 GMT</pubDate><dc:creator>Eric del Rio</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic20977.aspx</link><description>&lt;div data-id="20976" class="if-quote-wrapper" unselectable="on" data-guid="1488830056301"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20976" 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="20976" 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="20976" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Monday, March 6, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20976"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1488830056301"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1488830056301"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1488830056301"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1488830056301"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20976"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;I think you misunderstand how /bgstim works and is supposed to work: Any stimulus drawn to the screen via /bgstim is drawn *exactly once* and once only at the very start of the &amp;lt;block&amp;gt;. Those stimuli will not be re-drawn and if they are overwritten by any other stimuli drawn to the screen by any of the trials in the block, the background stimuli are gone.&lt;br/&gt;&lt;br/&gt;&amp;gt;  When I run the program, there are still target images before a target event has happened&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;/strong&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;That's because you have *instructed* your trials to draw them to the screen in its very first frame.&lt;br/&gt;&lt;br/&gt;&amp;gt; instead of having just the /bgstim (picture.NonFace, picture.NonBP)&lt;br/&gt;&lt;br/&gt;Then that's what you trials should actually draw to the screen at the very start&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;/ stimulusframes = [1 = NonBP, NonFace]&lt;br/&gt;&lt;br/&gt;&amp;gt; &lt;/strong&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them&lt;br/&gt;&lt;br/&gt;No.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 06 Mar 2017 12:00:47 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic20976.aspx</link><description>&lt;div data-id="20963" class="if-quote-wrapper" unselectable="on" data-guid="1488828976755"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20963" 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="20963" 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="20963" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20963"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1488828976755"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1488828976755"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1488828976755"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20963"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;Again, thanks so much for your help.&lt;br/&gt;&lt;br/&gt;There still seems to be an issue with the selecting of stimulus. When I run the program, there are still target images before a target event has happened (instead of having just the /bgstim (picture.NonFace, picture.NonBP).&lt;br/&gt;&lt;br/&gt;I also suspect that the program is not providing the two stimulus at the same time for each trial, but selecting separate stimulus intervals for them.&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;maybe that is because of the lines above?&lt;br/&gt;&lt;br/&gt;An example of what is happening is that NonBP and TargetFace appear immediately after a response to a previous combination, then, after a stimulusinterval, they allow for a response. What should happen is that after a response to a combination NonBP and NonFace should appear, and after a stimulus interval, one of the three target combinations should appear.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Would it make more sense to create some number of non-target trials that require no response and mix them into the order below? &amp;nbsp;Or is it possible to use /bgstim to have the non-target stimuli remain on the screen whenever they are not covered by a target pair?&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = [trial.TargFace; trial.TargBoth; trial.TargBP]&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 06 Mar 2017 11:46:08 GMT</pubDate><dc:creator>Eric del Rio</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic20963.aspx</link><description>&lt;div data-id="20957" class="if-quote-wrapper" unselectable="on" data-guid="1488774201426"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20957" 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="20957" 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="20957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, March 5, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1488774201426"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1488774201426"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You say the combination you want for &amp;lt;trial TargBP&amp;gt; is "TargBP = NonFace, Target.BP"&lt;br/&gt;&lt;br/&gt;&amp;lt;trial &lt;strong&gt;TargBP&lt;/strong&gt;&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Then the above is wrong, and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;NonFace&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.&lt;strong&gt;TargetBP&lt;/strong&gt;, values.stiminterval);&lt;br/&gt;&lt;br/&gt;#2: to /branch to a &amp;lt;trial&amp;gt; element selected from a &amp;lt;list&amp;gt;, the proper syntax is&lt;br/&gt;&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder.&lt;strong&gt;nextvalue&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;Crucially, if you run the RT feedback trial -- which you do -- you need to adjust the /branch there as well. I.e., &lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [trial.TargBP]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;is wrong and ought to read&lt;br/&gt;&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;&lt;strong&gt;/branch = [list.stimulusorder.nextvalue]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Sun, 05 Mar 2017 20:31:59 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic20957.aspx</link><description>&lt;div data-id="20894" class="if-quote-wrapper" unselectable="on" data-guid="1488761095047"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20894" 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="20894" 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="20894" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20894"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1488761095047"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. A trial will be every time the participant is required to respond and the time before the event. &amp;nbsp;When there is not a target stimulus, I would like there to be two non-target stimuli at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20894"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave, Thanks so much for your help!&lt;br/&gt;&lt;br/&gt;So to give a more detailed explanation of what I want to do:&lt;br/&gt;I am trying to adapt this perceptual vigilance task so that instead of a red circle appearing in the middle of the screen at "stimulusinterval" I would like the program to select randomly between 3 combinations (trial.TargFace, trial.TargBoth, Trial.BP) of 4 stimuli (picture.NonFace, picture.TargetFace, picture.NonBP, picture.TargetBP)&amp;nbsp;and present them for the participant to respond to at stimulusinterval. The combinations I would like are: TargFace = NonBP, TargetFace; TargBP = NonFace, Target.BP; TargBoth = TargetFace, TargetBP. &amp;nbsp;When there is not a target event, I would like NonFace, NonBP to be present which I believe I have achieved by using (/ bgstim) in the block area.&lt;br/&gt;&lt;br/&gt;After following your advice, the test is working except that it is only selecting TargBoth as a trial instead of switching between the three combinations. &amp;nbsp;I tried to remedy this by making&amp;nbsp;&amp;lt;list stimulusorder&amp;gt; but I think I have made a mistake here. I also think that there is something wrong with the way that I did the / branch code at the end of each of my trials. &amp;nbsp;Maybe it has to do with how the block code is written?&lt;br/&gt;&lt;br/&gt;Do you have any recommendations for how I may accomplish my goal?&lt;br/&gt;&lt;br/&gt;Note: I pasted below the parts I'm talking about below with question areas in &lt;strong&gt;bold&lt;/strong&gt;. I also attached the full script if that is easier to navigate&lt;br/&gt;&lt;br/&gt;Thanks,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;Intervals&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;"&gt;*******************************************************************************************************************&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;list stimulusinterval&amp;gt;&lt;br/&gt;/ items = (1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimulusorder&amp;gt;&lt;br/&gt;/ items = (trial.TargBoth, trial.TargBP, trial.TargFace)&lt;br/&gt;/ replace = true&lt;br/&gt;/ selectionrate = trial&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;STIMULI&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NonFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_nontarget_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetBP&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_BP.jpg")&lt;br/&gt;/ position = (20,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture TargetFace&amp;gt;&lt;br/&gt;/ items = ("C:\Users\Richard\Desktop\Inquisit Scripts\Picture_target_face.jpg")&lt;br/&gt;/ position = (80,50)&lt;br/&gt;/ size = (50%, 50%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt; Note: This presents the first dummy stimulus to start the responses&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;Note: This is the FACE Target Trial&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [1 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BOTH targets appear&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBoth&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBoth.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBoth.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBoth.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBoth.response == "lbuttondown" || trial.TargBoth.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBoth.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;^^^^^^^^^^^^^^^^^Changed else to "list.stimulusorder" from trial name. probably wrong&lt;br/&gt;&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;This is when BP Target Appears&lt;br/&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;br/&gt;&lt;br/&gt;&amp;lt;trial TargBP&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = TargetBP, NonFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargBP.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargBP.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargBP.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargBP.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargBP.response == "lbuttondown" || trial.TargBP.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargBP.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else list.stimulusorder]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;/strong&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargBP]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;BLOCKS&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;*******************************************************************************************************************&lt;br/&gt;&lt;br/&gt;Note: this is the main block provided. It runs a specified amount of time with either a fixed or a &lt;br/&gt;random position for the target.&lt;br/&gt;&lt;br/&gt;Note: bgstim makes the background show non-target stimuli&lt;br/&gt;&amp;lt;block Target&amp;gt;&lt;br/&gt;/ bgstim = (NonBP, NonFace) &lt;br/&gt;&lt;strong&gt;/ trials = [1 = start; 2 = list.stimulusorder]&lt;/strong&gt;&lt;br/&gt;/ onblockbegin = [block.Target.screencolor = parameters.screencolor]&lt;br/&gt;/timeout = parameters.testduration&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Sun, 05 Mar 2017 17:05:26 GMT</pubDate><dc:creator>Eric del Rio</dc:creator></item><item><title>RE: Perceptual Vigilance Task</title><link>https://forums.millisecond.com/Topic20894.aspx</link><description>&lt;div data-id="20891" class="if-quote-wrapper" unselectable="on" data-guid="1488211026483"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20891" 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="20891" 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="20891" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Eric del Rio - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20891"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Millisecond Forum, I am new to Inquisit and am excited to run my first experiment on it. I am attempting to adapt the Perceptual Vigilance task to my methods, but instead of having the red circle be the target stimulus, I would like to have one of 3 image stimulus combinations for each trial. &amp;nbsp;When there is not a target stimulus, I would like there to be a non-target stimulus at all times on the screen. (I accomplished this by adding / bgstim to blocks).&lt;br/&gt;&lt;br/&gt;The issue I've been having is replacing the target circle with my images (in &amp;lt;trials&amp;gt;). I would ideally like to have 3 different stimuli combinations appear at the same intervals that the circle would.&lt;br/&gt;&lt;br/&gt;So far, I have this, which works for &amp;lt;trial start&amp;gt;, but after a response to the first target, the other target just sits around and doesn't change when a response is required. There should also be an interval before it appears.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Being new to this program, I'm not sure if this is enough information, but would appreciate any input the community may have to offer.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Eric&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/stimulusframes = [1 = TargetBP, NonFace]&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Note:&lt;br/&gt;Main trial: presents the fixationcross and the stimulus (either in a fixed position or randomly) and waits for  mouse click&lt;br/&gt;&amp;lt;trial TargFace&amp;gt;&lt;br/&gt;/ stimulusframes = [2 = NonBP, TargetFace]&lt;br/&gt;/ontrialbegin = [&lt;br/&gt;values.rt = 0;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;values.stiminterval = list.stimulusinterval.nextvalue;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;]&lt;br/&gt;/ontrialend = [trial.TargFace.resetstimulusframes()]&lt;br/&gt;/responseinterrupt = immediate&lt;br/&gt;/beginresponsetime = 0&lt;br/&gt;/validresponse = (lbuttondown, rbuttondown)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;trial.TargFace.latency &amp;gt; values.stiminterval&lt;br/&gt;]&lt;br/&gt;/ontrialend = [&lt;br/&gt;if (trial.TargFace.response == "lbuttondown" || trial.TargFace.response == "rbuttondown") {&lt;br/&gt;values.rt = trial.TargFace.latency - values.stiminterval;&lt;br/&gt;list.latencies.insertitem(values.rt, 1);&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;/ branch = [if (parameters.presenttrialfeedback == true) trial.rt_feedback else trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Note: presents latency feedback for parameters.rtfeedback_duration (editable value)&lt;br/&gt;&amp;lt;trial RT_feedback&amp;gt;&lt;br/&gt;/stimulusframes = [1 = RT_feedback]&lt;br/&gt;/trialduration = parameters.rtfeedback_duration&lt;br/&gt;/recorddata = false&lt;br/&gt;/branch = [trial.TargFace]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20891"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Sorry, I can't figure out what you want to do -- neither based on your description, nor based on the (non-working) code. &lt;br/&gt;&lt;br/&gt;What I can tell you is that this &lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;is wrong. You cannot insert multiple stimuli with a *single* call to the insertstimulustime() function. If you wanted to insert both picture.targetface and picture.nonbp at the same time in the trial, this ought to read&lt;br/&gt;&lt;br/&gt;trial.TargFace.insertstimulustime(picture.TargetFace, values.stiminterval);&lt;br/&gt;trial.TargFace.insertstimulustime(picture.NonBP, values.stiminterval);&lt;br/&gt;&lt;br/&gt;Please provide a clearer description of what you want to achieve and importantly please reference the objects you are referring to exactly as they are *named* in the code.&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 27 Feb 2017 08:07:59 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>