LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running a Sequence

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

0 Kudos
Message 1 of 2
(2,096 Views)

The answer to your question is

State Machine

 

not sequence structure.

 

I repeat: State Machine.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 2
(2,081 Views)