LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

10 port valve control

Hi,

Can someone please direct me to any examples/tutorials showing the control of 10 port (or 6/8 port)  2 position valve using labVIEW.

 

Thank you

0 Kudos
Message 1 of 36
(6,400 Views)

There probably aren't any examples.

 

LabVIEW doesn't control valves.  You need some sort of hardware to control valves.  Solenoids, relays, perhaps some sort of fancy electronics.  What sort of electronic or electrical hardware do you have to interface with your valves?

 

Once we know that then we can figure out how the PC can interface with that.  Perhaps a data acquisition card that has digital outputs.

 

From there, there are numerous examples in LabVIEW's example finder that will show you how to control digital outputs.

0 Kudos
Message 2 of 36
(6,387 Views)

Hi,

I mean something like this(http://www.vici.com/act/mic.php). I was wondering about a labVIEW program that would control the valve. i.e basically to allow switching between the valve positions.

0 Kudos
Message 3 of 36
(6,383 Views)

And what control method have you chosen. The options as listed are TTL, RS-232, and RS-485. There is a big difference in code depending on what you want to use.

0 Kudos
Message 4 of 36
(6,368 Views)

Well, we have one instrument that control the valve positioning via labVIEW and it communicates via bluetooth. (sorry I'm new to this, my explaining might not be very helpful Smiley Sad) But anyway I guess RS232 would do.

0 Kudos
Message 5 of 36
(6,361 Views)

Then you plan on having ten separate devices and 10 separate com ports with 10 separate cables to each device? Your choice but a cheap TTL interface would perhaps make more sense. The other is RS485 with multidrop.

 

0 Kudos
Message 6 of 36
(6,354 Views)

Hi 

 

I understand what you want as I do use VICI valves in my projects and usually I do labview software to control the position of the valve.

 

What you mean by 10 port is the number of connections of the valve itself not the number of com ports (or RS485 nodes).

 

As you said your valve only have two positions, so first you need to know what controller model you have:

-The old model (serial number starts with EM2C) http://www.vici.com/support/tn/tn413.pdf

-The new model (serial number starts with E2CA) http://www.vici.com/support/tn/tn421.pdf

 

Take a look on the correct manual and in page 4 and 5 you have all the info about the communication protocol. Read that.

 

The what you need to do is use VISA for serial communication

See the BasicSerialWriteandRead.vi in the examples. Screenshot below

 

write the command you want in the "string to write" string control a test it

serial write read.png

Message 7 of 36
(6,337 Views)

Hey thanks mgouveia,

I'll study this and see how i can relate it to my project. Thanks again

0 Kudos
Message 8 of 36
(6,272 Views)

Hi,

So I tried running the basic serial write and read VI with commands given in the valve actuator manual but I don't get any response. When I type in a command in the 'string to write' I don't get any output in the read string  and then the program ends executing. Any idea what might be going on? (We can manually switch positions of the actuator but cannot get any digital control)

 

Thanks

 

0 Kudos
Message 9 of 36
(6,229 Views)

Let's get away from Labview for a moment and just focus on the communication.

 

Run Hyperterminal and set the communication settings as suggested in the documentation. If you type VR or *VR and hit the enter key, what happens?

0 Kudos
Message 10 of 36
(6,220 Views)