﻿<?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  » Com Port Signal</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 28 Sep 2026 06:02:46 GMT</lastBuildDate><ttl>20</ttl><item><title>Com Port Signal</title><link>https://forums.millisecond.com/Topic21596.aspx</link><description>Hi guys,&lt;br/&gt;&lt;br/&gt;I bashed my head against a little problem and would appreciate your help.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have a Varioport (tool to measure eda) which is connected &lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;to my pc&amp;nbsp;&lt;/span&gt;via comport. All I want to do is to send signals from Inquisit and through the comport. It doesn´t have to be an elaborate signal. I just need a beep, blip or whatever. After I got everything working, I can´t figure out, what signal to send or how to send a signal. I know Inquisit can communicate with the varioport tool, because at the beginning and at the end of the experiment Inquisit sends an automatic signal though the comport.&lt;br/&gt;Can you tell me what kind of signal Inquisit sends automatically or how I can send a comparable signal?&lt;br/&gt;&lt;br/&gt;This is a snippet if the code I´m using right now:&lt;br/&gt;&lt;br/&gt;&amp;lt;port comporton&amp;gt;&lt;br/&gt;/ items = ("00001000") **I tried various combinations here.&amp;nbsp;&lt;br/&gt;/ port = COM2&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port comportoff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = COM2&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial porttesttrial&amp;gt; &lt;br/&gt;/ trialduration = 1000&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;/ stimulustimes = [1= comporton, square_yellowg]&lt;br/&gt;/ontrialend = [port.comportoff]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page porttestgo&amp;gt;&lt;br/&gt;Porttest &lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Porttest&amp;gt;&lt;br/&gt;/trials = [1-5=porttesttrial]&lt;br/&gt;/ preinstructions =(porttestgo)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks for your help in advance!</description><pubDate>Sat, 27 May 2017 00:11:11 GMT</pubDate><dc:creator>wal</dc:creator></item><item><title>RE: Com Port Signal</title><link>https://forums.millisecond.com/Topic21704.aspx</link><description>Okay I solved it. First of all thank you very much for your help and your quick answers Dave!&lt;br/&gt;&lt;br/&gt;Since I use the forum regularly to solve problems, I wanted to provide a solution myself. So for everyone who has this or a similar problem.&amp;nbsp;&lt;br/&gt;I tried to commuinicated with the Varioport through the serial/com port. I could measure lets call it a blip at the start and the end of the experiment, but wasn´t able to send any signals with Inquisit myself.&lt;br/&gt;What you have to do to communicate with Varioport, if it is hooked to the serial/com port, is to initialise or deactivate the port. Inquisit simply can´t do that on command, but does it very shortly at the start or end of the experiment. Hence the measured blip. &lt;br/&gt;If you have to use the com/serial port its easy to do in matlab just initialse the port and fopen/fclose it. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;In Inquisit you´ll have to use the LTP port. Here a snippet of my code&lt;br/&gt;&lt;br/&gt;&amp;lt;port ltpmax&amp;gt;&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("11111111")&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port ltphalf&amp;gt;&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("10000000")&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port ltpoff&amp;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;br/&gt;&lt;br/&gt;**This is taken from one of the Stroops provided by Millisecond&lt;br/&gt;&amp;lt;trial tg_neu_gel&amp;gt; &amp;nbsp;&amp;nbsp;&lt;br/&gt;/ pretrialpause = 0 &lt;br/&gt;/ validkeys = ("f", "v", " ", "j", "n")&lt;br/&gt;/ correctresponse = ("v")&lt;br/&gt;/ stimulustimes = [1= ltpmax, square_gelbg; 2=g_neu] **First signal with max output at the first stimulus (255)&lt;br/&gt;/ posttrialpause = 40&lt;br/&gt;/ responsemessage = (" ", ltphalf, 1) **Now, without the " " empty answer, it would not let me send the ltphalf signal with 1ms duration. (Flying blind here. Can´t do a test run right now, at least Inquisit doesn´t complain about this. &lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;So this may be wrong.&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;). But still on response a second signal half as strong as the first one (128).&lt;br/&gt;/ ontrialend = [ltpoff] **Keep this in mind&amp;nbsp;&lt;a href="http://www.millisecond.com/support/docs/v5/html/howto/howtocontroltiming.htm"&gt;http://www.millisecond.com/support/docs/v5/html/howto/howtocontroltiming.htm&lt;/a&gt; . The signal will be send after the posttrailpause. Last signal at the end of the trial (1).&amp;nbsp;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps someone.&lt;br/&gt;&lt;br/&gt;&amp;nbsp; &amp;nbsp;</description><pubDate>Sat, 27 May 2017 00:11:11 GMT</pubDate><dc:creator>wal</dc:creator></item><item><title>RE: Com Port Signal</title><link>https://forums.millisecond.com/Topic21616.aspx</link><description>&lt;div data-id="21615" class="if-quote-wrapper" unselectable="on" data-guid="1494946806459"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21615" 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="21615" 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="21615" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;wal - Tuesday, May 16, 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-21615"&gt;&lt;div class="if-quote-message-margin"&gt;Hey Dave thanks for the quick answer and the quick code fix. Sadly I still got the problem and there is no handbook or community for hardware I´m using.&amp;nbsp;&lt;br/&gt;Thats why I keep asking you.&lt;br/&gt;Comporton and Comport off don´t register at the varioport. It doesn´t matter if I send 8 (00001000), 16 (0001000) or some other 8bit sequence.&lt;br/&gt;&lt;br/&gt;I know Inquisit can send signals to Varioport because the start and the end of an experiment registers as a signal. The signal does not register when I change&lt;br/&gt;the port (to COM1) in comporton and comportoff. Which means it is not a random signal Inquisit sends. Do you know what kind of signal Inquisit sends at the beginning and end of an experiment?&lt;br/&gt;Is it an 8-bit sequence I can send using &amp;nbsp;&amp;lt;port comporton&amp;gt;?&lt;br/&gt;&lt;br/&gt;&lt;font color="#000000" face="Arial"&gt;&lt;span style="font-size: 13.3333px;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21615"&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;To the best of my knowledge, Inquisit doesn't send any specific signal at the start and/or end of the experiment. My guess would be that what you're registering is some kind of artifact related to the initialization of the varioport or its driver. What you can do to (try) and figure out the right settings is use the Serial Port Monitor (Tools -&amp;gt; Serial Port Monitor).&lt;br/&gt;&lt;br/&gt;And yes, what a &amp;lt;port&amp;gt; element sends is an 8-bit TTL signals which you can express in either binary or as an integer: &lt;a href="https://www.millisecond.com/support/docs/v4/html/language/elements/port.htm"&gt;https://www.millisecond.com/support/docs/v4/html/language/elements/port.htm&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;As for what signals the Varioport expects or needs (some devices need to receive a specific signal to "initialize"), that should be covered in the Varioport's documentation.&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;</description><pubDate>Tue, 16 May 2017 08:06:37 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Com Port Signal</title><link>https://forums.millisecond.com/Topic21615.aspx</link><description>Hey Dave thanks for the quick answer and the quick code fix. Sadly I still got the problem and there is no handbook or community for hardware I´m using.&amp;nbsp;&lt;br/&gt;Thats why I keep asking you.&lt;br/&gt;Comporton and Comport off don´t register at the varioport. It doesn´t matter if I send 8 (00001000), 16 (0001000) or some other 8bit sequence.&lt;br/&gt;&lt;br/&gt;I know Inquisit can send signals to Varioport because the start and the end of an experiment registers as a signal. The signal does not register when I change&lt;br/&gt;the port (to COM1) in comporton and comportoff. Which means it is not a random signal Inquisit sends. Do you know what kind of signal Inquisit sends at the beginning and end of an experiment?&lt;br/&gt;Is it an 8-bit sequence I can send using &amp;nbsp;&amp;lt;port comporton&amp;gt;?&lt;br/&gt;&lt;br/&gt;&lt;font color="#000000" face="Arial"&gt;&lt;span style="font-size: 13.3333px;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/font&gt;</description><pubDate>Tue, 16 May 2017 04:52:23 GMT</pubDate><dc:creator>wal</dc:creator></item><item><title>RE: Com Port Signal</title><link>https://forums.millisecond.com/Topic21599.aspx</link><description>&lt;div data-id="21596" class="if-quote-wrapper" unselectable="on" data-guid="1494859008190"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21596" 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="21596" 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="21596" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;wal - Monday, May 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-21596"&gt;&lt;div class="if-quote-message-margin"&gt;Hi guys,&lt;br/&gt;&lt;br/&gt;I bashed my head against a little problem and would appreciate your help.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have a Varioport (tool to measure eda) which is connected &lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;to my pc&amp;nbsp;&lt;/span&gt;via comport. All I want to do is to send signals from Inquisit and through the comport. It doesn´t have to be an elaborate signal. I just need a beep, blip or whatever. After I got everything working, I can´t figure out, what signal to send or how to send a signal. I know Inquisit can communicate with the varioport tool, because at the beginning and at the end of the experiment Inquisit sends an automatic signal though the comport.&lt;br/&gt;Can you tell me what kind of signal Inquisit sends automatically or how I can send a comparable signal?&lt;br/&gt;&lt;br/&gt;This is a snippet if the code I´m using right now:&lt;br/&gt;&lt;br/&gt;&amp;lt;port comporton&amp;gt;&lt;br/&gt;/ items = ("00001000") **I tried various combinations here.&amp;nbsp;&lt;br/&gt;/ port = COM2&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port comportoff&amp;gt;&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;/ port = COM2&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial porttesttrial&amp;gt; &lt;br/&gt;/ trialduration = 1000&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;/ stimulustimes = [1= comporton, square_yellowg]&lt;br/&gt;/ontrialend = [port.comportoff]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page porttestgo&amp;gt;&lt;br/&gt;Porttest &lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Porttest&amp;gt;&lt;br/&gt;/trials = [1-5=porttesttrial]&lt;br/&gt;/ preinstructions =(porttestgo)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks for your help in advance!&lt;a class="if-quote-goto quote-link" href="#" data-id="21596"&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;&lt;br/&gt;&amp;lt;trial porttesttrial&amp;gt; &lt;br/&gt;/ trialduration = 1000&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;/ stimulustimes = [1= comporton, square_yellowg]&lt;br/&gt;&lt;strong&gt;/ontrialend = [port.comportoff]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;You can't "send" a port signal via /ontrialend. The trial should read something like&lt;br/&gt;&lt;br/&gt;&amp;lt;trial porttesttrial&amp;gt; &lt;br/&gt;/ trialduration = 1000&lt;br/&gt;/ posttrialpause = 500&lt;br/&gt;/ stimulustimes = [0= comporton, square_yellowg; 100=&lt;strong&gt;comportoff&lt;/strong&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;This would raise the signal at the start of the trial, and "turn it off" again after 100ms.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 15 May 2017 07:39:29 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>