<div>Hi Matt,</div><div> </div><div>I'm not sure if I understand your description completely, but I think that the problem you described is related to the settings of the input mask and terminate action. You probably have a sound or slide object for playing the sentence. I suspect that you added an input mask to this object to record the subject response. When the trigger-script is placed after this object, you will have a problem because the script will be exucuted after the button response in this case. Is this indeed what is happening?</div>
<div> </div><div>If this is the case, you could try to fix it by having a separate response object (such as a Text object) that is placed after the inline script. Instead of using the sleep function, you could set the duration of the sound-object to [delay]. The Sound 'Stop After' property should be set to No. However, the problem with this construction is that it is more difficult to make sure that the response object is displayed after the end of the audio track. (unless all sentences have the same duration). Perhaps the new Task Event mechanism of EPrime 2 will help out here: <a href="http://www.pstnet.com/support/kb.asp?TopicID=4803">http://www.pstnet.com/support/kb.asp?TopicID=4803</a> I haven't used this yet, but I think it should be possible to generate a delayed parallel port write operation.</div>
<div> </div><div>Cheers,</div><div>Paul</div><div> </div><div> </div><div><br> </div><div class="gmail_quote">2012/8/28 Matt Ku <span dir="ltr"><<a href="mailto:lchnku@gmail.com" target="_blank">lchnku@gmail.com</a>></span><br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><br>aldelfino於 2012年8月14日星期二UTC+8下午9時37分58秒寫道:<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<span><span><span><span><span>Hello everyone,<br>
<br>
I'm running an experiment using triggers from Eprime to a BrainVision 
equipment. I need Eprime to send a trigger according to the position of target-words along the sentence e.g. at 0, 5, or 11 seconds 
after the beginning of the sentence. I tried used the following script:<br>
<br>
WritePort &H378, c.GetAttrib("trigger") 'identifies the item’ <br>             
                        sleep  c.GetAttrib ("delay") 'identifies the position of the target-word after the beginning of the sentence’ <br>             
                        c.SetAttrib  "CheckResponseTime", Clock.Read<br>
<br>
I defined two attributes: (i) trigger, as a code to identify the trigger
 according to each sentence, and (ii) delay, as the time after the 
beginning of the sentence the trigger should be sent to BrainAmp. After 
listening each sentence, the subject has to answer a yes-no question to 
check understanding. The problem is that the BrainVision cannot register 
the trigger synchronized with the delay attribute, but only with the 
time the subject hits the answer button.<br>
<br>
Does anyone have a solution or an alternative script for my experiment?<br>
<br>
Thanks in advance</span></span></span></span></span></blockquote><span class="HOEnZb"><font color="#888888">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/GCDJ-V3aqTIJ" target="_blank">https://groups.google.com/d/msg/e-prime/-/GCDJ-V3aqTIJ</a>.<br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out</a>.<br>
 <br>
 <br>
</font></span></blockquote></div><br>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
 <br />
 <br />