﻿<?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  » Problems sending responsemessage to eeg</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 20 Sep 2026 23:16:32 GMT</lastBuildDate><ttl>20</ttl><item><title>Problems sending responsemessage to eeg</title><link>https://forums.millisecond.com/Topic16521.aspx</link><description>Hi there,&lt;br/&gt;the thing is, that the response message is not send, because the values I'm calling or the way I'm calling them does not work. I would really appreciate your help. Please find my code below.&lt;br/&gt;Thank you.&lt;br/&gt;Julia&lt;br/&gt;&lt;br/&gt;&amp;lt;port signal_response_correct&amp;gt;&lt;br/&gt;/ port = LPT1&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000011")&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial block1_congruent&amp;gt;&lt;br/&gt;/ontrialbegin = [values.iti_congruent = list.iti_congruent.nextvalue]&lt;br/&gt;/ontrialbegin = [if (list.congruent.currentvalue == 1) values.correctresponse = "25" else values.correctresponse = "16"]&lt;br/&gt;/ontrialbegin = [if (list.congruent.currentvalue == 1) values.errorresponse = "16" else values.errorresponse = "25"]&lt;br/&gt;&lt;br/&gt;/stimulustimes = [0 = outerbox_black, innerbox, flanker1_congruent, flanker2_congruent, target_congruent, flanker3_congruent, flanker4_congruent, signal_cond_congruent; 200 = blankscreen]&lt;br/&gt;/validresponse = (16, 25)&lt;br/&gt;/iscorrectresponse = [if (values.correctresponse == 25) trial.block1_congruent.response == 25 else trial.block1_congruent.response == 16]&lt;br/&gt;/responsemessage = (values.correctresponse, signal_response_correct, 0)&lt;br/&gt;/responsemessage = (values.errorresponse, signal_response_error, 0)&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/trialduration = values.iti_congruent&lt;br/&gt;&lt;br/&gt;/ontrialend = [if (trial.block1_congruent.correct == true) values.block1_correct_congruent +=1]&lt;br/&gt;/ontrialend = [if (trial.block1_congruent.correct == false) values.block1_error_congruent +=1]&lt;br/&gt;/ontrialend = [if (trial.block1_congruent.correct == true) values.block1_reactime_congruent_correct +=trial.block1_congruent.latency]&lt;br/&gt;/ontrialend = [if (trial.block1_congruent.correct == false) values.block1_reactime_congruent_error +=trial.block1_congruent.latency]&lt;br/&gt;/ontrialend = [if (trial.block1_congruent.timeout == true) values.block1_miss_congruent +=1]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 18 Jun 2015 01:20:17 GMT</pubDate><dc:creator>july1810</dc:creator></item><item><title>RE: Problems sending responsemessage to eeg</title><link>https://forums.millisecond.com/Topic16536.aspx</link><description>Thank you very much. It works fine now =)&lt;br/&gt;</description><pubDate>Thu, 18 Jun 2015 01:20:17 GMT</pubDate><dc:creator>july1810</dc:creator></item><item><title>RE: Problems sending responsemessage to eeg</title><link>https://forums.millisecond.com/Topic16523.aspx</link><description>#1: It looks like you also present &amp;lt;port&amp;gt; stimuli via the /stimulustimes attribute. You *must* make sure to also reset all those raised bits to zero after a short amount of time in /stimulustimes. Otherwise the signal will *remain raised* and mask the &amp;lt;port&amp;gt; signals you are trying to send via /responsemessage. See e.g. this example:&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/forums/FindPost15055.aspx"&gt;https://www.millisecond.com/forums/FindPost15055.aspx&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;#2: You should set a sufficient minimum duration in your /responsemessage attributes. Otherwise the signal may not be raised long enough for your external equipment to detect it.&lt;br/&gt;&lt;br/&gt;/responsemessage = (values.correctresponse, signal_response_correct, &lt;strong&gt;0&lt;/strong&gt;)&lt;br/&gt;&lt;br/&gt;#3: Also, the syntax in your /responsemessage attributes is wrong. You cannot use variables in it:&lt;br/&gt;&lt;br/&gt;/responsemessage = (&lt;span style="text-decoration: underline;"&gt;values.correctresponse&lt;/span&gt;, signal_response_correct, 0)&lt;br/&gt;&lt;br/&gt;The right thing to do is to use the /correct- and /errormessage attributes instead. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial block1_congruent&amp;gt;&lt;br/&gt;...&lt;br/&gt;&lt;strike&gt;/responsemessage = (values.correctresponse, signal_response_correct, 0)&lt;br/&gt;/responsemessage = (values.errorresponse, signal_response_error, 0)&lt;/strike&gt;&lt;br/&gt;/ correctmessage = (signal_response_correct, 100)&lt;br/&gt;/ errormessage = (signal_response_error, 100)&lt;br/&gt;/responseinterrupt = trial&lt;br/&gt;/trialduration = values.iti_congruent&lt;br/&gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 17 Jun 2015 04:28:37 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>