triggering syringe pump network
Paul Groot
pfc.groot at gmail.com
Sun Jul 28 15:57:06 UTC 2013
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.
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.
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.
best
Paul
On 28 July 2013 16:50, John <jpryan28 at gmail.com> wrote:
> I'm trying to program my first e-prime experiment and am wondering what
> the best way to do this is:
>
> I need have two syringe pumps in a network (addresses 00 and 01,
> http://www.braintreesci.com/prodinfo.asp?number=BS-8000). One pump will
> hold one type of fluid (milkshake) and the other will hold a water solution.
>
> Meanwhile, I will be displaying visual stimuli "TASTE" to participants.
>
> I have a USB->Serial cable that runs from the computer to the first pump
> in the network.
>
> 1) What would be the best way to set up the trial so the pump will trigger
> as soon as the "TASTE" stimuli appears?
>
> 2) How do I get eprime to trigger the pump and send the signal to address
> 00 or 01?
>
>
> Any input is helpful....I'm lost. :-)
>
> --
> You received this message because you are subscribed to the Google Groups
> "E-Prime" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to e-prime+unsubscribe at googlegroups.com.
> To post to this group, send email to e-prime at googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/e-prime/eec694e3-342c-4bfe-a7f8-ef0ac1e3418a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAKAdR-t6LP15qDHf7Wz5cyD2tDX%2B8S_K60pu7T8bu8GqARZxhw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20130728/57a223a2/attachment.htm>
More information about the Eprime
mailing list