﻿<?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 2.0  » How to send response-locked TTL signals?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 01 May 2026 07:26:53 GMT</lastBuildDate><ttl>20</ttl><item><title>How to send response-locked TTL signals?</title><link>https://forums.millisecond.com/Topic1721.aspx</link><description>&lt;p&gt;Can anyone please tell me what is the correct method of using Inquisit 2.0 to send response-locked TTL signals? I'm doing EEG research, and I need to send a signal to my EEG-acquisition software&amp;nbsp;indicating when participants respond (I'm able to send stimulus-locked signals with no problem).&lt;/p&gt;
&lt;p&gt;Sincere thanks,&lt;/p&gt;
&lt;p&gt;Tony Freitas&lt;/p&gt;</description><pubDate>Tue, 23 Sep 2014 18:56:58 GMT</pubDate><dc:creator>TonyF</dc:creator></item><item><title>RE: How to send response-locked TTL signals?</title><link>https://forums.millisecond.com/Topic14334.aspx</link><description>Hi Tony,&lt;br/&gt;&lt;br/&gt;I'm trying to do the same thing with my paradigm. I tried the above suggestions but for some reason it didn't work for me.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Here's a section of mine. Do you have any suggestions?&lt;br/&gt;********************************************************************************&lt;br/&gt;MARKERS&lt;br/&gt;********************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;port pressmarker&amp;gt;&lt;br/&gt;/ port = lpt1&lt;br/&gt;/ subport = data &lt;br/&gt;/ items = ("00001001")&lt;br/&gt;/ erase = true ("00000000")&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;********************************************************************************&lt;br/&gt;TRIALS&lt;br/&gt;********************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial green1&amp;gt;&lt;br/&gt;/ trialduration = 1500&lt;br/&gt;/ stimulustimes = [0= green; 0= greenmarker]&lt;br/&gt;/ validresponse = (" ",noresponse,"p")&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;/ responsemessage = (" ", pressmarker, 100)&lt;br/&gt;/ responsetrial = (" ",correctfeedback1)&lt;br/&gt;/ responsetrial = (noresponse,incorrectfeedback1)&lt;br/&gt;/ responsetrial = ("p",pausetrial)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 23 Sep 2014 18:56:58 GMT</pubDate><dc:creator>ChrisS</dc:creator></item><item><title>RE: How to send response-locked TTL signals?</title><link>https://forums.millisecond.com/Topic1957.aspx</link><description>&lt;p&gt;Dear Dave and Sean,&lt;/p&gt;
&lt;p&gt;Thanks very much for the suggestions. The signals are going out fine now. My problem was that I was sending my own clear signal between other signals (because I have my system set up to use 11110000 as clear); this step was needed for other software I've used, but somehow it interfered with things in this case.&lt;/p&gt;
&lt;p&gt;Anyway, my stimulus-locked and reponse-locked signals are going out fine now, and thanks again for the suggestions,&lt;/p&gt;
&lt;p&gt;Tony&lt;/p&gt;</description><pubDate>Fri, 19 Sep 2008 13:16:41 GMT</pubDate><dc:creator>TonyF</dc:creator></item><item><title>RE: How to send response-locked TTL signals?</title><link>https://forums.millisecond.com/Topic1740.aspx</link><description>&lt;p&gt;Tony, &lt;/p&gt;
&lt;p&gt;I think Dave's approach is the best way to send response-locked TTL signals. &lt;/p&gt;
&lt;p&gt;Strange that your signals are&amp;nbsp;appearing sporadically. Perhaps this is a timing issue - specifically, is it possible the pulses are too short to be detected by whatever device is monitoring them? To check this, try the following modifications:&lt;/p&gt;
&lt;p&gt;&amp;lt;port EEGsignal&amp;gt;&lt;span class=code&gt;&lt;br&gt;/ port = LPT1&lt;br&gt;/ subport = data&lt;br&gt;/ items = ("00000001")&lt;br&gt;/ erase = true("00000000")&lt;br&gt;&amp;lt;/port&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span class=code&gt;&amp;lt;trial EEGtrial&amp;gt;&lt;br&gt;/ stimulusframes = [1=somepicture]&lt;br&gt;/ validresponse = ("a", "b")&lt;br&gt;/ responsemessage = ("a", EEGsignal, 100)&lt;br&gt;/ responsemessage = ("b", EEGsignal, 100)&lt;br&gt;&amp;lt;/trial&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=code&gt;Note that I added the /erase command to the &amp;lt;port&amp;gt; definition just to be explicit - by defaut the port should be set to zero when it's erased.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=code&gt;I also changed the duration of the signal&amp;nbsp;to 100 milliseconds rather the 0. If set to 0, the signal is presented for the remainder of the trial, which will actually be 0 ms unless you've set a posttrialpause.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=code&gt;Try these modifications and let me know if that helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=code&gt;Regards,&lt;br&gt;Sean&lt;/span&gt;&lt;span class=code&gt;&lt;/p&gt;&lt;/span&gt;
</description><pubDate>Tue, 22 Jul 2008 11:04:08 GMT</pubDate><dc:creator>seandr</dc:creator></item><item><title>How to send response-locked TTL signals?</title><link>https://forums.millisecond.com/Topic1739.aspx</link><description>&lt;p&gt;Has anyone out there ever successfully sent a response-locked TTL signal via Inquisit 2.0? If&amp;nbsp;so, the sharing of a working script&amp;nbsp;that will&amp;nbsp;do so&amp;nbsp;would be most appreciated.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Sincere thanks to Dave for taking the time to make the above suggestion. I gave this a try, and I also previously tried something similar, and also&amp;nbsp;the errorfeedback/correctfeedback functions, but these have not worked for me. The strange thing is that a response-locked signal will go out sometimes, but only extremely rarely (I am able to send stimulus-locked signals without any problem). So, before I try to work any further on this, I am wondering if there is any guidance available as to what is generally seen as the best way to send a response-locked TTL signal via Inquisit. &lt;/p&gt;
&lt;p&gt;Thanks in advance for any advice on this,&lt;/p&gt;
&lt;p&gt;Tony&lt;/p&gt;</description><pubDate>Tue, 22 Jul 2008 10:43:07 GMT</pubDate><dc:creator>TonyF</dc:creator></item><item><title>RE: How to send response-locked TTL signals?</title><link>https://forums.millisecond.com/Topic1722.aspx</link><description>Hi Tony,&lt;br&gt;&lt;br&gt;as I've never actually done this in Inquisit, I'm kinda venturing on unknown territory here, but I'll tell you how I'd do it, anyway...;-)&amp;nbsp; First, I'm suspecting that communication with your EEG is done via the computer's LPT port. I also suspect that you've already defined a working &amp;lt;port&amp;gt; element in Inquisit. As you know, the &amp;lt;port&amp;gt; element essentially behaves like any other stimulus (picture, text, etc.). So, in your trials, you could specify some /responsemessage attributes to "present" the respective port stimulus (thus sending a signal to your EEG as soon as a participant has responded). For example:&lt;br&gt;&lt;br&gt;&amp;lt;port EEGsignal&amp;gt;&lt;span class="code"&gt;&lt;br&gt;/ port = LPT1&lt;br&gt;/ subport = data&lt;br&gt;/ items = ("00000001")&lt;br&gt;&amp;lt;/port&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span class="code"&gt;&amp;lt;trial EEGtrial&amp;gt;&lt;br&gt;/ stimulusframes = [1=somepicture]&lt;br&gt;/ validresponse = ("a", "b")&lt;br&gt;/ responsemessage = ("a", EEGsignal, 0)&lt;br&gt;/ responsemessage = ("b", EEGsignal, 0)&lt;br&gt;&amp;lt;/trial&amp;gt;&lt;br&gt;&lt;br&gt;I'm pretty sure there are numerous other ways to do this, but I think my suggestion might work for you. Please report back!&lt;br&gt;&lt;br&gt;Best,&lt;br&gt;~Dave&lt;br&gt;&lt;/span&gt;</description><pubDate>Wed, 16 Jul 2008 02:52:12 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>