06-24-2011 10:19 AM
We have used LabVIEW to control a laboratory experiment and collect and store a lot of data from the experiment. Now I have been tasked to analyze the stored data in a different software environment. There is a lot of very important metadata about the instrument settings stored in LabVIEW .cfg files and I need to read this metadata into my analysis program. Is there a specification for LabVIEW .cfg files that tells me their internal structure so I can write a program to read the files and assign the information to appropriate variables in my analysis software?
Thanks in advance for your help.
- Martin Mark
06-24-2011 10:36 AM
I haven't heard of any LabVIEW .cfg file. You probably have just a file that was created in whatever manner the programmer desired. It could be a text file, it could be binary. It could have been created with the Config File functions in the File I/O palette. Those functions create sections and keys of data that when the file is written out, is just a text file.
06-24-2011 11:28 AM
It definitely isn't a text file, although if you open it in a text editor you can see text strings (the names of parameters) embedded in the file followed by the parameter values, apparently in binary. There seem to be some sort of binary delimiters between parameter values. I'm told the guys who ran the experiment wrote out the file using a single standard LabVIEW command. I'll check to see what command it was and to see if they changed the extension.
- Martin
06-24-2011 11:49 AM
if you are not a LV developer then we would be better able to help you if you...
1) Provided the code used to write the file.
2) Produce an image of the code used to write the file.
if they flattened a cluster to a string then the actual code may be required.
Ben