LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi analyzer config file is corrupt

Solved!
Go to solution

Hello,

 

I have an analyzer cfg file that I was given to use for a project. It works on the computer of the guy that created it, but when the file is copied to the network, emailed, or copied onto a thumb drive, I get this in th eattached image.

 

Is windows xp goobering the file with some kind of appended data when it is copied?

 

Also, is there some easy way to suck the values out of this file so I can recreate it? Since we can't transport the file, I'd like to build my own, and we don't want to write down all th edata from the original file on the original computer.

 

 

Message Edited by slipstick on 06-02-2010 08:44 AM
Message Edited by slipstick on 06-02-2010 08:46 AM
Download All
0 Kudos
Message 1 of 6
(3,355 Views)
I took a look inside the file, and it looks like it is a configuration for a project-based analysis.  Can you find out where the original creator of the file saved the .cfg file relative to his .lvproj, and can you place this file in the same relative location to your copy of the .lvproj when you try to load it?  That's my best guess as to why it's not loading...the .cfg must be placed in the same location that it was saved relative to the project for which it is storing an analysis configuration.
Message 2 of 6
(3,332 Views)
We tried that with no success, even giving the folders the same names. He has a call in to NI to see about it as well. Weird, because it was working and then suddenly started acting up.
0 Kudos
Message 3 of 6
(3,315 Views)
Solution
Accepted by topic author slipstick

The relative path stored in the .cfg file is "Final Inspection Project\Final Inspection Project.lvproj".  So this should be the path to the .lvproj relative to wherever you have the .cfg file.  So for example, if you have the .cfg file stored at c:\temp\General VI analyzer file.cfg, then you would want your .lvproj file to be at c:\temp\Final Inspection Project\Final Inspection Project.lvproj

 

If this file placement doesn't work, is there any chance you could zip up your project and attach it here so I can further debug the problem?  I have already filed myself CAR# 232362 to make the error reporting better in 2011 for an unfound .lvproj when loading a .cfg file.

Message 4 of 6
(3,307 Views)

That was it. The relative location put the cfg file on my desktop, and in a folder on my collegues computer.

 

By the way, what do you use to view one of these files? Notepad kind of works, but there are still weird characters in it.

 

Tay

0 Kudos
Message 5 of 6
(3,284 Views)
I work in LabVIEW R&D at NI, so I just debugged the VI that reads the .cfg file to see what was in it.  😉
0 Kudos
Message 6 of 6
(3,272 Views)