﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » Sending a trigger for  stimulus onset and button press</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 13 Sep 2026 11:32:53 GMT</lastBuildDate><ttl>20</ttl><item><title>Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22556.aspx</link><description>Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 02 Oct 2017 13:50:08 GMT</pubDate><dc:creator>Tash</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22631.aspx</link><description>&lt;div data-id="22629" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22629" 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="22629" 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="22629" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, October 2, 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-22629"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22627" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22627" 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="22627" 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="22627" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22627"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22618" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22618" 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="22618" 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="22618" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, October 2, 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-22618"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22614" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22614" 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="22614" 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="22614" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22614"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22612" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22612" 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="22612" 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="22612" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, October 2, 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-22612"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22610" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22610" 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="22610" 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="22610" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22610"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22606" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22606" 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="22606" 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="22606" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, September 29, 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-22606"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22605" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22605" 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="22605" 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="22605" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Friday, September 29, 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-22605"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506977140978"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;I would like to send a trigger for when a participant makes a wrong button press, and what they change their response to when they correct the error&lt;br/&gt;since there are two types of button press , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&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="22605"&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;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;&lt;br/&gt;No, this does not make sense. "EI" is not a response, and this responsemessage will never fire.&lt;br/&gt;&lt;br/&gt;The "500" merely designates the (minimum) duration of the stimulus; it's not really relevant in your case, because you have a /posttrialpause longer than that (1200ms). The TTL signal will remain raised for the entire duration of the postrialpause.&lt;br/&gt;&lt;br/&gt;Unrelated, but what you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in your recording. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port markeroff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22606"&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;On another note, I thinks I understand the function of this&amp;nbsp;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;&lt;br/&gt;However, now that it is included in my code, the trigger for event type no longer appears on the neuroscan graph, when the code is running, why is that the case? and how can I fix it. Thanks.&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="22610"&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;So, to clarify, when you send the marker2 trigger via your /stimulusframes, that signal will remain raised throughout the trial. This can interfere with the signals -- the response triggers -- that you send later. Hence it's normally a good idea to (1) send the event trigger (raise the signal), and then (2) turn it off (lower the signal) some time later to avoid any possible interference with the response triggers. As for it's not showing up anymore: It may be that &lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;&lt;br/&gt;is not raising the signal long enough. Try delaying the markeroff trigger a little longer, e.g.&lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff]&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22612"&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&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks a lot, that is much more clear now.&amp;nbsp;&amp;nbsp;&lt;br/&gt;I have two more questions on this topic:&lt;br/&gt;1) so with&amp;nbsp; a line&amp;nbsp; like&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff] in my code , I no longer need to send an stimulus onset trigger right?&lt;br/&gt;2)&amp;nbsp; How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&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="22614"&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; 1) so with&amp;nbsp; a line&amp;nbsp; like&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff] in my code , I no longer need to send an stimulus onset trigger right?&lt;br/&gt;&lt;br/&gt;But you _are_ sending an onset trigger aren't you? The onset trigger is marker2, I thought. Thus I'm not sure what your question is / where the confusion comes in.&lt;br/&gt;&lt;br/&gt;&amp;gt; 2)&amp;nbsp; How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&lt;br/&gt;&lt;br/&gt;This is not possible given how your script is set up.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22618"&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;But you _are_ sending an onset trigger aren't you? The onset trigger is marker2, I thought. Thus I'm not sure what your question is / where the confusion comes in.&lt;br/&gt;for IAT I found that the event type trigger and the stimulus onset trigger were confusing, atleast for me because the attributes and targets are&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ bgstim = (attributeAleft, attributeBright)&lt;br/&gt;&lt;br/&gt;example of block&lt;br/&gt;&amp;lt;block attributepractice&amp;gt;&lt;br/&gt;/ bgstim = (attributeAleft, attributeBright)&lt;br/&gt;/ trials = [1=instructions;2-31 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;while I personally think&amp;nbsp; marker 2 marks the onset of attribute B , my professor's argument has been that , it is hard to tell since the attribute label is always appearing on the screen following the&amp;nbsp;/ bgstim. So marker 2 might as well be an event type marker.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Looking at the neuroscan ouput, I personally think it can be both.&amp;nbsp;&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="22627"&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;No, marker2 is the one associated with attributeB -- that's how you set your code up.. It's what you send in attributeB trials, at the same time you display the attributeB stimulus. /bgstim has nothing to do with any of this.&lt;br/&gt;&lt;br/&gt;Per your first post in this thread, you send a different marker -- marker1 -- in attributeA trials.&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22629"&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;True, but the different combinations of the markers also helps me to know which block the participant was working on . Again thanks a lot.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 02 Oct 2017 13:50:08 GMT</pubDate><dc:creator>Tash</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22629.aspx</link><description>&lt;div data-id="22627" class="if-quote-wrapper" unselectable="on" data-guid="1506975863533"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22627" 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="22627" 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="22627" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22627"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22618" class="if-quote-wrapper" unselectable="on" data-guid="1506975863533"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22618" 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="22618" 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="22618" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, October 2, 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-22618"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22614" class="if-quote-wrapper" unselectable="on" data-guid="1506975863533"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22614" 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="22614" 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="22614" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22614"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22612" class="if-quote-wrapper" unselectable="on" data-guid="1506975863533"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22612" 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="22612" 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="22612" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, October 2, 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-22612"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22610" class="if-quote-wrapper" unselectable="on" data-guid="1506975863533"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22610" 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="22610" 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="22610" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22610"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22606" class="if-quote-wrapper" unselectable="on" data-guid="1506975863533"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22606" 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="22606" 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="22606" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, September 29, 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-22606"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22605" class="if-quote-wrapper" unselectable="on" data-guid="1506975863533"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22605" 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="22605" 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="22605" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Friday, September 29, 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-22605"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506975863533"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506975863533"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;I would like to send a trigger for when a participant makes a wrong button press, and what they change their response to when they correct the error&lt;br/&gt;since there are two types of button press , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&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="22605"&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;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;&lt;br/&gt;No, this does not make sense. "EI" is not a response, and this responsemessage will never fire.&lt;br/&gt;&lt;br/&gt;The "500" merely designates the (minimum) duration of the stimulus; it's not really relevant in your case, because you have a /posttrialpause longer than that (1200ms). The TTL signal will remain raised for the entire duration of the postrialpause.&lt;br/&gt;&lt;br/&gt;Unrelated, but what you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in your recording. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port markeroff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22606"&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;On another note, I thinks I understand the function of this&amp;nbsp;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;&lt;br/&gt;However, now that it is included in my code, the trigger for event type no longer appears on the neuroscan graph, when the code is running, why is that the case? and how can I fix it. Thanks.&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="22610"&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;So, to clarify, when you send the marker2 trigger via your /stimulusframes, that signal will remain raised throughout the trial. This can interfere with the signals -- the response triggers -- that you send later. Hence it's normally a good idea to (1) send the event trigger (raise the signal), and then (2) turn it off (lower the signal) some time later to avoid any possible interference with the response triggers. As for it's not showing up anymore: It may be that &lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;&lt;br/&gt;is not raising the signal long enough. Try delaying the markeroff trigger a little longer, e.g.&lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff]&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22612"&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&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks a lot, that is much more clear now.&amp;nbsp;&amp;nbsp;&lt;br/&gt;I have two more questions on this topic:&lt;br/&gt;1) so with&amp;nbsp; a line&amp;nbsp; like&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff] in my code , I no longer need to send an stimulus onset trigger right?&lt;br/&gt;2)&amp;nbsp; How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&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="22614"&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; 1) so with&amp;nbsp; a line&amp;nbsp; like&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff] in my code , I no longer need to send an stimulus onset trigger right?&lt;br/&gt;&lt;br/&gt;But you _are_ sending an onset trigger aren't you? The onset trigger is marker2, I thought. Thus I'm not sure what your question is / where the confusion comes in.&lt;br/&gt;&lt;br/&gt;&amp;gt; 2)&amp;nbsp; How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&lt;br/&gt;&lt;br/&gt;This is not possible given how your script is set up.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22618"&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;But you _are_ sending an onset trigger aren't you? The onset trigger is marker2, I thought. Thus I'm not sure what your question is / where the confusion comes in.&lt;br/&gt;for IAT I found that the event type trigger and the stimulus onset trigger were confusing, atleast for me because the attributes and targets are&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ bgstim = (attributeAleft, attributeBright)&lt;br/&gt;&lt;br/&gt;example of block&lt;br/&gt;&amp;lt;block attributepractice&amp;gt;&lt;br/&gt;/ bgstim = (attributeAleft, attributeBright)&lt;br/&gt;/ trials = [1=instructions;2-31 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;while I personally think&amp;nbsp; marker 2 marks the onset of attribute B , my professor's argument has been that , it is hard to tell since the attribute label is always appearing on the screen following the&amp;nbsp;/ bgstim. So marker 2 might as well be an event type marker.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Looking at the neuroscan ouput, I personally think it can be both.&amp;nbsp;&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="22627"&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;No, marker2 is the one associated with attributeB -- that's how you set your code up.. It's what you send in attributeB trials, at the same time you display the attributeB stimulus. /bgstim has nothing to do with any of this.&lt;br/&gt;&lt;br/&gt;Per your first post in this thread, you send a different marker -- marker1 -- in attributeA trials.&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Mon, 02 Oct 2017 13:27:34 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22627.aspx</link><description>&lt;div data-id="22618" class="if-quote-wrapper" unselectable="on" data-guid="1506974181920"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22618" 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="22618" 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="22618" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, October 2, 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-22618"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22614" class="if-quote-wrapper" unselectable="on" data-guid="1506974181920"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22614" 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="22614" 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="22614" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22614"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22612" class="if-quote-wrapper" unselectable="on" data-guid="1506974181920"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22612" 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="22612" 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="22612" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, October 2, 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-22612"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22610" class="if-quote-wrapper" unselectable="on" data-guid="1506974181920"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22610" 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="22610" 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="22610" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22610"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22606" class="if-quote-wrapper" unselectable="on" data-guid="1506974181920"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22606" 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="22606" 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="22606" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, September 29, 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-22606"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22605" class="if-quote-wrapper" unselectable="on" data-guid="1506974181920"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22605" 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="22605" 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="22605" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Friday, September 29, 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-22605"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506974181920"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506974181920"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;I would like to send a trigger for when a participant makes a wrong button press, and what they change their response to when they correct the error&lt;br/&gt;since there are two types of button press , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&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="22605"&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;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;&lt;br/&gt;No, this does not make sense. "EI" is not a response, and this responsemessage will never fire.&lt;br/&gt;&lt;br/&gt;The "500" merely designates the (minimum) duration of the stimulus; it's not really relevant in your case, because you have a /posttrialpause longer than that (1200ms). The TTL signal will remain raised for the entire duration of the postrialpause.&lt;br/&gt;&lt;br/&gt;Unrelated, but what you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in your recording. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port markeroff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22606"&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;On another note, I thinks I understand the function of this&amp;nbsp;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;&lt;br/&gt;However, now that it is included in my code, the trigger for event type no longer appears on the neuroscan graph, when the code is running, why is that the case? and how can I fix it. Thanks.&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="22610"&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;So, to clarify, when you send the marker2 trigger via your /stimulusframes, that signal will remain raised throughout the trial. This can interfere with the signals -- the response triggers -- that you send later. Hence it's normally a good idea to (1) send the event trigger (raise the signal), and then (2) turn it off (lower the signal) some time later to avoid any possible interference with the response triggers. As for it's not showing up anymore: It may be that &lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;&lt;br/&gt;is not raising the signal long enough. Try delaying the markeroff trigger a little longer, e.g.&lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff]&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22612"&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&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks a lot, that is much more clear now.&amp;nbsp;&amp;nbsp;&lt;br/&gt;I have two more questions on this topic:&lt;br/&gt;1) so with&amp;nbsp; a line&amp;nbsp; like&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff] in my code , I no longer need to send an stimulus onset trigger right?&lt;br/&gt;2)&amp;nbsp; How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&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="22614"&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; 1) so with&amp;nbsp; a line&amp;nbsp; like&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff] in my code , I no longer need to send an stimulus onset trigger right?&lt;br/&gt;&lt;br/&gt;But you _are_ sending an onset trigger aren't you? The onset trigger is marker2, I thought. Thus I'm not sure what your question is / where the confusion comes in.&lt;br/&gt;&lt;br/&gt;&amp;gt; 2)&amp;nbsp; How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&lt;br/&gt;&lt;br/&gt;This is not possible given how your script is set up.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22618"&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;But you _are_ sending an onset trigger aren't you? The onset trigger is marker2, I thought. Thus I'm not sure what your question is / where the confusion comes in.&lt;br/&gt;for IAT I found that the event type trigger and the stimulus onset trigger were confusing, atleast for me because the attributes and targets are&amp;nbsp;&amp;nbsp;&lt;br/&gt;/ bgstim = (attributeAleft, attributeBright)&lt;br/&gt;&lt;br/&gt;example of block&lt;br/&gt;&amp;lt;block attributepractice&amp;gt;&lt;br/&gt;/ bgstim = (attributeAleft, attributeBright)&lt;br/&gt;/ trials = [1=instructions;2-31 = random(attributeA, attributeB)]&lt;br/&gt;/ errormessage = true(error,200)&lt;br/&gt;/ responsemode = correct&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;while I personally think&amp;nbsp; marker 2 marks the onset of attribute B , my professor's argument has been that , it is hard to tell since the attribute label is always appearing on the screen following the&amp;nbsp;/ bgstim. So marker 2 might as well be an event type marker.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Looking at the neuroscan ouput, I personally think it can be both.&amp;nbsp;&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>Mon, 02 Oct 2017 13:04:43 GMT</pubDate><dc:creator>Tash</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22618.aspx</link><description>&lt;div data-id="22614" class="if-quote-wrapper" unselectable="on" data-guid="1506963786801"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22614" 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="22614" 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="22614" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22614"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22612" class="if-quote-wrapper" unselectable="on" data-guid="1506963786801"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22612" 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="22612" 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="22612" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, October 2, 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-22612"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22610" class="if-quote-wrapper" unselectable="on" data-guid="1506963786801"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22610" 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="22610" 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="22610" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22610"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22606" class="if-quote-wrapper" unselectable="on" data-guid="1506963786801"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22606" 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="22606" 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="22606" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, September 29, 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-22606"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22605" class="if-quote-wrapper" unselectable="on" data-guid="1506963786801"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22605" 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="22605" 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="22605" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Friday, September 29, 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-22605"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506963786801"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506963786801"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;I would like to send a trigger for when a participant makes a wrong button press, and what they change their response to when they correct the error&lt;br/&gt;since there are two types of button press , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&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="22605"&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;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;&lt;br/&gt;No, this does not make sense. "EI" is not a response, and this responsemessage will never fire.&lt;br/&gt;&lt;br/&gt;The "500" merely designates the (minimum) duration of the stimulus; it's not really relevant in your case, because you have a /posttrialpause longer than that (1200ms). The TTL signal will remain raised for the entire duration of the postrialpause.&lt;br/&gt;&lt;br/&gt;Unrelated, but what you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in your recording. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port markeroff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22606"&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;On another note, I thinks I understand the function of this&amp;nbsp;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;&lt;br/&gt;However, now that it is included in my code, the trigger for event type no longer appears on the neuroscan graph, when the code is running, why is that the case? and how can I fix it. Thanks.&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="22610"&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;So, to clarify, when you send the marker2 trigger via your /stimulusframes, that signal will remain raised throughout the trial. This can interfere with the signals -- the response triggers -- that you send later. Hence it's normally a good idea to (1) send the event trigger (raise the signal), and then (2) turn it off (lower the signal) some time later to avoid any possible interference with the response triggers. As for it's not showing up anymore: It may be that &lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;&lt;br/&gt;is not raising the signal long enough. Try delaying the markeroff trigger a little longer, e.g.&lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff]&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22612"&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&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks a lot, that is much more clear now.&amp;nbsp;&amp;nbsp;&lt;br/&gt;I have two more questions on this topic:&lt;br/&gt;1) so with&amp;nbsp; a line&amp;nbsp; like&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff] in my code , I no longer need to send an stimulus onset trigger right?&lt;br/&gt;2)&amp;nbsp; How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&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="22614"&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; 1) so with&amp;nbsp; a line&amp;nbsp; like&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff] in my code , I no longer need to send an stimulus onset trigger right?&lt;br/&gt;&lt;br/&gt;But you _are_ sending an onset trigger aren't you? The onset trigger is marker2, I thought. Thus I'm not sure what your question is / where the confusion comes in.&lt;br/&gt;&lt;br/&gt;&amp;gt; 2)&amp;nbsp; How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&lt;br/&gt;&lt;br/&gt;This is not possible given how your script is set up.&lt;br/&gt;</description><pubDate>Mon, 02 Oct 2017 10:04:39 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22614.aspx</link><description>&lt;div data-id="22612" class="if-quote-wrapper" unselectable="on" data-guid="1506960898728"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22612" 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="22612" 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="22612" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, October 2, 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-22612"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22610" class="if-quote-wrapper" unselectable="on" data-guid="1506960898728"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22610" 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="22610" 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="22610" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22610"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22606" class="if-quote-wrapper" unselectable="on" data-guid="1506960898728"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22606" 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="22606" 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="22606" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, September 29, 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-22606"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22605" class="if-quote-wrapper" unselectable="on" data-guid="1506960898728"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22605" 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="22605" 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="22605" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Friday, September 29, 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-22605"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506960898728"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506960898728"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;I would like to send a trigger for when a participant makes a wrong button press, and what they change their response to when they correct the error&lt;br/&gt;since there are two types of button press , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&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="22605"&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;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;&lt;br/&gt;No, this does not make sense. "EI" is not a response, and this responsemessage will never fire.&lt;br/&gt;&lt;br/&gt;The "500" merely designates the (minimum) duration of the stimulus; it's not really relevant in your case, because you have a /posttrialpause longer than that (1200ms). The TTL signal will remain raised for the entire duration of the postrialpause.&lt;br/&gt;&lt;br/&gt;Unrelated, but what you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in your recording. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port markeroff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22606"&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;On another note, I thinks I understand the function of this&amp;nbsp;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;&lt;br/&gt;However, now that it is included in my code, the trigger for event type no longer appears on the neuroscan graph, when the code is running, why is that the case? and how can I fix it. Thanks.&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="22610"&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;So, to clarify, when you send the marker2 trigger via your /stimulusframes, that signal will remain raised throughout the trial. This can interfere with the signals -- the response triggers -- that you send later. Hence it's normally a good idea to (1) send the event trigger (raise the signal), and then (2) turn it off (lower the signal) some time later to avoid any possible interference with the response triggers. As for it's not showing up anymore: It may be that &lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;&lt;br/&gt;is not raising the signal long enough. Try delaying the markeroff trigger a little longer, e.g.&lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff]&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22612"&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&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks a lot, that is much more clear now.&amp;nbsp;&amp;nbsp;&lt;br/&gt;I have two more questions on this topic:&lt;br/&gt;1) so with&amp;nbsp; a line&amp;nbsp; like&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff] in my code , I no longer need to send an stimulus onset trigger right?&lt;br/&gt;2)&amp;nbsp; How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 02 Oct 2017 09:19:13 GMT</pubDate><dc:creator>Tash</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22612.aspx</link><description>&lt;div data-id="22610" class="if-quote-wrapper" unselectable="on" data-guid="1506959604486"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22610" 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="22610" 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="22610" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Monday, October 2, 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-22610"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22606" class="if-quote-wrapper" unselectable="on" data-guid="1506959604486"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22606" 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="22606" 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="22606" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, September 29, 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-22606"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22605" class="if-quote-wrapper" unselectable="on" data-guid="1506959604486"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22605" 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="22605" 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="22605" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Friday, September 29, 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-22605"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506959604486"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506959604486"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;I would like to send a trigger for when a participant makes a wrong button press, and what they change their response to when they correct the error&lt;br/&gt;since there are two types of button press , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&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="22605"&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;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;&lt;br/&gt;No, this does not make sense. "EI" is not a response, and this responsemessage will never fire.&lt;br/&gt;&lt;br/&gt;The "500" merely designates the (minimum) duration of the stimulus; it's not really relevant in your case, because you have a /posttrialpause longer than that (1200ms). The TTL signal will remain raised for the entire duration of the postrialpause.&lt;br/&gt;&lt;br/&gt;Unrelated, but what you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in your recording. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port markeroff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22606"&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;On another note, I thinks I understand the function of this&amp;nbsp;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;&lt;br/&gt;However, now that it is included in my code, the trigger for event type no longer appears on the neuroscan graph, when the code is running, why is that the case? and how can I fix it. Thanks.&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="22610"&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;So, to clarify, when you send the marker2 trigger via your /stimulusframes, that signal will remain raised throughout the trial. This can interfere with the signals -- the response triggers -- that you send later. Hence it's normally a good idea to (1) send the event trigger (raise the signal), and then (2) turn it off (lower the signal) some time later to avoid any possible interference with the response triggers. As for it's not showing up anymore: It may be that &lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;&lt;br/&gt;is not raising the signal long enough. Try delaying the markeroff trigger a little longer, e.g.&lt;br/&gt;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 5=markeroff]&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;</description><pubDate>Mon, 02 Oct 2017 08:56:58 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22610.aspx</link><description>&lt;div data-id="22606" class="if-quote-wrapper" unselectable="on" data-guid="1506940126270"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22606" 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="22606" 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="22606" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, September 29, 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-22606"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22605" class="if-quote-wrapper" unselectable="on" data-guid="1506940126270"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22605" 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="22605" 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="22605" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Friday, September 29, 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-22605"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506940126270"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506940126270"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;I would like to send a trigger for when a participant makes a wrong button press, and what they change their response to when they correct the error&lt;br/&gt;since there are two types of button press , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&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="22605"&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;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;&lt;br/&gt;No, this does not make sense. "EI" is not a response, and this responsemessage will never fire.&lt;br/&gt;&lt;br/&gt;The "500" merely designates the (minimum) duration of the stimulus; it's not really relevant in your case, because you have a /posttrialpause longer than that (1200ms). The TTL signal will remain raised for the entire duration of the postrialpause.&lt;br/&gt;&lt;br/&gt;Unrelated, but what you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in your recording. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port markeroff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22606"&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;On another note, I thinks I understand the function of this&amp;nbsp;&lt;br/&gt;&amp;nbsp;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;&lt;br/&gt;However, now that it is included in my code, the trigger for event type no longer appears on the neuroscan graph, when the code is running, why is that the case? and how can I fix it. Thanks.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 02 Oct 2017 03:31:30 GMT</pubDate><dc:creator>Tash</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22609.aspx</link><description>&lt;div data-id="22606" class="if-quote-wrapper" unselectable="on" data-guid="1506917787161"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22606" 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="22606" 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="22606" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, September 29, 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-22606"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22605" class="if-quote-wrapper" unselectable="on" data-guid="1506917787161"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22605" 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="22605" 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="22605" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Friday, September 29, 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-22605"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506917787161"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506917787161"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;So since u have suggested this&amp;nbsp; , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&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="22605"&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;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;&lt;br/&gt;No, this does not make sense. "EI" is not a response, and this responsemessage will never fire.&lt;br/&gt;&lt;br/&gt;The "500" merely designates the (minimum) duration of the stimulus; it's not really relevant in your case, because you have a /posttrialpause longer than that (1200ms). The TTL signal will remain raised for the entire duration of the postrialpause.&lt;br/&gt;&lt;br/&gt;Unrelated, but what you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in&amp;nbsp;&lt;span style="font-size: 13.3333px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;your recording. I.e.&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port markeroff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22606"&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;&lt;br/&gt;Thank you, I have implemented the changes and checked the code, it works. Thanks again.&lt;br/&gt;&lt;br/&gt;I would like to clarify a TWO points &lt;br/&gt;1) So since u have suggested this:&amp;nbsp;&lt;br/&gt;&amp;nbsp;"you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in&amp;nbsp;&amp;nbsp;your recording. I.e." &lt;br/&gt;does that mean I do not need to send a trigger for stimulus onset?&lt;br/&gt;&lt;br/&gt;2) How do I send a trigger for incorrect responses, and how can I code a trigger that will show the correct response following an incorrect response?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Sun, 01 Oct 2017 21:23:44 GMT</pubDate><dc:creator>Tash</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22606.aspx</link><description>&lt;div data-id="22605" class="if-quote-wrapper" unselectable="on" data-guid="1506741173424"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22605" 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="22605" 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="22605" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Friday, September 29, 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-22605"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506741173424"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506741173424"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;I would like to send a trigger for when a participant makes a wrong button press, and what they change their response to when they correct the error&lt;br/&gt;since there are two types of button press , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&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="22605"&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;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;&lt;br/&gt;No, this does not make sense. "EI" is not a response, and this responsemessage will never fire.&lt;br/&gt;&lt;br/&gt;The "500" merely designates the (minimum) duration of the stimulus; it's not really relevant in your case, because you have a /posttrialpause longer than that (1200ms). The TTL signal will remain raised for the entire duration of the postrialpause.&lt;br/&gt;&lt;br/&gt;Unrelated, but what you'll also want to do is "turn off" the stimulus onset marker at some point, so that you get a clear separation between the onset marker and the response&amp;nbsp; markers in your recording. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2; 3=markeroff]&lt;br/&gt;/ beginresponseframe = 1&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port markeroff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;</description><pubDate>Fri, 29 Sep 2017 20:18:46 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22605.aspx</link><description>&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506739334175"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506739334175"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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 am trying to make sense of the code , what is the 500 for?&lt;br/&gt;My IAT code has a feedback when the input is incorrect, so &amp;nbsp;I am also interested in clearly marking when there has been an error.&lt;br/&gt;I would like to send a trigger for when a participant makes a wrong button press, and what they change their response to when they correct the error&lt;br/&gt;since there are two types of button press , this is what I have come up with, I have not tested it yet .&amp;nbsp;&lt;br/&gt;This is an example of when a participants &amp;nbsp;makes an incorrect button press such as "E", gets a feedback and then makes the correct button press of "I"&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;/ items =("00000111")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerI&amp;gt;&lt;br/&gt;/ items =("00001000")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port marker EI&amp;gt;&lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeB&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("I")&lt;br/&gt;/ stimulusframes = [1 = attributeB,marker2]&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;br/&gt;/ responsemessage = ("I", markerI, 500)&lt;br/&gt;/ responsemessage = ("EI", markerEI, 500)&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Does this make any sense?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 29 Sep 2017 20:03:19 GMT</pubDate><dc:creator>Tash</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22560.aspx</link><description>&lt;div data-id="22557" class="if-quote-wrapper" unselectable="on" data-guid="1506358366799"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22557" 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="22557" 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="22557" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, September 25, 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-22557"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506358366799"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22557"&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;Thanks, I will give it a try.</description><pubDate>Mon, 25 Sep 2017 09:53:03 GMT</pubDate><dc:creator>Tash</dc:creator></item><item><title>RE: Sending a trigger for  stimulus onset and button press</title><link>https://forums.millisecond.com/Topic22557.aspx</link><description>&lt;div data-id="22556" class="if-quote-wrapper" unselectable="on" data-guid="1506356366405"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22556" 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="22556" 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="22556" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Tash - Sunday, September 24, 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-22556"&gt;&lt;div class="if-quote-message-margin"&gt;Hi, can anyone please help. I need help on how I can code sending trigger for stimulus onset and button press for IMPLICIT ASSOCIATION TEST. I have already found a way to send trigger for event types &amp;nbsp;such as TARGET AND ATTRIBUTE THEN COMPATIBLE AND INCOMPATIBLE TRIAL .However, I have no idea how to write a code for button press&lt;br/&gt;so here is an example of one trigger that I have coded and it works , it is for the event type&lt;br/&gt;&lt;br/&gt;port settings&lt;br/&gt;***********************************************************************&lt;br/&gt;&amp;lt;port marker1&amp;gt;&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;this trigger &amp;nbsp;"/ stimulusframes = [1 = attributeA,marker1]" marks attribute A when its on the left.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="22556"&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;Define additional &amp;lt;port&amp;gt; elements for the response triggers e.g&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerE&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port markerA&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and then "display" them via the trial's /responsemessage attributes:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial attributeA&amp;gt;&lt;br/&gt;/ validresponse = ("E", "I")&lt;br/&gt;/ correctresponse = ("E")&lt;br/&gt;/ stimulusframes = [1 = attributeA,marker1]&lt;br/&gt;&lt;strong&gt;/ responsemessage = ("A", markerA, 500)&lt;br/&gt;/ responsemessage = ("E", markerE, 500)&lt;/strong&gt;&lt;br/&gt;/ posttrialpause = 1200&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Mon, 25 Sep 2017 09:26:15 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>