﻿<?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  » Programming the duration of parallel port trigger</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 22 Jun 2026 07:36:48 GMT</lastBuildDate><ttl>20</ttl><item><title>Programming the duration of parallel port trigger</title><link>https://forums.millisecond.com/Topic21097.aspx</link><description>&lt;div&gt;Dear all,&lt;br/&gt;&lt;br/&gt;I have a question concerning programming the duration of a trigger, which is sent to a parallel port.&lt;br/&gt;&lt;br/&gt;This is my script:&lt;br/&gt;&amp;lt;trial T1&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = Rahmen1, Rahmen2, Situation1, Frage1; 4000 = TriggerKSatz; 4100 = Frage1.1]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;&amp;lt;/trial&amp;gt; &lt;br/&gt;Does this mean, that the trigger is sent after 4 seconds and is presented for 100ms to the parallel port?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial T1.1&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = TriggerControl; 101 = Erk1.1; 4900 = TriggerControlE]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;&amp;lt;/trial&amp;gt; &lt;br/&gt;Does this mean, that after 1 second "triggerControl" is sent, which lasts 100ms?&lt;br/&gt;And after 4900 "triggerControlE" is send, which is also presented for 100ms?&lt;br/&gt;&lt;br/&gt;Thank you a lot for your help.&lt;br/&gt;Best whishes! &lt;br/&gt;&lt;br/&gt;&lt;/div&gt;</description><pubDate>Wed, 15 Mar 2017 09:17:39 GMT</pubDate><dc:creator>Orchid</dc:creator></item><item><title>RE: Programming the duration of parallel port trigger</title><link>https://forums.millisecond.com/Topic21100.aspx</link><description>&lt;div data-id="21097" class="if-quote-wrapper" unselectable="on" data-guid="1489594409553"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21097" 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="21097" 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="21097" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Orchid - Wednesday, March 15, 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-21097"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div&gt;Dear all,&lt;br/&gt;&lt;br/&gt;I have a question concerning programming the duration of a trigger, which is sent to a parallel port.&lt;br/&gt;&lt;br/&gt;This is my script:&lt;br/&gt;&amp;lt;trial T1&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = Rahmen1, Rahmen2, Situation1, Frage1; 4000 = TriggerKSatz; 4100 = Frage1.1]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;&amp;lt;/trial&amp;gt; &lt;br/&gt;Does this mean, that the trigger is sent after 4 seconds and is presented for 100ms to the parallel port?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;trial T1.1&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = TriggerControl; 101 = Erk1.1; 4900 = TriggerControlE]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;&amp;lt;/trial&amp;gt; &lt;br/&gt;Does this mean, that after 1 second "triggerControl" is sent, which lasts 100ms?&lt;br/&gt;And after 4900 "triggerControlE" is send, which is also presented for 100ms?&lt;br/&gt;&lt;br/&gt;Thank you a lot for your help.&lt;br/&gt;Best whishes! &lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21097"&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; Does this mean, that the trigger is sent after 4 seconds and is presented for 100ms to the parallel port?&lt;br/&gt;&lt;br/&gt;No. It means the trigger starts at 4000ms into the stimulus presentation sequence. It will *remain* raised for the remainder of the trial, not presented for only 100ms. If you wanted to end the trigger after 100ms, you would have to explicitly zero the bits as in&lt;br/&gt;&lt;br/&gt;/ stimulustimes = [0 = Rahmen1, Rahmen2, Situation1, Frage1; 4000 = TriggerKSatz; 4100 = Frage1.1,&lt;strong&gt; allbitstolow&lt;/strong&gt;]&lt;br/&gt;&lt;br/&gt;with&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&amp;lt;port allbitstolow&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;...&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;gt; Does this mean, that after 1 second "triggerControl" is sent, which lasts 100ms?&lt;br/&gt;&amp;gt; And after 4900 "triggerControlE" is send, which is also presented for 100ms?&lt;br/&gt;&lt;br/&gt;Again no, as per the above. You need to explicitly lower the bits after 100ms.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 15 Mar 2017 09:17:39 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>