<div dir="ltr">Thank you for your insights Peter!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 7, 2013 at 4:50 PM, Peter Quain <span dir="ltr"><<a href="mailto:pquain@une.edu.au" target="_blank">pquain@une.edu.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<br>
I've never used serial device. Sure, you can write to it, but I think
<i>what</i> you write will depend on how your EEG system is designed to
receive event information (detailed in its manual?). Others who know
these things will have to help. <br><br>
Maybe look in e-basic help, for "SerialDevice Object
(topic)"<br><br>
Or search this group for serial port ... here is a post by David
McFarlane, for example, who obviously knows of these things:<br><br>
<a href="https://www.pstnet.com/forum/Topic4793-8-1.aspx#bm4801" target="_blank">
https://www.pstnet.com/forum/Topic4793-8-1.aspx#bm4801<br><br>
</a>A couple of examples from google search of e-prime code to interface
with different external systems through serial port:<br><br>
<a href="http://www.mindmedia.nl/CMS/en/support/knowledge-base/item/272-how-to-run-an-e-prime-project-by-using-the-nti.html" target="_blank">
http://www.mindmedia.nl/CMS/en/support/knowledge-base/item/272-how-to-run-an-e-prime-project-by-using-the-nti.html<br>
<br>
</a>
<a href="http://www.cedrus.com/support/stimtracker/tn1411_eprime.htm" target="_blank">
http://www.cedrus.com/support/stimtracker/tn1411_eprime.htm<br><br>
</a>good luck<div><div class="h5"><br><br>
<br>
At 01:11 AM 8/02/2013, you wrote:<br>
</div></div><blockquote type="cite"><div><div class="h5">Thank you for your quick reply!
We are using a serial port - do these instructions follow for serial
ports as well? <br><br>
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:<br><br>
elseif c.GetAttrib ("numobs") = 10 <br>
          and c.GetAttrib
("type") = 3 then<br>
                
WritePort &H378, &HA<br><br>
Thank you kindly in advance - I appreciate the help!<br><br>
M<br><br>
<br><br>
<br>
On Wed, Feb 6, 2013 at 8:42 PM, Alphonse Stickle
<<a href="mailto:alphonse.stickle@gmail.com" target="_blank">
alphonse.stickle@gmail.com</a>> wrote:<br>

</div></div><dl><br>

<dd><div><div class="h5">.. for clarity sake, sorry, typo - Decimal address = 888, not
88<br><br>
<br>

</div></div></dd><dd><div><div class="h5">At 12:40 PM 7/02/2013, you wrote:<br><br>
<br>
<blockquote type="cite">
<dd>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>

</dd><dd>' assess item level and send appropriate trigger code to NuAmps<br>

</dd><dd>If c.GetAttrib ("numobs") = 1 then<br>

</dd><dd>
                
WritePort &H378, &H1<br><br>

</dd><dd>        elseif c.GetAttrib
("numobs") = 2 then<br>

</dd><dd>
                
WritePort &H378, &H2<br><br>

</dd><dd>        elseif c.GetAttrib
("numobs") = 3 then<br>

</dd><dd>
                
WritePort &H378, &H3<br><br>

</dd><dd>        elseif c.GetAttrib
("numobs") = 4 then<br>

</dd><dd>
                
WritePort &H378, &H4<br><br>

</dd><dd>        elseif c.GetAttrib
("numobs") = 5 then<br>

</dd><dd>
                
WritePort &H378, &H5<br><br>

</dd><dd>        elseif c.GetAttrib
("numobs") = 6 then<br>

</dd><dd>
                
WritePort &H378, &H6<br><br>

</dd><dd>        elseif c.GetAttrib
("numobs") = 7 then<br>

</dd><dd>
                
WritePort &H378, &H7<br><br>

</dd><dd>        elseif c.GetAttrib
("numobs") = 8 then<br>

</dd><dd>
                
WritePort &H378, &H8<br><br>

</dd><dd>        elseif c.GetAttrib
("numobs") = 9 then<br>

</dd><dd>
                
WritePort &H378, &H9<br><br>

</dd><dd>        elseif c.GetAttrib
("numobs") = 10 then<br>

</dd><dd>
                
WritePort &H378, &HA<br>

</dd><dd>End If<br><br>

</dd><dd>... here is a conversion tool:<br><br>

</dd><dd><a href="http://easycalculation.com/hex-converter.php" target="_blank">
http://easycalculation.com/hex-converter.php</a><br><br>

</dd><dd>At 12:23 PM 7/02/2013, you wrote:<br>
<blockquote type="cite">
<dd>Hi All, <br><br>

</dd><dd>I am using inline code (WritePort) in Eprime2 to send triggers from
the test computer to an EEG computer. <br><br>

</dd><dd>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>

</dd><dd>Thank you in advance!<br>

</dd><dd>M<br><br>

</dd><dd>-- <br>

</dd><dd>You received this message because you are subscribed to the Google
Groups "E-Prime" group.<br>

</dd><dd>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>

</dd><dd>To post to this group, send email to
<a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>
.<br>

</dd><dd>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>

</dd><dd>For more options, visit
<a href="https://groups.google.com/groups/opt_out" target="_blank">
https://groups.google.com/groups/opt_out</a>.<br>

</dd><dd> <br>

</dd><dd> </dd></blockquote></dd></blockquote></div></div></dd></dl></blockquote><br>

<dd>-- <br>

</dd><dd>You received this message because you are subscribed to the Google
Groups "E-Prime" group.<br>

</dd><dd>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>

</dd><dd>To post to this group, send email to
<a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>
.<br>

</dd><dd>For more options, visit
<a href="https://groups.google.com/groups/opt_out" target="_blank">
https://groups.google.com/groups/opt_out</a>.<br>

</dd><dd> <br>

</dd><dd> </dd><br>

</div><dd>-- <br>

</dd><dd><div><div class="h5">You received this message because you are subscribed to the Google
Groups "E-Prime" group.<br>

</div></div></dd><dd><div><div class="h5">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>

</div></div></dd><dd><div><div class="h5">To post to this group, send email to
<a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>
.<br>

</div></div><div class="im"></div></dd><dd>For more options, visit
<a href="https://groups.google.com/groups/opt_out" target="_blank">
https://groups.google.com/groups/opt_out</a>.<br>

</dd><dd> <br>

</dd><dd> <br><br>

</dd><div class="im"><br><br>
<br>
-- <br>
Melaina T. Vinski<br>
MSc Candidate<br>
Psychology, Neuroscience & Behavior<br>
Cognitive Sciences Lab<br>
McMaster University<br>
<a href="tel:905-525-9140%20ext.%2022853" value="+19055259140" target="_blank">905-525-9140 ext. 22853</a> <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>
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>
 </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 />