<html>
<body>
<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" eudora="autourl">
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" eudora="autourl">
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" eudora="autourl">
http://www.cedrus.com/support/stimtracker/tn1411_eprime.htm<br><br>
</a>good luck<br><br>
<br>
At 01:11 AM 8/02/2013, you wrote:<br>
<blockquote type=cite class=cite cite="">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">
alphonse.stickle@gmail.com</a>> wrote:<br>

<dl><br>

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

<dd>At 12:40 PM 7/02/2013, you wrote:<br><br>
<br>
<blockquote type=cite class=cite 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>' assess item level and send appropriate trigger code to NuAmps<br>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<dd>End If<br><br>

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

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

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

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

<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>Thank you in advance!<br>

<dd>M<br><br>

<dd>-- <br>

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

<dd>To unsubscribe from this group and stop receiving emails from it,
send an email to
<a href="mailto:e-prime%2Bunsubscribe@googlegroups.com">
e-prime+unsubscribe@googlegroups.com</a>.<br>

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

<dd>To view this discussion on the web visit
<a href="https://groups.google.com/d/msg/e-prime/-/BEjt5C5n6n8J">
https://groups.google.com/d/msg/e-prime/-/BEjt5C5n6n8J</a>.<br>

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

<dd> <br>

<dd> </blockquote><br>

<dd>-- <br>

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

<dd>To unsubscribe from this group and stop receiving emails from it,
send an email to
<a href="mailto:e-prime%2Bunsubscribe@googlegroups.com">
e-prime+unsubscribe@googlegroups.com</a>.<br>

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

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

<dd> <br>

<dd> </blockquote><br>

<dd>-- <br>

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

<dd>To unsubscribe from this group and stop receiving emails from it,
send an email to
<a href="mailto:e-prime%2Bunsubscribe@googlegroups.com">
e-prime+unsubscribe@googlegroups.com</a>.<br>

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

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

<dd> <br>

<dd> <br><br>

</dl><br><br>
<br>
-- <br>
Melaina T. Vinski<br>
MSc Candidate<br>
Psychology, Neuroscience & Behavior<br>
Cognitive Sciences Lab<br>
McMaster University<br>
905-525-9140 ext. 22853 <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 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>
 </blockquote></body>
</html>

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