View Full Version : Joystick Library broken?
Derek Allen
14-02-2009, 16:14
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?
Derek Allen
14-02-2009, 16:29
I only deleted the button booleans, making it so that i can't use the buttons at all.
Derek Allen
14-02-2009, 16:46
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
Derek Allen
14-02-2009, 17:03
My getraw.vi has the same problem :'(
Here is my Joystick Get.vi. Try that.
Derek Allen
14-02-2009, 17:14
lol thats the getaxis.vi
Sorry! :-) Here's take two.
Derek Allen
14-02-2009, 17:41
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?
Derek Allen
14-02-2009, 17:56
That worked! Thanks a lot :D
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.