﻿<?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  » Inquisit to trigger TMS</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 30 May 2026 18:58:09 GMT</lastBuildDate><ttl>20</ttl><item><title>Inquisit to trigger TMS</title><link>https://forums.millisecond.com/Topic26527.aspx</link><description>Hi,&lt;br/&gt;I'd like to trigger a transcranial magnetic stimulation (TMS) device using an Inquisit TTL signal. I've successfully used a variant of the below code to send signals to an EEG amplifier (TMSi Polybench). Unfortunately, I haven't had any luck so far with the TMS trigger. The TMS device requires the following inputs:&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;TMS MagPro Trigger Input&lt;/strong&gt;&lt;br/&gt;DSUB 9 pin Female&lt;br/&gt;Pin 1: Trigger Input&lt;br/&gt;Pin 2: Trigger Output&lt;br/&gt;Pin 3: Ground. (Reference) &lt;br/&gt;Pulse width &amp;gt; 5µs&lt;br/&gt;TTL + CMOS levels accepted&lt;br/&gt;Input Impedance &amp;gt; 10 kΩ&lt;br/&gt;Default: Falling edge/Rising edge (user defined)&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;My Inquisit script attempt (relevant sections only):&lt;br/&gt;&lt;/strong&gt;&amp;lt;port triggersignal&amp;gt;&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("11111111")&lt;br/&gt;/ erase = ("00000000")&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial test&amp;gt;&lt;br/&gt;/ stimulustimes = [0=start; 1000 = trigger, triggersignal]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 5000&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Any help would be very much appreciated!</description><pubDate>Tue, 05 Mar 2019 19:43:33 GMT</pubDate><dc:creator>snikolin</dc:creator></item><item><title>RE: Inquisit to trigger TMS</title><link>https://forums.millisecond.com/Topic26528.aspx</link><description>&lt;div data-id="26527" class="if-quote-wrapper" unselectable="on" data-guid="1551842319415"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26527" 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="26527" 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="26527" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;snikolin - Tuesday, March 5, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26527"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;I'd like to trigger a transcranial magnetic stimulation (TMS) device using an Inquisit TTL signal. I've successfully used a variant of the below code to send signals to an EEG amplifier (TMSi Polybench). Unfortunately, I haven't had any luck so far with the TMS trigger. The TMS device requires the following inputs:&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;TMS MagPro Trigger Input&lt;/strong&gt;&lt;br/&gt;DSUB 9 pin Female&lt;br/&gt;Pin 1: Trigger Input&lt;br/&gt;Pin 2: Trigger Output&lt;br/&gt;Pin 3: Ground. (Reference) &lt;br/&gt;Pulse width &amp;gt; 5µs&lt;br/&gt;TTL + CMOS levels accepted&lt;br/&gt;Input Impedance &amp;gt; 10 kΩ&lt;br/&gt;Default: Falling edge/Rising edge (user defined)&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;My Inquisit script attempt (relevant sections only):&lt;br/&gt;&lt;/strong&gt;&amp;lt;port triggersignal&amp;gt;&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("11111111")&lt;br/&gt;/ erase = ("00000000")&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial test&amp;gt;&lt;br/&gt;/ stimulustimes = [0=start; 1000 = trigger, triggersignal]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 5000&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Any help would be very much appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="26527"&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 can't really find sufficient documentation for the MagPro. Based on the little that's there, you can either try connecting your computer's serial port (COM, not LPT) to the MagPro's trigger input port, or you need to use the parallel port with a suitable adapter cable. &lt;br/&gt;&lt;br/&gt;The specs you posted read like the system is expecting a pulse on a single line on its DSUB connector. You need may need an adapter that connects your computer's parallel port to the input pin (#1) on MagPro's DSUB connector. Then you can raise and lower signal on the parallel port's corresponding pin as needed to send a pulse on that line. I.e. something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial test&amp;gt;&lt;br/&gt;/ stimulustimes = [0=start; 1000 = trigger, raisesignal; 1050=lowersignal]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 5000&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port raisesignal&amp;gt;&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000001")&lt;br/&gt;/ erase =false&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port lowersignal&amp;gt;&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ erase =false&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;However, as I said, the documentation available is a bit lacking, so take the above with a grain of salt and consult with your local technician before wiring things up.&lt;br/&gt;</description><pubDate>Tue, 05 Mar 2019 19:43:33 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>