Go to Post You will find we are more talkative in about 5 1/2 weeks. ;) - mrnoble [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 13-01-2013, 12:47
thelegend thelegend is offline
Registered User
FRC #1325
 
Join Date: Jan 2013
Location: Canada
Posts: 7
thelegend is an unknown quantity at this point
Problem with Disabled.vi

Hi,
When I run the driver station to test out some code that I have written, I get the following error repeated multiple times in the Diagnostics section.

ERROR <Code> -44007 occurred at Disabled.vi>>Robot Main.vi
<time>00:09:21 01/01/1970
FRC: The RefNum you are trying to Get does not exist in this RefNum Registry.

I have taken a look in the Disabled.vi and there isn't much in there, so I don't know where to start. Here is a screen shot of my disabled.vi.


Last edited by thelegend : 13-01-2013 at 12:51.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2013, 12:49
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Problem with Disabled.vi

I don't see an attached image. I believe the default Disabled doesn't retrieve any refnums, so it would definitely be useful to see what your code looks like.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2013, 13:33
thelegend thelegend is offline
Registered User
FRC #1325
 
Join Date: Jan 2013
Location: Canada
Posts: 7
thelegend is an unknown quantity at this point
Re: Problem with Disabled.vi

Thanks for your reply Greg... Here is the rest of our code

Main:


Begin:


Teleop:

Last edited by thelegend : 13-01-2013 at 13:39.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2013, 13:39
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Problem with Disabled.vi

Sorry, your Begin picture is old, and your Teleop picture is of a more recent Begin.

Robot Main is protesting that Teleop's inputs have been changed and are no longer valid.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 13-01-2013 at 13:43.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2013, 15:02
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,113
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: Problem with Disabled.vi

Whatever code is running on the cRIO, it's not what you posted in the pictures, because what you posted cannot run. I suspect you still have an old default Disabled.vi which tries to set "Left and Right Motors" to zero, but since you renamed the drive motors that's an invalid reference name.

You apparently deleted some minor things from Teleop.vi that look unimportant but are actually part of the framework. Robot Main won't run that way (note the grey broken "run" arrow in the toolbar).
Reply With Quote
  #6   Spotlight this post!  
Unread 14-01-2013, 20:44
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Re: Problem with Disabled.vi

I've had this problem before. It indicates that you created a project without the simulator but you're trying to run it on the computer. Right click on the little white window in the bottom left corner and choose RT CompactRio Target to deploy it to the cRio.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-01-2013, 20:54
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Problem with Disabled.vi

The loop inside Teleop is not good.
It will never end, because the value of controller Button 2 is only checked once when the loop begins, then is never checked again.

In general, Teleop should execute and leave as soon as possible. No loops waiting for other things to happen.
That's because Teleop is expected to process a command packet sent from the Driver Station every 20ms.

Your code will do what you want if you leave everything, but remove just the loop from around your code.
Teleop is actually inside a loop itself, so your code will get called over and over.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-01-2013 at 20:58.
Reply With Quote
  #8   Spotlight this post!  
Unread 14-01-2013, 20:54
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Problem with Disabled.vi

As mentioned, the RobotMain VI is broken -- has a broken arrow. The one issue visible is because two parameters are connected, but the TeleOp function has been changed to no longer take the parameters. You can either put them back or you can delete the dashed wires on RobotMain.

Greg McKaskle
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 21:45.

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