|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
in LabView, my team is trying to figure out how to use buttons in LabView. We have the button pallet opened but we can't figure out how to connect a joystick to the button pallet to get an input on whether or not the button has been pressed
Thanks ![]() |
|
#2
|
|||||
|
|||||
|
Re: buttons in LabView
The buttons on your joystick have nothing to do with the buttons on the button palette in Labview. You should only be using buttons on your labview front panel for testing purposes or to represent inputs into a subVI.
To access the buttons from the joysticks, you need to use the "joystick" functions in the block diagram. If you're using the v2 update, these are located in the following sub menu of the function palette: "WPI Robotics Library |> DriverStation |> Joystick" There are various functions there for opening, closing, and reading the values of joysticks. Note that they do not need any buttons defined on the front panel in order for them to work. |
|
#3
|
||||
|
||||
|
Re: buttons in LabView
O.K. we'll try messing around with the code and see if we can get it working.
Thanks ![]() |
|
#4
|
||||
|
||||
|
Re: buttons in LabView
http://www.chiefdelphi.com/forums/at...7&d=1229147060
The Joystick Get outputs two clusters that you can use Unbundle by Name with. |
|
#5
|
||||
|
||||
|
Re: buttons in LabView
Pneumaticsman,
You could also check out THIS small tutorial I made on reading joystick outputs on my team's website. The tutorial was written about 2-3 weeks before this year's game was announced, so it's not specific to the cRio and this years framework.. But hey, knowledge is knowledge. ![]() Good luck! - Austin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you program joystick buttons in LabVIEW? | darkpheonix | NI LabVIEW | 10 | 13-04-2014 10:20 |
| Buttons, Buttons and more Buttons (2006) | Freddy Schurr | Team Organization | 11 | 14-12-2005 21:36 |
| UI Buttons | stephenthe1 | Programming | 4 | 21-03-2005 12:58 |
| Buttons | tatsak42 | Computer Graphics | 4 | 16-01-2004 14:21 |
| buttons | rosebud | Electrical | 11 | 12-01-2003 02:02 |