﻿<?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 6  » Ports kind of working but only after running Matlab, any ideas?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 14 Sep 2026 02:57:59 GMT</lastBuildDate><ttl>20</ttl><item><title>Ports kind of working but only after running Matlab, any ideas?</title><link>https://forums.millisecond.com/Topic35462.aspx</link><description>Hi Inquisit Team,&lt;br/&gt;&lt;br/&gt;We've gotten Inquisit to send parallel port commands to our EEG system using the following code.&amp;nbsp; However, we discovered during troubleshooting that the port is only 'activated' correctly after running a Matlab script that outputs to the same parallel port.&amp;nbsp; I'm thinking that Matlab has some configuration setting that we are not thinking of that is getting saved.&amp;nbsp; Any help is appreciated.&amp;nbsp; The trigger needs to be configured for a BIOsemi EEG setup with: &lt;br/&gt;&lt;br/&gt;Data Rate: 115200&lt;br/&gt;Data Bits: 8&lt;br/&gt;Stop Bits: 1&lt;br/&gt;Parity: none&lt;br/&gt;Flow Control: off&lt;br/&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm" id="if_insertedNode_1686934088840"&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm"&gt;https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Again, we got it to work with Inquisit, so it's not a problem with BioSemi or cables or anything like that, but only after running Matlab to do (presumably the exact same thing) first.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;defaults&amp;gt;&lt;br/&gt;&amp;nbsp; combaudrates = (COM4 = 115200)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port sendtrialstart&amp;gt;&lt;br/&gt;&amp;nbsp; port = COM4&lt;br/&gt;&amp;nbsp;items = (10)&lt;br/&gt;&amp;nbsp;subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial experiment&amp;gt;&lt;br/&gt;/ stimulustimes = [ sendtrialstart, *other stimuli*]&lt;br/&gt;&amp;lt;/trial&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also as a plug for Inquisit vs Psychtoolbox, the timing jitter for Inquisit was far superior on our setup, coming in at ~1-2ms of jitter compared to 20-40ms for PTB.&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Andrew&lt;br/&gt;</description><pubDate>Fri, 16 Jun 2023 19:19:30 GMT</pubDate><dc:creator>AndrewPapale</dc:creator></item><item><title>RE: Ports kind of working but only after running Matlab, any ideas?</title><link>https://forums.millisecond.com/Topic35465.aspx</link><description>&lt;blockquote data-id="35464" class="if-quote-wrapper" unselectable="on" data-guid="1686942560811" id="if_insertedNode_1686942559603" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35464" 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="35464" 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="35464" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;AndrewPapale - 6/16/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35464"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35463" class="if-quote-wrapper" unselectable="on" data-guid="1686942560811" id="if_insertedNode_1686942412558" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35463" 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="35463" 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="35463" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/16/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35463"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35462" class="if-quote-wrapper" unselectable="on" data-guid="1686942560811" id="if_insertedNode_1686941792702" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35462" 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="35462" 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="35462" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;AndrewPapale - 6/16/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35462"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Inquisit Team,&lt;br/&gt;&lt;br/&gt;We've gotten Inquisit to send parallel port commands to our EEG system using the following code.&amp;nbsp; However, we discovered during troubleshooting that the port is only 'activated' correctly after running a Matlab script that outputs to the same parallel port.&amp;nbsp; I'm thinking that Matlab has some configuration setting that we are not thinking of that is getting saved.&amp;nbsp; Any help is appreciated.&amp;nbsp; The trigger needs to be configured for a BIOsemi EEG setup with: &lt;br/&gt;&lt;br/&gt;Data Rate: 115200&lt;br/&gt;Data Bits: 8&lt;br/&gt;Stop Bits: 1&lt;br/&gt;Parity: none&lt;br/&gt;Flow Control: off&lt;br/&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm" id="if_insertedNode_1686934088840"&gt;&lt;/a&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm"&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm"&gt;https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Again, we got it to work with Inquisit, so it's not a problem with BioSemi or cables or anything like that, but only after running Matlab to do (presumably the exact same thing) first.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;defaults&amp;gt;&lt;br/&gt;&amp;nbsp; combaudrates = (COM4 = 115200)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port sendtrialstart&amp;gt;&lt;br/&gt;&amp;nbsp; port = COM4&lt;br/&gt;&amp;nbsp;items = (10)&lt;br/&gt;&amp;nbsp;subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial experiment&amp;gt;&lt;br/&gt;/ stimulustimes = [ sendtrialstart, *other stimuli*]&lt;br/&gt;&amp;lt;/trial&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also as a plug for Inquisit vs Psychtoolbox, the timing jitter for Inquisit was far superior on our setup, coming in at ~1-2ms of jitter compared to 20-40ms for PTB.&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Andrew&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35462"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;What's the exact Inquisit build you are using? See Tools -&amp;gt; System Information.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35463"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Inquisit 6.6.1 64 bit build 6581 on Windows NT 10.0&lt;a class="if-quote-goto quote-link" href="#" data-id="35464"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Hmm, that's weird. I recall there being an issue with some FTDI chip-based USB-to-serial devices (the BioSemi USB interface is FTDI-based) in some earlier versions / builds, along the lines of what you described (only sending when initialized by some other application prior), but not with the current build (the one you have installed).&lt;br/&gt;&lt;br/&gt;Are you using the default Windows driver or do you have the one provided by FTDI installed (linked at the very bottom of &lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm"&gt;https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm&lt;/a&gt; )? It may be worth trying the other one, but other than that I'm afraid the only immediate workaround is the one you've been using.&lt;br/&gt;</description><pubDate>Fri, 16 Jun 2023 19:19:30 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Ports kind of working but only after running Matlab, any ideas?</title><link>https://forums.millisecond.com/Topic35464.aspx</link><description>&lt;blockquote data-id="35463" class="if-quote-wrapper" unselectable="on" data-guid="1686942413868" id="if_insertedNode_1686942412558" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35463" 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="35463" 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="35463" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/16/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35463"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="35462" class="if-quote-wrapper" unselectable="on" data-guid="1686942413868" id="if_insertedNode_1686941792702" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35462" 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="35462" 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="35462" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;AndrewPapale - 6/16/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35462"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Inquisit Team,&lt;br/&gt;&lt;br/&gt;We've gotten Inquisit to send parallel port commands to our EEG system using the following code.&amp;nbsp; However, we discovered during troubleshooting that the port is only 'activated' correctly after running a Matlab script that outputs to the same parallel port.&amp;nbsp; I'm thinking that Matlab has some configuration setting that we are not thinking of that is getting saved.&amp;nbsp; Any help is appreciated.&amp;nbsp; The trigger needs to be configured for a BIOsemi EEG setup with: &lt;br/&gt;&lt;br/&gt;Data Rate: 115200&lt;br/&gt;Data Bits: 8&lt;br/&gt;Stop Bits: 1&lt;br/&gt;Parity: none&lt;br/&gt;Flow Control: off&lt;br/&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm" id="if_insertedNode_1686934088840"&gt;&lt;/a&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm"&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm"&gt;https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Again, we got it to work with Inquisit, so it's not a problem with BioSemi or cables or anything like that, but only after running Matlab to do (presumably the exact same thing) first.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;defaults&amp;gt;&lt;br/&gt;&amp;nbsp; combaudrates = (COM4 = 115200)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port sendtrialstart&amp;gt;&lt;br/&gt;&amp;nbsp; port = COM4&lt;br/&gt;&amp;nbsp;items = (10)&lt;br/&gt;&amp;nbsp;subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial experiment&amp;gt;&lt;br/&gt;/ stimulustimes = [ sendtrialstart, *other stimuli*]&lt;br/&gt;&amp;lt;/trial&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also as a plug for Inquisit vs Psychtoolbox, the timing jitter for Inquisit was far superior on our setup, coming in at ~1-2ms of jitter compared to 20-40ms for PTB.&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Andrew&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35462"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;What's the exact Inquisit build you are using? See Tools -&amp;gt; System Information.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35463"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Inquisit 6.6.1 64 bit build 6581 on Windows NT 10.0</description><pubDate>Fri, 16 Jun 2023 19:07:09 GMT</pubDate><dc:creator>AndrewPapale</dc:creator></item><item><title>RE: Ports kind of working but only after running Matlab, any ideas?</title><link>https://forums.millisecond.com/Topic35463.aspx</link><description>&lt;blockquote data-id="35462" class="if-quote-wrapper" unselectable="on" data-guid="1686941793613" id="if_insertedNode_1686941792702" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35462" 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="35462" 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="35462" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;AndrewPapale - 6/16/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35462"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi Inquisit Team,&lt;br/&gt;&lt;br/&gt;We've gotten Inquisit to send parallel port commands to our EEG system using the following code.&amp;nbsp; However, we discovered during troubleshooting that the port is only 'activated' correctly after running a Matlab script that outputs to the same parallel port.&amp;nbsp; I'm thinking that Matlab has some configuration setting that we are not thinking of that is getting saved.&amp;nbsp; Any help is appreciated.&amp;nbsp; The trigger needs to be configured for a BIOsemi EEG setup with: &lt;br/&gt;&lt;br/&gt;Data Rate: 115200&lt;br/&gt;Data Bits: 8&lt;br/&gt;Stop Bits: 1&lt;br/&gt;Parity: none&lt;br/&gt;Flow Control: off&lt;br/&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm" id="if_insertedNode_1686934088840"&gt;&lt;/a&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm"&gt;&lt;a href="https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm"&gt;https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Again, we got it to work with Inquisit, so it's not a problem with BioSemi or cables or anything like that, but only after running Matlab to do (presumably the exact same thing) first.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;defaults&amp;gt;&lt;br/&gt;&amp;nbsp; combaudrates = (COM4 = 115200)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port sendtrialstart&amp;gt;&lt;br/&gt;&amp;nbsp; port = COM4&lt;br/&gt;&amp;nbsp;items = (10)&lt;br/&gt;&amp;nbsp;subport = data&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial experiment&amp;gt;&lt;br/&gt;/ stimulustimes = [ sendtrialstart, *other stimuli*]&lt;br/&gt;&amp;lt;/trial&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Also as a plug for Inquisit vs Psychtoolbox, the timing jitter for Inquisit was far superior on our setup, coming in at ~1-2ms of jitter compared to 20-40ms for PTB.&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Andrew&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35462"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;What's the exact Inquisit build you are using? See Tools -&amp;gt; System Information.&lt;br/&gt;</description><pubDate>Fri, 16 Jun 2023 18:57:53 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>