Hi, all,
I'm trying to implement a VI that detects that a boolean input is changing state at least twice within one second. (If the input represents nonzero current through a LED, the output should be true when the LED is blinking.)
This VI will be used as a sub-VI of other VI's, so it can't contain infinite loops. (I have a design working that uses an infinite WHILE loop and "Delay Values" Express VIs, but it blocks when called as a sub-VI, so I can't use it. See attachment.)
I've tried using collectors and delays, but am having a hard time with complaints about dt being negative, different, etc. when I try to wire delayed signals into comparators.
Does anyone here have an idea for a simple design that will do what's needed?
Thanks,
- Steve.