LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer/Delay on outputs. (How?)

Hello, I got this VI where I'm sensing temperature, if the temperature is bigger than my setpoint, I want the output to be "on" at least for 5 seconds, even if the temperature returns to a controlled behavior, this way I can avoid the outputs to be changing "on" and "off" a lot of times when the temperature is going above and below of the setpoint.

So, if temp > setpoint then turn on x pin for at least 5 seconds, even if the temperature goes back to normal. And of course, if the temperature is > than setpoint, reset timer, or keep the output on..

suggestions ?

http://i.imgur.com/awSsy9M.png

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

Hey RayJz92,

Use the Tick Count (ms) VI to read the time when you turn the output on or off.  Then before you toggle it again check the change in time.  If it has not been long enough, don't change the output.

Let us know if that helps or if you need some more specific guidance.

Thanks!

-Sam K

LIFA Developer

0 Kudos
Message 2 of 2
(2,663 Views)