Joystick Library broken?

I accidentally the whole Joystick Get library button variables. Is there a way i can repair what i’ve done?

Can you clarify? Did you delete / modify the Joystick Get.vi itself?

I only deleted the button booleans, making it so that i can’t use the buttons at all.

Heres an image





Derek,

Assuming you deleted the Button cluster indicator on the Joystick Get.vi, you can do one of a few things:

  1. Use GetRaw.vi instead. The buttons behavior is identical to the Get.vi.

  2. Copy the Buttons cluster from the GetRaw.vi and paste it onto the Get.vi.
    a. you will then need to wire the buttons terminal to the original source.
    b. you will also have to connect the buttons to the connector pane (right click the icon, select Show Connector, click on empty connector, then click on Buttons indicator.

  3. Copy the Get.vi from another computer that has the WPI Robotics Library installed. The Get.vi is typically located at:
    C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\Joystick\Get.vi

-Nate

My getraw.vi has the same problem :’(

Here is my Joystick Get.vi. Try that.

GetAxis.vi (18.4 KB)


GetAxis.vi (18.4 KB)

lol thats the getaxis.vi

Sorry! :slight_smile: Here’s take two.

Get.vi (37.4 KB)


Get.vi (37.4 KB)

The one you gave me has the exact same problem mine does. :frowning:
Can you show us picture of yours so I can try to fix it myself?

Perhaps what you did is you deleted the buttons out of the cluster itself. Try replacing this one (don’t forget to unzip it first and back up your copy before replacing it).

C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\Joystick\ButtonState.ctl

Did you want a picture of the front panel, or the block diagram?

ButtonState.ctl.zip (3.67 KB)


ButtonState.ctl.zip (3.67 KB)

That worked! Thanks a lot :smiley: