Hey. I need some help with some joystick programming. I want to make it so an action happens only when the button is pressed down. Example: A button is pressed and a bimba extends or something like that then, it only retracts when the button is pressed again. Any help would be appreciated! Thanks!
What you are referring to is called latching a button. Once you press and release a button, it maintains that state until it is pressed again. In the LabView FRC examples, there is an example demonstrating this. You can get to it by starting at the LabView Getting Started Window. Select ‘Support’ on the left and select ‘Find FRC Examples’. You will see folder call ‘Joystick’. Under here is an example program demonstrating button latching.
Give it a try and if you have more questions, post back.
Team 358 shares some code examples on this link including various button examples. Hope that helps:
http://team358.org/files/programming/ControlSystem2009-/LabVIEW/