View Single Post
  #3   Spotlight this post!  
Unread 08-02-2010, 08:19
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Wiring JoystickGet Buttons to a custom VI

Depending on how much you need from your Joystick, you can either wire up the cluster of buttons, and the cluster of axes ... or you can wire up individual buttons or axes.

Here's what I would do, if I wanted all the buttons and all the axes:

- right click near the right-hand side of a joystick GET function and create an indicator for the axes, and another for the buttons
- CUT those indicators from that VI and PASTE them into your custom VI
- select the indicators and change them to controls
- on the custom VI's front panel, right-click the VI's icon in the extreme upper-right of the window and select "Show Connector"
- select an available little white square, then select the cluster for either the buttons or the axes, then do the same for the other one.

This allows you to wire up the Joystick GET directly into your VI.

In the attached pic, I clicked on the upper right little square, and the DriverAxes cluster became selected. You can do this to see which ports are wired up to which input or output. Typically, you put Outputs on the Right and Inputs on the Left. (The example pic shows 4 outputs from this VI, yours will probably be on the other/input side)

You have to do this from the front panel.
Attached Thumbnails
Click image for larger version

Name:	vi_IO.jpg
Views:	29
Size:	113.1 KB
ID:	8555  
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote