View Full Version : How do you program joystick buttons in LabVIEW?
darkpheonix
12-12-2008, 21:32
Hi guys,
How do you program joystick buttons in LabVIEW, or program anything with the joystick for that matter? I kinda figured out how the drive VI and joystick get axis VI work but I'm lost on how to use the joystick get VI to do anything else. I'm totally new to LabVIEW so any help would be appreciated.
ZInventor
13-12-2008, 00:03
here's a simple program i wrote to output the data from my USB COMBATSTICH 568
it just displays the outputs, but it should help you get started...
the data is oupput as clusters, that you can unbundle, and use the data from...
-Z
whitetiger0990
13-12-2008, 00:51
Are we talking about getting it off the DS, or off a joystick plugged into the computer?
If the second, then ZInventor's VI should work, if you're looking for help for this year's control system, then see the attached. Joystick Get outputs 2 bundles, one with 12 booleans (for the buttons), the other with 6 doubles (for the axises (I've never seen more than 3 though...))
bol_clubiste
09-04-2014, 07:06
I don't have joystick Get function in my palette , what should I do please ?
EDesbiens
09-04-2014, 19:50
To get it, just do like on this image:
Joe Ross
09-04-2014, 19:53
I don't have joystick Get function in my palette , what should I do please ?
This is a forum for the FIRST Robotics competition, which has it's own LabVIEW library. The FIRST Library will not do what you want. I recommend asking at the NI Community forums for a general answer.
bol_clubiste
09-04-2014, 20:00
Thank you :) ! I already have looked in the Net about this problem and I found that I must install WPI Robotics Library , but I coudn't find a link or a site to download , Please can you give me a link ?? thank you very much brother :)
Alan Anderson
09-04-2014, 22:51
Unless you're going to be controlling a National Instruments cRIO-FRC with associated I/O hardware and a networked Driver Station, the WPI library won't do anything helpful for you. For reading joysticks, what you probably want is in the Connectivity -> Input Device function palette.
I don't have joystick Get function in my palette , what should I do please ?
Look for Connectivity->Input Devices
There are joystick & keyboard functions there. I have been using them to explore the SpaceMouse and the Logitech GamePad interfaces.
EDesbiens
10-04-2014, 07:13
But, do you have the FRC version of Labview?
pastelpony
13-04-2014, 10:20
Wire an "unbundle by name" to the "buttons" output on the joystick "Get" command. The buttons generated will be treated as booleans and can be used in tandem with case structures, subVIs, etc to complete an operation with a button press.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.