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.
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.
03-25-2013 01:40 PM
Hi,
I have a NI 9472 with a solenoid valve attached. I developed a simple vi to actuate the solenoid valve (normally closed) when a pre-set pressure (i.e. voltage) is reached, i.e., the valve opens when the pressure exceeds the setpoint and closes when it decreases below the setpoint. However, what I actually want the vi to do is to keep the valve open for a certain amount of time (say 1 sec), so that the pressure built-up can be fully released before the valve is closed, so then pressure is built-up from zero again and the cycle is repeated. I read some threads already but I haveen't found a answer that works for my application. Thanks for checking and looking forward for your help!
Solved! Go to Solution.
03-26-2013 03:29 PM
It's hard to be certain without knowing exactly how your code works, but you may be able to use a Wait(ms) vi in your code.
03-27-2013 10:26 AM - edited 03-27-2013 10:46 AM
03-27-2013 10:51 AM
Sorry, I should have included my vi (see attached).
The vi works such that when the voltage (controlled by a knob) reaches the set point, then the valve is opened. However, I don't know how I can keep the valve open for a 'certain' amount of time, regadless the voltage goes back immediately below the setpoint. This is to ensure that the pressure is fully released when I implement my real application.
Hope this helps!
03-27-2013 11:06 AM - edited 03-27-2013 11:07 AM
try this...make sure you put a wait function in your loop, otherwise you are using 100% of your CPU
03-27-2013 11:52 AM
Hi Apok,
That works! I'll try it with the pressure system and let you know how it goes. Thanks!