<div dir="ltr">Thank you for the fast response. I will carefully look at the advice.<div><br></div><div>Thanks alot!!</div><div><br></div><div>Juan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 23, 2014 at 11:53 AM, David McFarlane <span dir="ltr"><<a href="mailto:mcfarla9@msu.edu" target="_blank">mcfarla9@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Juan,<br>
<br>
Once again, if you use EP2.0.10 or later, I think you can do this better with Task Events than with inline code.  How about the following:<br>
<br>
Suppose you use the object StimSlide to get your subject response.  Make sure that it logs StimSlide.ACC; you might also have to set its PreRelease to 0 to make sure that E-Prime sets the StimSlide.ACC attribute before executing the next object.  Set up your trial Procedure something like<br>
<br>
    ...<br>
    StimSlide<br>
    MarkerWait<br>
    ...<br>
<br>
MarkerWait is a Wait object with a Duration of 0.  Add a Task Event at StartTime, ActionTime, or OnsetTime (in this case it hardly matters which, if you want to know the difference please see <a href="https://groups.google.com/d/topic/e-prime/OeiZ00V9SRc" target="_blank">https://groups.google.com/d/<u></u>topic/e-prime/OeiZ00V9SRc</a> ).   Set it to use your communications device (ParallelPort, Serial, etc.).  Use WriteString as the Action, "(custom)" as the Source, "[StimSlide.ACC]" for Custom, String for Data Type; leave Delay at 0, and Enabled at Yes.<br>
<br>
The key is the Custom value for the Task Event.  If StimSlide is set to log .ACC, then E-Prime will automatically create the StimSlide.ACC attribute (though you might have to set PreRelease to 0 to make sure that MarkerWait does not try to use that attribute before its value is set!).  Then MarkerWait can use that as an attribute reference in the Custom value.<br>
<br>
I have not tested this out myself, so I will be very interested to learn what you get to work.  Please write back.<br>
<br>
-----<br>
David McFarlane<br>
E-Prime training online:  <a href="http://psychology.msu.edu/Workshops_Courses/eprime.aspx" target="_blank">http://psychology.msu.edu/<u></u>Workshops_Courses/eprime.aspx</a><br>
Twitter:  @EPrimeMaster (<a href="https://twitter.com/EPrimeMaster" target="_blank">https://twitter.com/<u></u>EPrimeMaster</a>)<br>
<br>
/----<br>
Stock reminder:  1) I do not work for PST.  2) You may reach PST's trained staff (and other support facilities) at <a href="https://support.pstnet.com" target="_blank">https://support.pstnet.com</a> .  3) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others.<br>
\----<br>
<br>
<br>
At 9/23/2014 10:34 AM Tuesday, juan concepcion wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello I need help with sending an alphanumeric marker when presenting a stimulus. I have set the port for communication and already have successfully sent markers to another program.Â<br>
<br>
My wish now is to send markers if stimuli are correct or incorrect. So for example if stimulus is correct send marker "1" and if stimulus is incorrect send marker "0". I need to understand how Â in-line script does this and what to write in the in-line script for it to perform the function specified.<span class=""><br>
<br>
Thank you in advance!!!<br>
<br>
Juan<br>
</span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@<u></u>googlegroups.com</a>.<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 view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/54219788.066b320a.21ca.0f18SMTPIN_ADDED_MISSING%40gmr-mx.google.com" target="_blank">https://groups.google.com/d/<u></u>msgid/e-prime/54219788.<u></u>066b320a.21ca.0f18SMTPIN_<u></u>ADDED_MISSING%40gmr-mx.google.<u></u>com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/<u></u>optout</a>.<br>
</font></span></blockquote></div><br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com">e-prime+unsubscribe@googlegroups.com</a>.<br />
To post to this group, send email to <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CALsz0u5A41hGjb10oRwh65busBr54J_1f7Z7Wf68-uVtUMEBFw%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/e-prime/CALsz0u5A41hGjb10oRwh65busBr54J_1f7Z7Wf68-uVtUMEBFw%40mail.gmail.com</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />