PDA

View Full Version : How do you program joystick buttons in LabVIEW?


darkpheonix
12-12-2008, 09:32 PM
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
12-13-2008, 12:03 AM
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
12-13-2008, 12:51 AM
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...))