<div dir="ltr">Hi everyone,<div><br></div><div>I've been referring to this older post for help getting E-prime to send output signals to a USB device: MCC USB-1208FS.  Since Eprime doesn't have any native functionality for communicating with a USB I'd like to try using the DLL the comes with the device's "Universal Library" installation as David suggests below.  However, I can't find any instructions for working with Eprime anywhere in the UL documentation (and the rep I chatted with at MCC help had never heard of Eprime), so I'm hoping that someone might be able to clarify two things for me:</div><div><br></div><div>1) Which MCC DLL file to I link to in Eprime? (and what is the syntax of the Declare statement?)  The MCC rep said I should use cbw64.dll, but I'm not sure if he's right since he didn't really know what I was talking about</div><div>2) What inline commands then do I use in Eprime to send the signal to the USB?  We had previously used WritePort with a different device that's been replaced with this USB</div><div><br></div><div>Thanks!</div><div><br></div><div>Annchen Knodt</div><div><br></div><br>On Monday, May 31, 2010 6:20:18 PM UTC-4, David McFarlane wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Sara,<p>Come to think of it, there is a way to send & receive data through USB <br>using E-Prime, in fact I am doing that for a project now.  First go to <br>Measurement Computing (referred to earlier) and get whatever I/O board <br>suits your fancy, e.g., their USB-1024 ($100).  When that arrives, <br>install the Universal Libray software that comes with it.  Then add the <br>appropriate Declare statements in the User Script area of your EP <br>program (see instructions that come with the MCC UL).  Now you can use <br>MCC UL function calls from EP inline code to send & receive data through <br>the USB port.</p><p>Recognizing that the MCC UL essentially just adds a DLL to provide the <br>USB support, with enough ingenuity you could take this even further by <br>writing your own DLL to use from EP.  For that, you might want to take a <br>look at "USB Complete" by Jan Axelson.</p><p>Mind you, I am not advising you do any of this.  Just being an academic <br>and pointing out the full range of possibilities.</p><p>-- David McFarlane, Professional Faultfinder</p><p><br>David McFarlane wrote:<br>> Sara,<br>> <br>> Stock reminder:  1) I do not work for PST.  2) PST's trained staff <br>> really does like to take any and all questions at <br>> <a href="http://support.pstnet.com/e%2Dprime/support/login.asp" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fsupport.pstnet.com%2Fe%252Dprime%2Fsupport%2Flogin.asp\46sa\75D\46sntz\0751\46usg\75AFQjCNGivKXvQfxYcucJztVk4KS8DCk8jQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fsupport.pstnet.com%2Fe%252Dprime%2Fsupport%2Flogin.asp\46sa\75D\46sntz\0751\46usg\75AFQjCNGivKXvQfxYcucJztVk4KS8DCk8jQ';return true;">http://support.pstnet.com/e%<wbr>2Dprime/support/login.asp</a> , and they strive <br>> to respond to all requests in 24-48 hours -- this is pretty much their <br>> substitute for proper documentation, so make full use of it.  3) If you <br>> do get an answer from PST Web Support, please extend the courtesy of <br>> posting their reply back here for the sake of others.<br>> <br>> That said, here is my take ...<br>> <br>> Unless PST has added something new to the latest release of EP2, E-Prime <br>> simply has no facility for sending or receiving data through a USB port, <br>> so you are just out of luck there.  But do not take my word for this, <br>> please contact PST Web Support yourself and then report back here.<br>> <br>> Say, why not just install another parallel port?  Or, does your other <br>> device need all 8 outputs from the parallel port?  If not, why not just <br>> build a cable to send different wires to your different devices?  Just <br>> take a look at the book "Parallel Port Complete" by Jan Axelson to get <br>> some idea of how to make full use of the parallel port.  Or, skip the <br>> parallel port and just install a real digital I/O card (e.g., from <br>> <a href="http://www.mccdaq.com" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.mccdaq.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEob8qL3KaS_c7RPr6ngccTgxBMgg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.mccdaq.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEob8qL3KaS_c7RPr6ngccTgxBMgg';return true;">http://www.mccdaq.com</a> ).<br>> <br>> -- David McFarlane, Professional Faultfinder<br>> <br>> <br>>> does anyone knows the scropt to open the USB port in order to trigger<br>>> a TMS?<br>>><br>>> please, let me know<br>>> I have to send a trigger though the USB port, because the parallel<br>>> port is used to trigger another device.<br>>><br>>> thank you very much<br>>> Sara</p><p></p><p></p><p></p><p></p><p></p><p></p></blockquote></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/abae322f-1989-40d7-8572-b9ee86fa3365%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/e-prime/abae322f-1989-40d7-8572-b9ee86fa3365%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />