From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i control a solenoid valve using time as an input?

i am trying to control 4 solenoids using labVIEW 8.2.1 and a DAQ 9172 box.I want to control the time period that the valve is on as well as the number of times certain valves are on.
0 Kudos
Message 1 of 3
(2,406 Views)

Hi Mfundo,

where do you have problems? Can you communicate to your DAQ card? Do you use a real time system? How accurate do you need the time period?

 

Mike

0 Kudos
Message 2 of 3
(2,371 Views)

Also, what cards are you using? Is the solenoid controlled by an analog voltage? analog current? or digital voltage? It seems to me that you would need something like the NI 9263 AO card to control the solenoid position.

 

Like Mike said, it is important to know what sort of time period you're trying to use. You can use the operating system time in LabVIEW to determine what value you will output to your solenoid using something like Time Elapsed VI. If the time periods you are looking to control with are too small you won't really be able to achieve that kind of control with a 9172, you may need to look into using a cRIO chassis instead that has hardware timed control. 

 

Chris W

0 Kudos
Message 3 of 3
(2,348 Views)