<div dir="ltr"><div><div><div>Well, I'm not familar with this type of pump, but it sounds like you're mixing up the TTL/IO and RS232 connectors. Just saw a picture in the manual, and it seems like you must use a special cable that connects the RS232 port of the computer to the RJ11 (phone type) sockets. The other 9-pin connector is the TTL/IO connector. (Why on earth, did the designers of this system make this terrible choice with the DB-9...?)<br>
<br>Also, make sure that the pump itself is configured properly (RS232 mode, baudrate, network address, ...)<br><br></div>I don't think I have an example inline script available that would be usable in this case, so I'm afraid you'll have to dig into the manuals and learn the EBasic syntax. A terminal emulator might help to test and understand the (basic) protocol without doing any programming. The safe-mode protocol requires real programming, though.<br>
<br></div>You still might consider using the TTL/IO port using the parallel printer port for example. Programming would be simpler in that case. Or otherwise send me an ounce of gold and I will program the RS232 protocol for you :)<br>
<br><br></div>paul<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 July 2013 18:47, John <span dir="ltr"><<a href="mailto:jpryan28@gmail.com" target="_blank">jpryan28@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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><div class="im"><br><br>On Sunday, July 28, 2013 11:57:06 AM UTC-4, Paul Groot wrote:</div><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><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><div><br><br><div class="gmail_quote"><div class="im">On 28 July 2013 16:50, John <span dir="ltr"><<a>jpry...@gmail.com</a>></span> wrote:<br>

</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">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/<u></u>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></div><span><font color="#888888"><div class="im">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br></div>
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>.<div class="im"><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/<u></u>msgid/e-prime/eec694e3-342c-<u></u>4bfe-a7f8-ef0ac1e3418a%<u></u>40googlegroups.com</a>.<br>


For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<u></u>groups/opt_out</a>.<br>
 <br>
 <br>
</div></font></span></blockquote></div><br></div>
</blockquote></div></div><div class="im">

<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%2Bunsubscribe@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></div>
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" target="_blank">https://groups.google.com/d/msgid/e-prime/d62629fa-49f0-4fb1-9219-23129fe7d5d0%40googlegroups.com</a>.<div class="HOEnZb">
<div class="h5"><br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out</a>.<br>
 <br>
 <br>
</div></div></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 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/CAKAdR-tTp%2BvWwGtYYEgAZQcayuP4kKGEWBwQkCQ5ZxeiSxKz6w%40mail.gmail.com">https://groups.google.com/d/msgid/e-prime/CAKAdR-tTp%2BvWwGtYYEgAZQcayuP4kKGEWBwQkCQ5ZxeiSxKz6w%40mail.gmail.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 />