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.
Derek,
Assuming you deleted the Button cluster indicator on the Joystick Get.vi, you can do one of a few things:
-
Use GetRaw.vi instead. The buttons behavior is identical to the Get.vi.
-
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. -
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
The one you gave me has the exact same problem mine does.
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