View Single Post
  #1   Spotlight this post!  
Unread 19-02-2011, 19:38
captainking's Avatar
captainking captainking is offline
Level 85 Programmer
FRC #0168 (MIB)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: North Miami Beach
Posts: 41
captainking is an unknown quantity at this point
Individual Button Presses

Hey, we are running a claw on the robot and want to make it so that pressing a button opens it, and then pressing it again closes it.

We have 2 limit switches to determine whether the claw is open or closed.

Our problem is that when we hold the button down, due to it being in a loop, it constantly switches between the "closing" state and the "opening state".

How can we make it so that LabVIEW reads each button press individually instead of checking it every loop iteration?
__________________
Integrity first
Service before self
Excellence in all we do
Reply With Quote