|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: How do you program joystick buttons in LabVIEW?
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 |
|
#2
|
||||
|
||||
|
Re: How do you program joystick buttons in LabVIEW?
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...)) |
|
#3
|
||||
|
||||
|
Re: How do you program joystick buttons in LabVIEW?
I don't have joystick Get function in my palette , what should I do please ?
|
|
#4
|
|||||
|
|||||
|
Re: How do you program joystick buttons in LabVIEW?
To get it, just do like on this image:
|
|
#5
|
||||
|
||||
|
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 ![]() |
|
#6
|
|||||
|
|||||
|
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.
|
|
#7
|
||||||
|
||||||
|
Re: How do you program joystick buttons in LabVIEW?
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.
|
|
#8
|
|||
|
|||
|
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. |
|
#9
|
|||||
|
|||||
|
Re: How do you program joystick buttons in LabVIEW?
But, do you have the FRC version of Labview?
|
|
#10
|
||||
|
||||
|
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.
Last edited by pastelpony : 13-04-2014 at 10:22. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tip if you ever want to program network applications in LabVIEW | Michael Hill | National Instruments LabVIEW and Data Acquisition | 1 | 24-10-2008 20:31 |
| Programing joystick buttons | Shivang1923 | Programming | 8 | 09-02-2008 16:21 |
| Buttons to Pins on Joystick | yarb65 | Electrical | 1 | 24-08-2007 20:39 |
| How many buttons do you have? | Bcahn836 | Chit-Chat | 12 | 01-09-2004 23:34 |
| Does anyone have an idea on how to make a joystick program for an operating board? | necroprime | Programming | 8 | 09-11-2002 19:04 |