Go to Post I have caught a very strong case of FIRST fever. - weinbergmath [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2011, 00:37
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: Trying to program joystick buttons

I suggest you go to www.frcmastery.com it is a great resource for learning LabVIEW
__________________
Expect the best, Prepare for the worst
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2011, 10:37
Durham86 Durham86 is offline
Registered User
FRC #2883
 
Join Date: Dec 2009
Location: warroad,MN
Posts: 8
Durham86 is an unknown quantity at this point
Re: Trying to program joystick buttons

As of right now we have our buttons set up to momentary. What we want it to do is latch so that when you hit one button the cylinder will shoot out and when we hit the same button it will retract. So basically what I am asking is how do you set that up programming wise.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2011, 11:18
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,280
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Trying to program joystick buttons

Quote:
Originally Posted by Durham86 View Post
As of right now we have our buttons set up to momentary. What we want it to do is latch so that when you hit one button the cylinder will shoot out and when we hit the same button it will retract. So basically what I am asking is how do you set that up programming wise.
NI provided an example of this. Check out :

Program Files >> National Instruments >> LabVIEW 8.6 >> examples >> FRC >> Driver Station Inputs >> Joystick Button Latching >> Joystick Button Latching.vi
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2011, 11:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Trying to program joystick buttons

Quote:
Originally Posted by Durham86 View Post
What we want it to do is latch so that when you hit one button the cylinder will shoot out and when we hit the same button it will retract.
Please reconsider that decision. "Toggle" functions are not hard to do (in LabVIEW, C++, or any language), but they are rarely good driver interface design.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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