08-09-2011 02:39 PM
My colleague will be giving me binary files (*.dat) generated from within LabView. There are over 60 variables (columns) in the binary output file. I need to know the variable names and units, which I believe he already has set up in LabView. Is there a way for him to output a file containing the variable name and unit, so that I'll know what the binary file contains? He can create an equivalent ASCII file with a header listing the variable name, but it doesn't list the units of each variable.
As you can tell I am not a LabView user so I apologize if this question makes no sense.
Solved! Go to Solution.
08-09-2011 02:46 PM - edited 08-09-2011 02:47 PM
Hi KE,
yes, he can!
Either:
- he provides an ASCII file with names and units as header data (it's up to the programmer to save all needed information)!
or
- he gives you a detailed spec for his "binary data" file
or
- he uses tdms with all it's functionality
The point is: it's not LabVIEWs fault when the programmer saves only part of the needed data...
08-09-2011 02:53 PM
Can you please fill in the following blank, which will help me ask him to do it,
"Dear colleague, could you please generate an ASCII file containing the column names and units of all the variables in the binary file? This can be done in LabView using xx function"
08-09-2011 02:58 PM - edited 08-09-2011 03:00 PM
Hi KE,
an ASCII file (probably csv formatted) is just text - and contains all data that is (intentially) written to. There is no special function to include units or whatever!
Your collegue has to save those information the same way he saves the names and the values...
(When writing text files he could use WriteTextFile, FormatIntoFile, WriteToSpreadsheetFile, even WriteBinaryFile could be used...)