Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Error with Motor refnum (http://www.chiefdelphi.com/forums/showthread.php?t=91613)

RoboGuy 12-02-2011 13:54

Error with Motor refnum
 
Hi, I need some help with a Labview error code.
Here it is: ERROR <Code> -44007 occurred at WPI_MotorControlRefNum Registry Get.vi>>Periodic Tasks.vi>>Robot Main.vi
<time>13:37:37 02/12/2011
FRC: The RefNum you are trying to Get does not exist in this RefNum Registry.

I checked and all my refnum names are correct when I set them and get them.

Greg McKaskle 13-02-2011 07:37

Re: Error with Motor refnum
 
This error means that you are trying to Get something that has not been opened.

This could mean that your open code failed to run. If you have other errors in Begin and you chain the errors together, a subVI that is sent an input error typically skips.

This could mean that your Open code works, but the Motor is being Closed before the Get.

This could mean that there is a race condition and the Get is called before the Open.

Of course this often means that the names are different. You may want to copy the Open name and paste it in the Get.

Greg McKaskle

Mark McLeod 13-02-2011 07:54

Re: Error with Motor refnum
 
Yesterday I found someone who mixed incompatible open and sets that generated this error.

They used Open 2 Motor, then tried Motor Set Output.
Even though the name matches it wasn't the same thing.

KevinReid 13-02-2011 09:53

Re: Error with Motor refnum
 
You should check your 'periodic' loop also, it refers to the Joystick 1 and Drive Motors by their default name. Change to whatever your using or get rid of them if not required.

RoboGuy 13-02-2011 14:04

Re: Error with Motor refnum
 
I rechecked the code and noticed I had deleted the error cluster in Begin.vi. So I think the periodic tasks in Main.vi was not waiting to run until Begin.vi finished and the motors I was referencing weren't set yet. I fixed this and I'll see tomorrow if it works out. Thanks for the help.


All times are GMT -5. The time now is 03:51.

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