|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Help With Joystick Error
If you truly haven't changed anything, that error should not be possible. Begin, Teleop, and Finish all use the same name for the one joystick Refnum used in the program.
How are you running the code? Since you mention probing values, I assume you're clicking the Run arrow at the top of the vi window. In order for everything to work properly, you must run Robot Main. It will call all the others (Begin, Teleop, Periodic Tasks, etc.) as necessary. |
|
#2
|
|||
|
|||
|
Re: Help With Joystick Error
I am running the code like this:
I open the driver station to insure I have communication Next I right click on Robot Main and click run Then I see the light on the Driver station for robot code turn green. And then hit enable. I am completely lost because we followed all the steps. |
|
#3
|
|||
|
|||
|
Re: Help With Joystick Error
The base code you are using ships 100% functional and perfect. Someone must have intentionally or accidentally edited the RefNum name of the joystick you are trying to Get in Teleop.vi. Ensure the name of the joystick you are trying to Get has the same RefNum name as the one you Open in Teleop.vi, and as the one you Close in Finish.vi.
|
|
#4
|
|||||
|
|||||
|
Re: Help With Joystick Error
The names must match exactly. A leading or trailing space, or a difference in capitalization, will keep it from working.
|
|
#5
|
|||
|
|||
|
Re: Help With Joystick Error
I got it. Thank you for the help. I had a file that was overwritten by mistake.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|