triggering syringe pump network
Paul Groot
pfc.groot at gmail.com
Tue Jul 30 19:36:26 UTC 2013
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...?)
Also, make sure that the pump itself is configured properly (RS232 mode,
baudrate, network address, ...)
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.
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 :)
paul
On 30 July 2013 18:47, John <jpryan28 at gmail.com> wrote:
> 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.
>
> 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.)
>
>
>
> On Sunday, July 28, 2013 11:57:06 AM UTC-4, Paul Groot wrote:
>
>> 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 <jpry... 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<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+u...@**googlegroups.com.
>>> To post to this group, send email to e-p... 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<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<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/d62629fa-49f0-4fb1-9219-23129fe7d5d0%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-tTp%2BvWwGtYYEgAZQcayuP4kKGEWBwQkCQ5ZxeiSxKz6w%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/20130730/ebf6d4d9/attachment.htm>
More information about the Eprime
mailing list