LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Analyze data from LabWindows 4.0

I have a small hydro power plant which has been controlled by a program made in LabWindows 4.1 (from 1998-1999). This program have logged a lot of information on production, waterlevels and so on for 10 years, and I have now an interest in analysing the data. Each months there was produced a .dat-file with the data, which can be (only?) read by the control-program to watch plots and tables. But I am more interested in extracting the data to analyze with Excel, MatLab or LabView, i.e. getting the data in nice tables in maybe a simple .txt-file. Unfortunately the .dat-file only contains jibborish which I can't make any sense of. Do any veterans in here have any ideas on how to go forth to aquire the data in a sensible ASCII-format? I'm attaching a file if that helps. Wouldn't expect anyone to decode it, but maybe someone could point me in the right direction.

0 Kudos
Message 1 of 2
(2,776 Views)

Hi Super-Chub,

from what you are saying you don't have the source code for your application, right? Couldn't you find the original developer and either ask him the description of the data files data file or have him write a small application to translate them?

 

From the file alone it is difficult to understand which data is saved on it and how; .dat extension does not identify a specific file type. From a fast glance to the file you attached, I seemed to recognize a 36-byte pattern with embedded 4 spaces that repeats throughout the whole file, but no more than this. Based on your knowledge of the application you may try to guess which type of data is stored in each file and possibly how data are organized in it.

 

One could try to decode the file based on the assuption it was produced by ArrayToFile function, but I can't remember whether CVI 4 was already having that function and how it was organized; moreover the 4-spaces field seem to contrast with the use of such function. It could also be the dump of an array of structures... Anyway, I am just throwing out some idea that may help you in this task.

 

 

** Edit: I just saw in the online help that ArrayToFile function is present in CVI from release 4.0.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,770 Views)