Go to Post It's not very graciously professional to point out the un-gracious professionalism in others. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2012, 17:27
odogollie odogollie is offline
Lead Programmer
AKA: Oliver Shanklin
FRC #4068 (Aperture Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Monument, Colorado
Posts: 7
odogollie is an unknown quantity at this point
Exclamation Help With Joystick Error

This is my first year in FIRST and I am the lead programmer for my team. I have not changed anything to the code that was given to us from the update. I am getting this error:

-44007 occurred at WPI_JoystickRefNum Registry Get.vi>>Teleop.vi
FRC: The RefNum you are trying to Get does not exist in this RefNum Registry.

I have looked all over the forums on chiefdelphi and on FRC forums and haven't found anything.

On the driver station I am not getting any PWM change when I move the joystick. The ribbon cable is fixed and we are getting the Allen-Bradly to flash correctly which tells me that the sidecar is getting signals from cRIO. I have probed some areas of the program and TeleOp is not even starting, even after I have enabled the code on the driver station. Also the Joystick is not outputting X and Y values. From that I cannot configure my Jaguar.

I would really appreciate the help.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2012, 18:50
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2012, 18:58
odogollie odogollie is offline
Lead Programmer
AKA: Oliver Shanklin
FRC #4068 (Aperture Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Monument, Colorado
Posts: 7
odogollie is an unknown quantity at this point
Re: Help With Joystick Error

Quote:
Originally Posted by Alan Anderson View Post
How are you running the code?
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2012, 19:25
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 29-01-2012, 23:43
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2012, 20:25
odogollie odogollie is offline
Lead Programmer
AKA: Oliver Shanklin
FRC #4068 (Aperture Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Monument, Colorado
Posts: 7
odogollie is an unknown quantity at this point
Re: Help With Joystick Error

I got it. Thank you for the help. I had a file that was overwritten by mistake.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi