﻿<?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  » Sending event markers from Inquisit script to Acqknowledge via serial port</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 12 Sep 2026 16:52:14 GMT</lastBuildDate><ttl>20</ttl><item><title>Sending event markers from Inquisit script to Acqknowledge via serial port</title><link>https://forums.millisecond.com/Topic36229.aspx</link><description>I am trying to send TTL signals to Acqknowledge via serial port. I am using&amp;nbsp;The Black Box ToolKit USB TTL Module v1.&lt;br/&gt;&lt;br/&gt;When I send signals using the proprietary Black Box software Acqknowledge receives them immediately and as expected. When using the serial port monitor in Inquisit however, the sending is inconsistent, sometimes requiring me to click 'send' twice or more in order to actually send the signal, but most of the time it doesn't work at all. It consistently isn't working via the script.&lt;br/&gt;&lt;br/&gt;Also interesting to note, when Inquisit does send the signal, it does not align with the expected lines i.e. sending '00000001' should turn on line 1 (which it does via the Black Box ToolKit Interface), but instead it turns on lines 1, 3, and 4.&lt;br/&gt;The expected binary to elicit this behavior is '00001101'&lt;br/&gt;&lt;br/&gt;Additionally, sending '00000100' works much more consistently in Inquisit, but again requires clicking send at least twice (but sometimes more) and turns on lines that aren't expected. This should turn on line 3 only, but instead turns on lines 1, 3, 4, 5, 7, and 8. The expected binary to produce this behavior is '11011101'&lt;br/&gt;&lt;br/&gt;The inconsistent behavior is the most confusing part of this to me, as I can't create a heuristic in order to troubleshoot. I am hoping the information I provided will ring a bell for someone who has used USB serial port hardware before. I am happy to provide some more information as needed, but this is a comprehensive description of what I have been experiencing.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 21 May 2024 17:54:13 GMT</pubDate><dc:creator>ejn528</dc:creator></item><item><title>RE: Sending event markers from Inquisit script to Acqknowledge via serial port</title><link>https://forums.millisecond.com/Topic36231.aspx</link><description>&lt;blockquote data-id="36230" class="if-quote-wrapper" unselectable="on" data-guid="1716313182041" contenteditable="false" id="if_insertedNode_1716313180472"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36230" 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="36230" 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="36230" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 5/21/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36230"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36229" class="if-quote-wrapper" unselectable="on" data-guid="1716313182041" contenteditable="false" id="if_insertedNode_1716310798031"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36229" 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="36229" 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="36229" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ejn528 - 5/21/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36229"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am trying to send TTL signals to Acqknowledge via serial port. I am using&amp;nbsp;The Black Box ToolKit USB TTL Module v1.&lt;br/&gt;&lt;br/&gt;When I send signals using the proprietary Black Box software Acqknowledge receives them immediately and as expected. When using the serial port monitor in Inquisit however, the sending is inconsistent, sometimes requiring me to click 'send' twice or more in order to actually send the signal, but most of the time it doesn't work at all. It consistently isn't working via the script.&lt;br/&gt;&lt;br/&gt;Also interesting to note, when Inquisit does send the signal, it does not align with the expected lines i.e. sending '00000001' should turn on line 1 (which it does via the Black Box ToolKit Interface), but instead it turns on lines 1, 3, and 4.&lt;br/&gt;The expected binary to elicit this behavior is '00001101'&lt;br/&gt;&lt;br/&gt;Additionally, sending '00000100' works much more consistently in Inquisit, but again requires clicking send at least twice (but sometimes more) and turns on lines that aren't expected. This should turn on line 3 only, but instead turns on lines 1, 3, 4, 5, 7, and 8. The expected binary to produce this behavior is '11011101'&lt;br/&gt;&lt;br/&gt;The inconsistent behavior is the most confusing part of this to me, as I can't create a heuristic in order to troubleshoot. I am hoping the information I provided will ring a bell for someone who has used USB serial port hardware before. I am happy to provide some more information as needed, but this is a comprehensive description of what I have been experiencing.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36229"&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;The "Send Byte" field in the serial port monitor expects decimal values, i.e. 0 to 255 (corresponding to 00000000 to 11111111 in binary). So, entering a value 4 (decimal) would correspond to the binary value of 00000100, or 0x04 in hexadecimal.&lt;br/&gt;&lt;br/&gt;I am unable to reproduce the other behavior. Hitting send once is sufficient and the value received at the other end is the one entered and expected.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36230"&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;One more thing:&lt;br/&gt;&lt;br/&gt;I don't know about that specific version of the BBTK USB-to-serial module, but if memory serves, those modules expect two-byte ASCII commands. The module's manual should have the details. Inquisit doesn't support sending ASCII text over serial. What you can try is converting to the numerical ASCII codes and then sending two-byte sequences for initialization, line-setting, and reset accordingly.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1=init; 2-10=test_lines; 11=reset]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;// initialize the module by sending the two init bytes ("RR" or 82 and 82 as decimal ASCII codes)&lt;br/&gt;&amp;lt;trial init&amp;gt;&lt;br/&gt;/ stimulusframes = [1=init_byte1; 2=init_byte2]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ trialduration = 50&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial test_lines&amp;gt;&lt;br/&gt;/ stimulusframes = [1=on_byte1; 2=on_byte2; 21=off_byte1; 22=off_byte2]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ trialduration = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial reset&amp;gt;&lt;br/&gt;/ stimulusframes = [1=init_byte1; 2=init_byte2]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ trialduration = 50&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// send "01", "02", "03", "04", "05", "06", "07", "08", and "FF"&lt;br/&gt;// to turn on lines 1 to 8 successively and finally all eight lines at once ("FF")&lt;br/&gt;&amp;lt;port on_byte1&amp;gt;&lt;br/&gt;/ items = (48, 48, 48, 48, 48, 48, 48, 48, 70) // ASCII codes for digit "0" (48) and character "F" (70)&lt;br/&gt;/ select = sequence&lt;br/&gt;/ erase = false&lt;br/&gt;/ port = com3&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port on_byte2&amp;gt;&lt;br/&gt;/ items = (49, 50, 51, 52, 53, 54, 55, 56, 70) // ASCII codes for digits "1" (49) to "8" (56) and character "F" (70)&lt;br/&gt;/ select = port.on_byte1.currentindex&lt;br/&gt;/ erase = false&lt;br/&gt;/ port = com3&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port init_byte1&amp;gt;&lt;br/&gt;/ items = (82) // ASCII code for character "R"&lt;br/&gt;/ erase = false&lt;br/&gt;/ port = com3&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port init_byte2&amp;gt;&lt;br/&gt;/ items = (82) // ASCII code for character "R"&lt;br/&gt;/ erase = false&lt;br/&gt;/ port = com3&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;// send "00" to turn off lines&lt;br/&gt;&amp;lt;port off_byte1&amp;gt;&lt;br/&gt;/ items = (48) // ASCII code for digit "0"&lt;br/&gt;/ erase = false&lt;br/&gt;/ port = com3&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port off_byte2&amp;gt;&lt;br/&gt;/ items = (48) // ASCII code for digit "0"&lt;br/&gt;/ erase = false&lt;br/&gt;/ port = com3&lt;br/&gt;&amp;lt;/port&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;If that doesn't work, the module and Inquisit simply aren't compatible.&lt;br/&gt;</description><pubDate>Tue, 21 May 2024 17:54:13 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sending event markers from Inquisit script to Acqknowledge via serial port</title><link>https://forums.millisecond.com/Topic36230.aspx</link><description>&lt;blockquote data-id="36229" class="if-quote-wrapper" unselectable="on" data-guid="1716310798691" contenteditable="false" id="if_insertedNode_1716310798031"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36229" 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="36229" 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="36229" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;ejn528 - 5/21/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36229"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I am trying to send TTL signals to Acqknowledge via serial port. I am using&amp;nbsp;The Black Box ToolKit USB TTL Module v1.&lt;br/&gt;&lt;br/&gt;When I send signals using the proprietary Black Box software Acqknowledge receives them immediately and as expected. When using the serial port monitor in Inquisit however, the sending is inconsistent, sometimes requiring me to click 'send' twice or more in order to actually send the signal, but most of the time it doesn't work at all. It consistently isn't working via the script.&lt;br/&gt;&lt;br/&gt;Also interesting to note, when Inquisit does send the signal, it does not align with the expected lines i.e. sending '00000001' should turn on line 1 (which it does via the Black Box ToolKit Interface), but instead it turns on lines 1, 3, and 4.&lt;br/&gt;The expected binary to elicit this behavior is '00001101'&lt;br/&gt;&lt;br/&gt;Additionally, sending '00000100' works much more consistently in Inquisit, but again requires clicking send at least twice (but sometimes more) and turns on lines that aren't expected. This should turn on line 3 only, but instead turns on lines 1, 3, 4, 5, 7, and 8. The expected binary to produce this behavior is '11011101'&lt;br/&gt;&lt;br/&gt;The inconsistent behavior is the most confusing part of this to me, as I can't create a heuristic in order to troubleshoot. I am hoping the information I provided will ring a bell for someone who has used USB serial port hardware before. I am happy to provide some more information as needed, but this is a comprehensive description of what I have been experiencing.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36229"&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;The "Send Byte" field in the serial port monitor expects decimal values, i.e. 0 to 255 (corresponding to 00000000 to 11111111 in binary). So, entering a value 4 (decimal) would correspond to the binary value of 00000100, or 0x04 in hexadecimal.&lt;br/&gt;&lt;br/&gt;I am unable to reproduce the other behavior. Hitting send once is sufficient and the value received at the other end is the one entered and expected.&lt;br/&gt;</description><pubDate>Tue, 21 May 2024 17:21:54 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>