08-11-2013 02:08 PM
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 ?
08-12-2013 04:04 PM
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