|
Re: Creating a "delay" for a boolean value
I always use them as SubVi-s. So unwrapping them I'm not sure I'll have to look in a bit. You should be able to set up some momentary boolean and have it output a boolean that stays true or false for the millisecond value.
They are set to be "reentrant" so you can use them wherever you want and not have race conditions.
I was using one in periodic yesterday and it didn't behave as expected, but then I passed it back into teleop with a global and it was fine.
Sometimes I'll daisy-chain them together for doing multiple timings or sequential timing.
The latch switch ignores re-pressing so you can use the one-loop-latch as a trigger to the countdown vi if you need an exact timing length.
|