02-19-2013 01:12 AM - edited 02-19-2013 01:12 AM
Hello,
I'm wondering if there is a way to run a sequence that is triggered by a boolean or a comparison function.
Let's say you have an analog signal input that reads pressure sensor, and say you want a pump to turn on for 30 secs when the pressure goes above a specific value then switch off and then continue measuring the pressure after that 30 secs, how would you do it?
I know how to program everything else except for the "pump" sequence..I originally had a timed sequence, as in when the time is 1000 s turn pump on and when time is 1030 s turn pump off. Now I want to use my pressure as my reference, as in when pressure is greater than 30psi turn pump on and run for 30 s then turn pump off and measure new pressure, but the problem is the pressure will drop to 0 when the pump is turned on. So if I have a condition like if pressure is greater than 40psi turn pump on, once the pump kicks on the pressure will drop to zero and basically it won't work...so is there a way to trigger my pump sequence as soon as the pressure goes above my limit and run the sequence and then reset?
I hope it makes sense!
I'm using labview 8.0
02-19-2013 01:46 AM
The answer to your question is
State Machine
not sequence structure.
I repeat: State Machine.
hope this helps,
Norbert