<div dir="ltr">Nick,<div><br></div><div>Again - sticking with the use of some of the newer features in E-Prime 2.0 SP1, you can use the following script to send the same values, as long as the ParallelPort Device is added to the experiment, changed to LPT3, and the data port is set to "output" (all of this is in the ParallelPort Device Properties)</div>
<div><br></div><div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">If fb2type=0 Then</div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
   ParallelPort.WriteByte 42</div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">ElseIf fb2type=1 Then</div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
   ParallelPort.WriteByte 44<br></div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">ElseIf fb2type=2 Then</div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
   ParallelPort.WriteByte 46<br></div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">ElseIf fb2type=3 Then</div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
   ParallelPort.WriteByte 48<br></div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">End If​</div></div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
<br></div><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">I hope this is helpful.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 9:15 AM,  <span dir="ltr"><<a href="mailto:neuro.utsc@gmail.com" target="_blank">neuro.utsc@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 dir="ltr">Thanks, Ryan and Ben for the reply, <br><br>I actually tried changing it by the Lpt value first (see below) and when I initially went to change the port address I updated the refernce from "Writeport Lpt1%, x" to "Writeport Lpt3%, x" but this didn't seem to take either. Does the format remain unchanged or am I missing something here?<br>
<br>And are the x values (those specified after the Lpt port number) in a hexidecimal format? I'm wondering how the values below (i.e., &H2A, &H2C, etc.) translate into integer values when communicating with our acquisition software:<br>
<br><font color="black" face="Calibri,Arial,Helvetica,sans-serif" size="3"><span style="font-size:12pt"><div>If fb2type=0 Then</div>
<div>Writeport LptPort3%, &H2A </div>
<div>ElseIf fb2type=1 Then</div>
<div>Writeport LptPort3%, &H2C</div>
<div>ElseIf fb2type=2 Then</div>
<div>Writeport LptPort3%, &H2E</div>
<div>ElseIf fb2type=3 Then</div>
<div>Writeport LptPort3%, &H30</div>
<div>End If​<br><br>Thanks -<br><br>Nick<br><br></div></span></font><br><br><br><br><br><br><br><br>On Tuesday, April 22, 2014 4:32:02 PM UTC-4, Ryan W wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div>If anybody is running into this issue, E-Prime 2.0 sp1 allows you to reference the parallel port by the LPT value, rather than having to reference the hex address. The use of the hex address presented some problems with dynamically assigned values in older versions, as well as hex values that were greater than an integer (32768). I recommend upgrading the sp1 and using task events for port communication whenever possible.<br>
<br>Ryan Whitfield</div><div><br>On Apr 22, 2014, at 3:57 PM, ben robinson <<a>baltim...@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">I wound up having to use an old computer in order to send signals via parallel port, as new parallel ports use dynamically assigned port addresses, and as far as I could determine there is no way to determine the specific address that will be used at any given time. I realize how far fetched that sounds, but that was the best information I could gather.<div>


<br></div><div>ben</div></div><div><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 3:31 PM,  <span dir="ltr"><<a>neuro...@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 dir="ltr">Hello,<br><br>I apologize ahead of time - a lot of this technical information and jargon is new to me, which may be obvious in my question. I am using a dual port setup in order to send feedback-locked triggers to an EEG acquisition computer. The original task that we're using was programmed on a lab computer that had the common Lpt1 port address (&H378). We're now trying to run the task on a new computer that has an Lpt3 port address (listed as E010-E017). I've tried to run this using the different methods, using hexidecimal/decimal variations and combinations, but nothing seems to be working.<br>


<br>Has anyone ever come across a similar situation? Any helpful tips or advice would be much appreciated.<br><br>Cheers, <br><br>Nick<span><font color="#888888"><br></font></span></div><span><font color="#888888">

<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>e-prime+u...@<u></u>googlegroups.com</a>.<br>
To post to this group, send email to <a>e-p...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/ef1ab78d-ca3c-4928-8d08-afefc2f2b29e%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/<u></u>msgid/e-prime/ef1ab78d-ca3c-<u></u>4928-8d08-afefc2f2b29e%<u></u>40googlegroups.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><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 unsubscribe from this group and stop receiving emails from it, send an email to <a>e-prime+u...@<u></u>googlegroups.com</a>.<br>
To post to this group, send email to <a>e-p...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CABkDJUdiXRii%3D_2PjZ5kO5dyoS1LOAMbctoNYLXguu%2B5oCtR8A%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/<u></u>msgid/e-prime/CABkDJUdiXRii%<u></u>3D_<u></u>2PjZ5kO5dyoS1LOAMbctoNYLXguu%<u></u>2B5oCtR8A%40mail.gmail.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></div></blockquote></div></blockquote></div><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 unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@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/msgid/e-prime/7e2206f0-3481-4922-9544-e9c72a1821b7%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/e-prime/7e2206f0-3481-4922-9544-e9c72a1821b7%40googlegroups.com</a>.<br>

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/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/CAPStP_HayqmJk%2BA1H%2BQg9AtXG3UsFqh2cfUxA3-hZ2c92rOEDw%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/e-prime/CAPStP_HayqmJk%2BA1H%2BQg9AtXG3UsFqh2cfUxA3-hZ2c92rOEDw%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 />