Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Help Reading Joystick button Values (http://www.chiefdelphi.com/forums/showthread.php?t=82392)

PlaidPillagers 11-02-2010 10:50

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

Mark McLeod 11-02-2010 11:27

Re: Help Reading Joystick button Values
 
2 Attachment(s)
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.


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

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