Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   How do you program joystick buttons in LabVIEW? (http://www.chiefdelphi.com/forums/showthread.php?t=70564)

darkpheonix 12-12-2008 21:32

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.

ZInventor 13-12-2008 00:03

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

whitetiger0990 13-12-2008 00:51

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...))

bol_clubiste 09-04-2014 07:06

Re: How do you program joystick buttons in LabVIEW?
 
I don't have joystick Get function in my palette , what should I do please ?

EDesbiens 09-04-2014 19:50

Re: How do you program joystick buttons in LabVIEW?
 
1 Attachment(s)
To get it, just do like on this image:

Joe Ross 09-04-2014 19:53

Re: How do you program joystick buttons in LabVIEW?
 
Quote:

Originally Posted by bol_clubiste (Post 1371571)
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

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 :)

Alan Anderson 09-04-2014 22:51

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.

tcjinaz 10-04-2014 01:30

Re: How do you program joystick buttons in LabVIEW?
 
Quote:

Originally Posted by bol_clubiste (Post 1371571)
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

Re: How do you program joystick buttons in LabVIEW?
 
But, do you have the FRC version of Labview?

pastelpony 13-04-2014 10:20

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