![]() |
How do you program joystick buttons in LabVIEW?
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. |
Re: How do you program joystick buttons in LabVIEW?
1 Attachment(s)
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 |
Re: How do you program joystick buttons in LabVIEW?
1 Attachment(s)
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...)) |
Re: How do you program joystick buttons in LabVIEW?
I don't have joystick Get function in my palette , what should I do please ?
|
Re: How do you program joystick buttons in LabVIEW?
1 Attachment(s)
To get it, just do like on this image:
|
Re: How do you program joystick buttons in LabVIEW?
Quote:
|
Re: How do you program joystick buttons in LabVIEW?
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 :)
|
Re: How do you program joystick buttons in LabVIEW?
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.
|
Re: How do you program joystick buttons in LabVIEW?
Quote:
There are joystick & keyboard functions there. I have been using them to explore the SpaceMouse and the Logitech GamePad interfaces. |
Re: How do you program joystick buttons in LabVIEW?
But, do you have the FRC version of Labview?
|
Re: How do you program joystick buttons in LabVIEW?
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.
|
| All times are GMT -5. The time now is 08:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi