View Full Version : Help Reading Joystick button Values
PlaidPillagers
11-02-2010, 10:50
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
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.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.