Log in

View Full Version : Help with Labview please


FRCTeam3293
17-02-2016, 10:17
We trying to assist a rookie team with Labview. They are simply trying to control one motor using a victor SP. Can someone offer a suggestion? The entire message is below:

"We had it yesterday, but sadly it did not work this is what we did. We put the program on the begin VI, not sure if that’s where it goes. It allows me to run the main VI, but I get an error in the driver station that says “The refNum trying to get does not exist in the refNum Registry”."

Mark McLeod
17-02-2016, 10:30
The error is probably because of the incorrect Joystick reference in Begin.vi
You can't use a Joystick to select the deadband in Begin.vi
They have to use a different method to choose true/false or relocate the Motor Open elsewhere to happen after Begin.vi has completed executing and reliable Driver packets have begun to arrive and be processed.

Begin.vi just holds declarations (Opens) of devices that will be used elsewhere.
You can't actively use devices in Begin.vi.
They are trying to use a Joystick device that hasn't finished the process of being declared yet elsewhere in Begin.vi.

And Begin.vi only gets called once on robot code startup, and until the joysticks are defined there is most likely not even a valid driver station packet at the time Begin.vi runs to pass along any Joystick value.

FRCTeam3293
17-02-2016, 14:03
Thanks Mark. Very helpful.