Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Joystick - Action Only Once (http://www.chiefdelphi.com/forums/showthread.php?t=101913)

Ddres0605 04-02-2012 01:19

Joystick - Action Only Once
 
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!

MotorHead 04-02-2012 08:16

Re: Joystick - Action Only Once
 
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.

cilginbilgin 04-02-2012 11:47

Re: Joystick - Action Only Once
 
Quote:

Originally Posted by Ddres0605 (Post 1119621)
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!

Team 358 shares some code examples on this link including various button examples. Hope that helps:

http://team358.org/files/programming...2009-/LabVIEW/


All times are GMT -5. The time now is 11:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi