<div dir="ltr">Thank you for your quick reply! We are using a serial port - do these instructions follow for serial ports as well? <div><br></div><div style>Also, if I want to include more than 1 condition to label the trigger (so not just "numbos", but also "type" for example), would I be okay with using:</div>
<div style><br></div><div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">elseif c.GetAttrib ("numobs") = 10 </span></div><div style>          and c.GetAttrib ("type") = 3 then<br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<u style="font-family:arial,sans-serif;font-size:12.727272033691406px"></u><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">        </span><u style="font-family:arial,sans-serif;font-size:12.727272033691406px"></u><u style="font-family:arial,sans-serif;font-size:12.727272033691406px"></u><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">         </span><u style="font-family:arial,sans-serif;font-size:12.727272033691406px"></u><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">WritePort &H378, &HA</span><br>
</div><div style><br></div><div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Thank you kindly in advance - I appreciate the help!</span></div><div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</span></div><div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">M</span></div><div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div style>
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 6, 2013 at 8:42 PM, Alphonse Stickle <span dir="ltr"><<a href="mailto:alphonse.stickle@gmail.com" target="_blank">alphonse.stickle@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<br>
.. for clarity sake, sorry, typo - Decimal address = 888, not 88<div><div class="h5"><br><br>
At 12:40 PM 7/02/2013, you wrote:<br><br>
<br>
<blockquote type="cite">An example using native parallel
port (Decimal address = 88, therefore Hex address 378) to send bytes to a
NeuroScan system using Hex notation (&H...), which would appear in
NeuroScan .cnt file as trigger codes 1 to 10:<br><br>
' assess item level and<u></u> <u></u>send appropriate trigger code
to NuAmps<br>
If c.GetAttrib ("numobs") = 1 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &H1<br><br>
<u></u>        <u></u>elseif
c.GetAttrib ("numobs") = 2 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &H2<br><br>
<u></u>        <u></u>elseif
c.GetAttrib ("numobs") = 3 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &H3<br><br>
<u></u>        <u></u>elseif
c.GetAttrib ("numobs") = 4 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &H4<br><br>
<u></u>        <u></u>elseif
c.GetAttrib ("numobs") = 5 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &H5<br><br>
<u></u>        <u></u>elseif
c.GetAttrib ("numobs") = 6 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &H6<br><br>
<u></u>        <u></u>elseif
c.GetAttrib ("numobs") = 7 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &H7<br><br>
<u></u>        <u></u>elseif
c.GetAttrib ("numobs") = 8 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &H8<br><br>
<u></u>        <u></u>elseif
c.GetAttrib ("numobs") = 9 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &H9<br><br>
<u></u>        <u></u>elseif
c.GetAttrib ("numobs") = 10 then<br>
<u></u>        <u></u><u></u>
        <u></u>WritePort
&H378, &HA<br>
End If<br><br>
... here is a conversion tool:<br><br>
<a href="http://easycalculation.com/hex-converter.php" target="_blank">
http://easycalculation.com/hex-converter.php</a><br><br>
At 12:23 PM 7/02/2013, you wrote:<br>
<blockquote type="cite">Hi All, <br><br>
I am using inline code (WritePort) in Eprime2 to send triggers from the
test computer to an EEG computer. <br><br>
I would like to add a label to each trigger that specifies what type of
trial that specific trigger is associated with (there are several levels
to several variables). Does anyone have any insight for how I might go
about doing this?<br><br>
Thank you in advance!<br>
M<br><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@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/msg/e-prime/-/BEjt5C5n6n8J" target="_blank">
https://groups.google.com/d/msg/e-prime/-/BEjt5C5n6n8J</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>
 </blockquote><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@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>
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>
 </blockquote></div></div></div><div class="HOEnZb"><div class="h5">


<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%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@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>
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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Melaina T. Vinski<br>MSc Candidate<br>Psychology, Neuroscience & Behavior<br>Cognitive Sciences Lab<br>McMaster University<br>905-525-9140 ext. 22853
</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 e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@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 />