LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get "Error 1 occured at Config Data Registry.vi(get data) invalid object 0" while starting my application?

 

Why do I get "Error 1 occured at Config Data Registry.vi(get data) invalid object 0" when starting my application created in LabVIEW 7.1?  I am starting the application in a PXI rack running Windows XP.  I have an executable written in LabVIEW 7.0 that runs without this error.  After clicking the Continue button in the error, the application seems to continue happily.

 

Is there something I need to include when I make the executable?

 

I would like to understand and eliminate this start up error.

 

Thanks in advance.

BobNorth

0 Kudos
Message 1 of 8
(3,727 Views)

Hi Bob,

 

Do you know if you have both the LabVIEW 7.0 and 7.1 Run Time Engines installed?

 

Regards,

Peter W.

0 Kudos
Message 2 of 8
(3,710 Views)

Hey Peter,

 

Thanks for the reply.

 

Yes, i do have both the 7.0 and 7.1 Run Time Engines installed.  Don't they play well together?

 

BobNorth

0 Kudos
Message 3 of 8
(3,703 Views)

Hi Bob,

 

They should work just fine together I just wasn't sure if that could've been causing the error. Could you attach the project with the development code you used to create that executable? I haven't been able to locate Config Data Registry.vi, is that something you created yourself?

 

Regards,

Peter W.

0 Kudos
Message 4 of 8
(3,688 Views)

Hey Peter,

 

I am working on a program written by someone else.  The project and development code are very large and difficult to corral as they are spread over several directories. I will see if I can make a more manageable program that will generate the same error.

 

I will look for the Config Data Registry.vi and attach that when I find it.

 

Thanks very much for your help.

 

BobNorth

0 Kudos
Message 5 of 8
(3,683 Views)

Hey Peter W.,

 

I have some more information.  Config Data Registry.vi is in C:\Program Files (x86)\National Instruments\LabVIEW 7.0\vi.lib\Utility\config.dll.  There is a corresponding copy in the LabVIEW 7.1 directory as well.

 

It is hard for me to know if these were from my predesessor or came from NI, but the look of the block diagram sugggests my predecessor wrote it.  I have attached config.llb fromt he 7.0 directory.

 

My first attempt to fix this will be to put the file in the proper place on the test system to see if it is happier then.  At first glance, the files look identical, but are certainly compiled differently.

 

I'll let you know how that goes.

 

Thanks again for your help.

 

BobNorth

0 Kudos
Message 6 of 8
(3,679 Views)

Hi Bob,

 

I looked through the program and I figured out where the error is coming from, and potentially what is causing it. In a lot of the cases of the program you are searching a 1-D array for the name of the case, and if you don't find it then it skips the function and gives "Error 1 occurred at Config Data Registry.vi(CASENAME) invalid object 0". I attached a screenshot that shows what I mean. The Search 1-D Array.vi is returning a -1 which means it didn't find the case. The reason I believe this is happening is because the shift register for that array is not initialized. While the other cases "reset" and "register" interact with the array shift registers and most likely create the array you need, if the program defaults to the "get data" case then it will try to run that before registering and won't have an array to search. This would also explain why it only has this problem at first and seems to run just fine after that. To fix this you should either make an initial array and wire it into the shift register or make the "reset" case the default as opposed to the "get data" case.

 

Regards,

Peter W.

Message 7 of 8
(3,656 Views)

Hey Peter,

 

I believe you have the very thing.  Sorry it took so long to get back, but I was tied up elsewhere.  I'm going to look at the subroutine calls to see which state should be default.

 

Thanks very much.

 

BobNorth

0 Kudos
Message 8 of 8
(3,645 Views)