Hi Paul - thank you for your response. Yes, you're right -- It's a USB->Serial cord connection that plugs into the back of the first pump (strangely, into the space that is labeled TTL/IO? I don't know if that's a problem). In the device manager of windows I can see that it's Com4 and added that information (and the baud rate) into the Serial objects within the experiment.<div><br></div><div>Do you know of any examples for the inline script? We tried putting a small inline file with just "Serial.WriteString" -- but even just starting the eprime program causes the pump to trigger. (Ideally it wouldn't be triggering until later in the experiment after instructions, etc.)<br><div><br></div><div><br><br>On Sunday, July 28, 2013 11:57:06 AM UTC-4, Paul Groot wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div><div><div><div>I'm a bit confused with the terminology here: this type of pump is connected using a serial RS232 connection, which is normally not referred as a network (like in Ethernet network). However, I assume that several pumps can be 'daisy chained', to form a kind of chain which is called a 'network' by the manufacturer.<br>
<br></div>Anyway, RS232 connections can be managed by using a 'Serial' device, which can be added in the devices tab of the Experiment settings. Baudrate and other setting should correspond to the device settings. It is important to select the right COM port number. You should check which port number was assigned to the (virtual) USB to RS232 device (using the device manager of windows). Normally each USB port will be assigned a different number, so you will have to keep that in minds when inserting the cable in one of the USB ports. The next thing to do is to create some inline script to programm the communication. Functions you typically would use are SerialDevice.WriteString, SerialDevice.WriteBytes etc. (Check the EBasic guide for more details) The communication protocol depicts exactly what information should be sent and read so you should read the relevant chapter from manual carefully. Often, it is possible to use a so called terminal emulator to simply enter the ASCII commands by hand to test which strings should be sent. (This would only be possible if the communication is completely ASCII-based and doesn't use complex handshaking or checksum stuff). First try to interface with a single pump. Then connect both and make sure they have a unique address assigned to them.<br>
<br></div>If you're not familiar with programming RS232 protocols, this might be quite challenging. If the device offers a digital TTL interface for triggering, this would probably be much easier to program. However, TTL interfaces are less flexible in most cases.<br>
<br></div>best<br></div>Paul<br><div><div><div><br><br></div></div></div></div><div><br><br><div class="gmail_quote">On 28 July 2013 16:50, John <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="W3Uv2az7Ta4J">jpry...@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to program my first e-prime experiment and am wondering what the best way to do this is:<div><br></div><div>
I need have two syringe pumps in a network (addresses 00 and 01, <a href="http://www.braintreesci.com/prodinfo.asp?number=BS-8000" target="_blank">http://www.braintreesci.com/<wbr>prodinfo.asp?number=BS-8000</a>). One pump will hold one type of fluid (milkshake) and the other will hold a water solution.</div>
<div><br></div><div>Meanwhile, I will be displaying visual stimuli "TASTE" to participants.</div><div><br></div><div>I have a USB->Serial cable that runs from the computer to the first pump in the network.</div>
<div><br></div><div>1) What would be the best way to set up the trial so the pump will trigger as soon as the "TASTE" stimuli appears?</div><div><br></div><div>2) How do I get eprime to trigger the pump and send the signal to address 00 or 01?</div>
<div><br></div><div><br></div><div>Any input is helpful....I'm lost. :-)</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 href="javascript:" target="_blank" gdf-obfuscated-mailto="W3Uv2az7Ta4J">e-prime+u...@<wbr>googlegroups.com</a>.<br>
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="W3Uv2az7Ta4J">e-p...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/eec694e3-342c-4bfe-a7f8-ef0ac1e3418a%40googlegroups.com" target="_blank">https://groups.google.com/d/<wbr>msgid/e-prime/eec694e3-342c-<wbr>4bfe-a7f8-ef0ac1e3418a%<wbr>40googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<wbr>groups/opt_out</a>.<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</blockquote></div></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 />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/d62629fa-49f0-4fb1-9219-23129fe7d5d0%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/d62629fa-49f0-4fb1-9219-23129fe7d5d0%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 />
<br />
<br />