jp,<br><br>This would be easy if the device or driver supports memory mapped IO, just like legacy parallel printer ports. Memory mapped IO can be programmed by using the WritePort function or Onset/OffsetSignal* properties. The E-Basic help documentation contains some printer-port based examples, which can be used as a starting point if you know which address maps to the digital output registers.<br>
<br>However, many modern (USB) based devices use other mechanisms to communicate with applications, so it depends on the available drivers which options you have. Unfortunately memory mapped IO is often not supported anymore. Most manufacturers provide visual basic or C-code examples that can be used as as starting point. In most cases you will have to use external function calls (typically DLL functions) using inline E-Basic script. This is less trivial than the memory mapped IO method.<br>
<br>best<br>Paul<br><br><div class="gmail_quote">2012/6/26 JP <span dir="ltr"><<a href="mailto:jeremiahperkins3@gmail.com" target="_blank">jeremiahperkins3@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am currently assisting in creating an experimental design for a professor. The task that i have right now is to wire two LEDs to a DAQ card and make them light up independently and randomly using Eprime inline code. We also need to make it so we can track the lighting so we know which light the participants may be responding to. I have found dozens of references regarding DAQ card coding but it all seems to be acquiring data through the card and not not using it to control a component. <div>
<br></div><div>I was wondering if anyone had an idea about what the coding might look like or how to accomplish this. </div><div><br></div><div><br></div><div>Thank you in advance for the help!!</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 view this discussion on the web visit <a href="https://groups.google.com/d/msg/e-prime/-/Gp8hAVZSNCQJ" target="_blank">https://groups.google.com/d/msg/e-prime/-/Gp8hAVZSNCQJ</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 unsubscribe from this group, send email to <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.<br>

For more options, visit this group at <a href="http://groups.google.com/group/e-prime?hl=en" target="_blank">http://groups.google.com/group/e-prime?hl=en</a>.<br>


</font></span></blockquote></div><br>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />

For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.<br />