Go to Post I am alive today because I can't hold onto things. - Al Skierkiewicz [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 11-02-2010, 10:50
PlaidPillagers's Avatar
PlaidPillagers PlaidPillagers is offline
Registered User
FRC #2538 (Plaid Pillagers)
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Morris, Minnesota
Posts: 29
PlaidPillagers is an unknown quantity at this point
Help Reading Joystick button Values

I'm programming our robot in C++, but there is a rookie team in our area to which I am currently providing assistance, and I can't figure out how to read a button value in LabView.

Sorry to ask such a trivial question, but thanks a bunch!
-Matt
__________________
Team 2538
Plaid Pillagers
Morris, Minnesota
Rookie Year 2008
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2010, 11:27
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Help Reading Joystick button Values

Using a Joystick Get...
  • Hover over the Joystick Get icon and you'll see three outputs on the right side. The bottom output is for buttons.
  • Put your curser on the button output, right-click and choose Cluster, Class, & Variant Palette -> Unbundle by Name (it's the first choice)
  • Place the box you get and wire it to the button output on Joystick Get
  • You'll see Button 1 if you did it right. That can be switched to any other button or the box can be expanded to show multiple buttons.
  • The button output can then be wired someplace else that uses the value or displays it.
Attached Thumbnails
Click image for larger version

Name:	UnbunbleByName.jpg
Views:	32
Size:	20.3 KB
ID:	8618  Click image for larger version

Name:	JoystickButtons.jpg
Views:	35
Size:	5.3 KB
ID:	8619  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2010 at 11:33.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Robot values during a match jmanela NI LabVIEW 2 07-03-2009 19:58
Joystick Button Motor!!! HELP!!! furiousgeorge Programming 3 07-02-2009 22:57
Joystick Button Programming in Labview Help Needed domoarigato NI LabVIEW 11 28-01-2009 10:55
Reading Joystick Values Help FearlessLeader C/C++ 5 17-01-2009 23:33
Joystick values (?) beefy1 Programming 1 23-12-2008 11:26


All times are GMT -5. The time now is 08:54.

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