View Single Post
  #7   Spotlight this post!  
Unread 21-02-2010, 15:18
anyheck anyheck is offline
Registered User
FRC #2242 (Cougars)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: New Orleans
Posts: 26
anyheck is on a distinguished road
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.
Reply With Quote