02-11-2009 08:29 AM
Hello,
I'm trying to control a solenoid valve and synchronize it with a syringe pump. The syringe pump is currently controlled by a LabView program and has an RS-232 outlet and TTL I/O. I would like to stop the syringe pump and close the solenoid valve through LabView. How am I supposed to do this?
Thanks
02-11-2009 09:31 AM
What make/model is the pump?
You state it has TTL I/O and it is currently being controlled by a LabVIEW program. Does the command set for the pump allow you to control the I/O? If so, send a command to turn on an output right after sending the command to stop the pump. You would need some interface circuitry between the output port and the pump since I doubt the ouput has enough current/voltage to power the valve.
Once we know the make/model we can probably give you more details.
-AK2DM
02-23-2009 10:54 AM
It's a New Era Pump System Inc, model no. NE-1000. Currently the program doesn't control the TTL I/O. I'm currently controlling the pump using an RS-232 connection.
What kind of circuitry should I get for connecting the two? I'm planning to get the miniature solenoid valve here: http://www.mcmaster.com/#miniature-solenoid-valves/=q8r27
Sorry, I'm a complete newbie in these areas. Thank you so much for the help.
02-23-2009 01:11 PM
The pump has a TTL output that you can set high or low within the program of your pump, see the last paragraph of this page:
http://www.syringepump.com/NE-1000.htm
I'm not sure if there is also a command that can be sent in the RS-232 data to toggle this output directly, you will have to look through the pump's programming manual.
I looked at the page for your solenoid, I need to know what coil voltage you will be using in order to give details on how to apply power to it.
-AK2DM
02-25-2009 09:25 PM
I will be using the 24 DV voltage for the power supply.
I looked at the manual of the pump and I didn't really find anything to toggle this output directly from RS-232. How do I send the command to control the TTL output through LabView then?
02-26-2009 01:19 PM
Hello,
To send serial commands from LabVIEW you can use VISA. If you would like to see an example of how to perform serial reads and writes in VISA, you can see the Basic 2 Port Serial Write and Read.vi example in the Example Finder. The example finder can be found by going to Help»Find Examples from LabVIEW. This example is in Hardware Input and Output»Serial
National Instruments
03-15-2010 09:42 AM
08-31-2010 05:15 PM
Hi, there
Is there any update and/or solution to this? I am facing the similar problem and really appreciate for your help. Thanks
09-01-2010 12:52 PM
Hi supernanny,
There are actually several answers offered above. You can send out and receive serial communication on a COM port of your PC using VISA in LabVIEW. You can also send a digital output pulse to turn on the solenoid if necessary from a DAQ device. Have you tried the above solutions/suggestions? If yes, are you having any success or troubles with the methods?
Best,