﻿<?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 5  » Unusual behaviour with sending signals</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 11 Sep 2026 11:15:20 GMT</lastBuildDate><ttl>20</ttl><item><title>Unusual behaviour with sending signals</title><link>https://forums.millisecond.com/Topic26374.aspx</link><description>Hi Inquisit community,&lt;br/&gt;We are using Inquisit 5 to control a device for thermal stimulation. We built D/A-changer (USB-based) that transform the digital 8bit signal from Inquisit to an analogous +/-5V output. The USB-changer has a built in FTDI232 chip and is recognized as COM4 on our PC (Windows 7). Other settings of the port are: &lt;br/&gt;Baudrate: 57600&lt;br/&gt;Bits: 8&lt;br/&gt;Parity: none&lt;br/&gt;Stoppbits: 1&lt;br/&gt;The changer receives signals from Inquisit and gives output to the thermal stimulation device. The thermal device receives the output and starts its program.&lt;br/&gt;We wrote a little script for an experiment (see below) but it shows some strange behaviour.&lt;br/&gt;The procedure for the experiment is: &lt;br/&gt;1.) Show intro screen, press spacebar to begin&lt;br/&gt;2.) Show first picture for 6 seconds and send a signal at the 5th second of the first picture, show fixation cross for 5 seconds&lt;br/&gt;3.) Show second picture for 6 seconds and send a signal at the 5th second of the second picture, show fixation cross for 5 seconds&lt;br/&gt;4.) Show third picture for 6 seconds and send a signal at the 5th second of the third picture, show fixation cross for 5 seconds&lt;br/&gt;5.) Show end screen&lt;br/&gt;So, here's the problem: Step 1.) &amp;amp; 2.) work perfectly but when it comes to 3.) &amp;amp; 4.) the signal now is sent parallel with the showing of the picture although it should be sent at the 5th second of the picture. Also when it comes to the end screen (5.)): a signal is sent although there is no "send signal" command???&lt;br/&gt;&lt;br/&gt;Do you have any ideas why this happens?&lt;br/&gt;Below is the script we wrote.&lt;br/&gt;Thanks a lot in advance,&lt;br/&gt;Sasch&lt;br/&gt;&lt;br/&gt;*** Default_Background_Screen----------------------&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/screencolor = (0,0,0)&lt;br/&gt;/txbgcolor = (0,0,0)&lt;br/&gt;/txcolor = (255, 255, 255)&lt;br/&gt;/minimumversion = "3.0.0.0"&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;*** Port_Signals--------------------------------------------&lt;br/&gt;&amp;lt;port mysignal&amp;gt;&lt;br/&gt;/port = com4&lt;br/&gt;/subport=data&lt;br/&gt;/items=(1)&lt;br/&gt;/erase = true(0)&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;*** Text Press_Spacebar---------------------------------&lt;br/&gt;&amp;lt;text spacebar&amp;gt;&lt;br/&gt;/items = ("Press SPACEBAR to begin!")&lt;br/&gt;/position = (50%, 95%)&lt;br/&gt;/valign = bottom&lt;br/&gt;/fontstyle = ("Arial", 3.5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;*** Text End_Screen----------------------------------------&lt;br/&gt;&amp;lt;text ende&amp;gt;&lt;br/&gt;/ items = ("Thx! Experiment is over now. Press 'e' to end.")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ fontstyle = ("Arial", 3.5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;*** Erase_Pic ---------------------------------------------------&lt;br/&gt;&amp;lt;shape erase_pic&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ position = (50%,50%)&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;*** Start_Screen--------------------------------------------------&lt;br/&gt;&amp;lt;item intro&amp;gt;&lt;br/&gt;/1 = "intro.png"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&amp;lt;picture intro&amp;gt;&lt;br/&gt;/items = intro&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (200%, 80%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;*** Fixation_Cross&lt;br/&gt;&amp;lt;item fixation&amp;gt;&lt;br/&gt;/1 = "fixation.png"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&amp;lt;picture fixation&amp;gt;&lt;br/&gt;/items = fixation&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (100%, 100%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;*** Pic_Stimuli --------------------------------------------------&lt;br/&gt;&amp;lt;item neutral&amp;gt;&lt;br/&gt;/1 = "F01.png"&lt;br/&gt;/2 = "F03.png"&lt;br/&gt;/3 = "F04.png"&lt;br/&gt;/4 = "F06.png"&lt;br/&gt;/5 = "F07.png"&lt;br/&gt;/6 = "F08.png"&lt;br/&gt;/7 = "F09.png"&lt;br/&gt;/8 = "F010.png"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&amp;lt;picture neutral&amp;gt;&lt;br/&gt;/items = neutral&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (100%, 100%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;*** Trials -----------------------------------------------------------&lt;br/&gt;&amp;lt;trial show_intro&amp;gt;&lt;br/&gt;/stimulustimes = [1=intro]&lt;br/&gt;/validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial show_end&amp;gt;&lt;br/&gt;/validresponse = ("e")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial show_stimuli&amp;gt;&lt;br/&gt;/stimulusframes = [1=neutral; 240=mysignal, systembeep; 360=fixation; 960=erase_pic]&lt;br/&gt;/timeout = 1&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;*** Blocks -----------------------------------------------------&lt;br/&gt;&amp;lt;block begin_exp&amp;gt;&lt;br/&gt;/trials = [1=show_intro] &lt;br/&gt;/bgstim = (spacebar)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;lt;block showing_stimuli&amp;gt;&lt;br/&gt;/trials = [1=show_stimuli] &lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;lt;block end_exp&amp;gt;&lt;br/&gt;/trials = [1=show_end]&lt;br/&gt;/bgstim = (ende)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;*** Experiment --------------------------------------------------&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1=begin_exp; 2-4=showing_stimuli; 5=end_exp]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;***=======================================</description><pubDate>Thu, 07 Feb 2019 03:23:03 GMT</pubDate><dc:creator>Sasch</dc:creator></item><item><title>RE: Unusual behaviour with sending signals</title><link>https://forums.millisecond.com/Topic26386.aspx</link><description>Hi Dave,&lt;br/&gt;thanks a lot, this works!!&lt;br/&gt;Could you tell me what excatly happens here and why I have to do it this way?&lt;br/&gt;Best,&lt;br/&gt;Sasch&lt;br/&gt;</description><pubDate>Thu, 07 Feb 2019 03:23:03 GMT</pubDate><dc:creator>Sasch</dc:creator></item><item><title>RE: Unusual behaviour with sending signals</title><link>https://forums.millisecond.com/Topic26382.aspx</link><description>&lt;div data-id="26380" class="if-quote-wrapper" unselectable="on" data-guid="1549477815816"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26380" 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="26380" 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="26380" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Sasch - Wednesday, February 6, 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-26380"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26375" class="if-quote-wrapper" unselectable="on" data-guid="1549477815816"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26375" 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="26375" 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="26375" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 6, 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-26375"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;What you should do is turn the signal *off* at some point during your &amp;lt;trial show_stimuli&amp;gt; trial, i.e. send a &amp;lt;port&amp;gt; stimulus that resets all bits back to zero&lt;br/&gt;&lt;br/&gt;&amp;lt;port signaloff&amp;gt;&lt;br/&gt;/port = com4&lt;br/&gt;/subport=data&lt;br/&gt;/items=(0)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;with something like&lt;br/&gt;&lt;br/&gt;&amp;lt;trial show_stimuli&amp;gt;&lt;br/&gt;/stimulusframes = [1=neutral; 240=mysignal, systembeep; 360=&lt;strong&gt;signaloff&lt;/strong&gt;, fixation; 960=erase_pic]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/timeout = 1&lt;br/&gt;/ responseinterrupt = frames&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26375"&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;Hi Dave,&lt;br/&gt;thanks a lot for your reply.&lt;br/&gt;We've tried that before and I also tried now your idea.&lt;br/&gt;Unfortunately it doesn't work :(&lt;br/&gt;With beginning of the second &amp;amp; third picture, a signal is sent immediately. Also a signal is still sent at the end screen.&lt;br/&gt;Could there be something wrong with the USB-changer?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sasch&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26380"&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;&amp;gt; Could there be something wrong with the USB-changer?&lt;br/&gt;&lt;br/&gt;Maybe, I don't know. What you describe makes it sound like the USB-device just keeps the signal raised once it's turned on for the first time during the trial, but never erases it / lowers the signal again.&lt;br/&gt;What happens if you change your &amp;lt;trial&amp;gt;'s code to this:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial show_stimuli&amp;gt;&lt;br/&gt;/stimulustimes = [0=neutral; 5000=mysignal, systembeep; 6000=&lt;strong&gt;clearscreen, signaloff&lt;/strong&gt;, fixation]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ trialduration = 11000&lt;br/&gt;/ responseinterrupt = frames&lt;br/&gt;/ ontrialend = [trial.show_stimuli.resetstimulusframes();]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;port signaloff&amp;gt;&lt;br/&gt;/port = com4&lt;br/&gt;/subport=data&lt;br/&gt;/items=(0)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;and&lt;br/&gt;&lt;br/&gt;&amp;lt;port mysignal&amp;gt;&lt;br/&gt;/port = com4&lt;br/&gt;/subport=data&lt;br/&gt;/items=(1)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 06 Feb 2019 10:36:51 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Unusual behaviour with sending signals</title><link>https://forums.millisecond.com/Topic26380.aspx</link><description>&lt;div data-id="26375" class="if-quote-wrapper" unselectable="on" data-guid="1549469330810"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26375" 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="26375" 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="26375" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 6, 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-26375"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;br/&gt;What you should do is turn the signal *off* at some point during your &amp;lt;trial show_stimuli&amp;gt; trial, i.e. send a &amp;lt;port&amp;gt; stimulus that resets all bits back to zero&lt;br/&gt;&lt;br/&gt;&amp;lt;port signaloff&amp;gt;&lt;br/&gt;/port = com4&lt;br/&gt;/subport=data&lt;br/&gt;/items=(0)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;with something like&lt;br/&gt;&lt;br/&gt;&amp;lt;trial show_stimuli&amp;gt;&lt;br/&gt;/stimulusframes = [1=neutral; 240=mysignal, systembeep; 360=&lt;strong&gt;signaloff&lt;/strong&gt;, fixation; 960=erase_pic]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/timeout = 1&lt;br/&gt;/ responseinterrupt = frames&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26375"&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;Hi Dave,&lt;br/&gt;thanks a lot for your reply.&lt;br/&gt;We've tried that before and I also tried now your idea.&lt;br/&gt;Unfortunately it doesn't work :(&lt;br/&gt;With beginning of the second &amp;amp; third picture, a signal is sent immediately. Also a signal is still sent at the end screen.&lt;br/&gt;Could there be something wrong with the USB-changer?&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Sasch&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 06 Feb 2019 08:16:57 GMT</pubDate><dc:creator>Sasch</dc:creator></item><item><title>RE: Unusual behaviour with sending signals</title><link>https://forums.millisecond.com/Topic26375.aspx</link><description>&lt;div data-id="26374" class="if-quote-wrapper" unselectable="on" data-guid="1549465507799"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26374" 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="26374" 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="26374" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Sasch - Wednesday, February 6, 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-26374"&gt;&lt;div class="if-quote-message-margin"&gt;Hi Inquisit community,&lt;br/&gt;We are using Inquisit 5 to control a device for thermal stimulation. We built D/A-changer (USB-based) that transform the digital 8bit signal from Inquisit to an analogous +/-5V output. The USB-changer has a built in FTDI232 chip and is recognized as COM4 on our PC (Windows 7). Other settings of the port are: &lt;br/&gt;Baudrate: 57600&lt;br/&gt;Bits: 8&lt;br/&gt;Parity: none&lt;br/&gt;Stoppbits: 1&lt;br/&gt;The changer receives signals from Inquisit and gives output to the thermal stimulation device. The thermal device receives the output and starts its program.&lt;br/&gt;We wrote a little script for an experiment (see below) but it shows some strange behaviour.&lt;br/&gt;The procedure for the experiment is: &lt;br/&gt;1.) Show intro screen, press spacebar to begin&lt;br/&gt;2.) Show first picture for 6 seconds and send a signal at the 5th second of the first picture, show fixation cross for 5 seconds&lt;br/&gt;3.) Show second picture for 6 seconds and send a signal at the 5th second of the second picture, show fixation cross for 5 seconds&lt;br/&gt;4.) Show third picture for 6 seconds and send a signal at the 5th second of the third picture, show fixation cross for 5 seconds&lt;br/&gt;5.) Show end screen&lt;br/&gt;So, here's the problem: Step 1.) &amp;amp; 2.) work perfectly but when it comes to 3.) &amp;amp; 4.) the signal now is sent parallel with the showing of the picture although it should be sent at the 5th second of the picture. Also when it comes to the end screen (5.)): a signal is sent although there is no "send signal" command???&lt;br/&gt;&lt;br/&gt;Do you have any ideas why this happens?&lt;br/&gt;Below is the script we wrote.&lt;br/&gt;Thanks a lot in advance,&lt;br/&gt;Sasch&lt;br/&gt;&lt;br/&gt;*** Default_Background_Screen----------------------&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/screencolor = (0,0,0)&lt;br/&gt;/txbgcolor = (0,0,0)&lt;br/&gt;/txcolor = (255, 255, 255)&lt;br/&gt;/minimumversion = "3.0.0.0"&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;*** Port_Signals--------------------------------------------&lt;br/&gt;&amp;lt;port mysignal&amp;gt;&lt;br/&gt;/port = com4&lt;br/&gt;/subport=data&lt;br/&gt;/items=(1)&lt;br/&gt;/erase = true(0)&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;*** Text Press_Spacebar---------------------------------&lt;br/&gt;&amp;lt;text spacebar&amp;gt;&lt;br/&gt;/items = ("Press SPACEBAR to begin!")&lt;br/&gt;/position = (50%, 95%)&lt;br/&gt;/valign = bottom&lt;br/&gt;/fontstyle = ("Arial", 3.5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;*** Text End_Screen----------------------------------------&lt;br/&gt;&amp;lt;text ende&amp;gt;&lt;br/&gt;/ items = ("Thx! Experiment is over now. Press 'e' to end.")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ fontstyle = ("Arial", 3.5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;*** Erase_Pic ---------------------------------------------------&lt;br/&gt;&amp;lt;shape erase_pic&amp;gt;&lt;br/&gt;/ shape = rectangle&lt;br/&gt;/ color = black&lt;br/&gt;/ position = (50%,50%)&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;&amp;lt;/shape&amp;gt;&lt;br/&gt;*** Start_Screen--------------------------------------------------&lt;br/&gt;&amp;lt;item intro&amp;gt;&lt;br/&gt;/1 = "intro.png"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&amp;lt;picture intro&amp;gt;&lt;br/&gt;/items = intro&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (200%, 80%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;*** Fixation_Cross&lt;br/&gt;&amp;lt;item fixation&amp;gt;&lt;br/&gt;/1 = "fixation.png"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&amp;lt;picture fixation&amp;gt;&lt;br/&gt;/items = fixation&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (100%, 100%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;*** Pic_Stimuli --------------------------------------------------&lt;br/&gt;&amp;lt;item neutral&amp;gt;&lt;br/&gt;/1 = "F01.png"&lt;br/&gt;/2 = "F03.png"&lt;br/&gt;/3 = "F04.png"&lt;br/&gt;/4 = "F06.png"&lt;br/&gt;/5 = "F07.png"&lt;br/&gt;/6 = "F08.png"&lt;br/&gt;/7 = "F09.png"&lt;br/&gt;/8 = "F010.png"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&amp;lt;picture neutral&amp;gt;&lt;br/&gt;/items = neutral&lt;br/&gt;/select = noreplace&lt;br/&gt;/position = (50, 50)&lt;br/&gt;/size = (100%, 100%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;*** Trials -----------------------------------------------------------&lt;br/&gt;&amp;lt;trial show_intro&amp;gt;&lt;br/&gt;/stimulustimes = [1=intro]&lt;br/&gt;/validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial show_end&amp;gt;&lt;br/&gt;/validresponse = ("e")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial show_stimuli&amp;gt;&lt;br/&gt;/stimulusframes = [1=neutral; 240=mysignal, systembeep; 360=fixation; 960=erase_pic]&lt;br/&gt;/timeout = 1&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;*** Blocks -----------------------------------------------------&lt;br/&gt;&amp;lt;block begin_exp&amp;gt;&lt;br/&gt;/trials = [1=show_intro] &lt;br/&gt;/bgstim = (spacebar)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;lt;block showing_stimuli&amp;gt;&lt;br/&gt;/trials = [1=show_stimuli] &lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;lt;block end_exp&amp;gt;&lt;br/&gt;/trials = [1=show_end]&lt;br/&gt;/bgstim = (ende)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;*** Experiment --------------------------------------------------&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/blocks = [1=begin_exp; 2-4=showing_stimuli; 5=end_exp]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;***=======================================&lt;a class="if-quote-goto quote-link" href="#" data-id="26374"&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;What you should do is turn the signal *off* at some point during your &amp;lt;trial show_stimuli&amp;gt; trial, i.e. send a &amp;lt;port&amp;gt; stimulus that resets all bits back to zero&lt;br/&gt;&lt;br/&gt;&amp;lt;port signaloff&amp;gt;&lt;br/&gt;/port = com4&lt;br/&gt;/subport=data&lt;br/&gt;/items=(0)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;with something like&lt;br/&gt;&lt;br/&gt;&amp;lt;trial show_stimuli&amp;gt;&lt;br/&gt;/stimulusframes = [1=neutral; 240=mysignal, systembeep; 360=&lt;strong&gt;signaloff&lt;/strong&gt;, fixation; 960=erase_pic]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/timeout = 1&lt;br/&gt;/ responseinterrupt = frames&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 06 Feb 2019 07:08:41 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>