LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a datalog file in another language?

Does anybody know the binary format of datalog files? We have used the datalog function to write binary data to a file, and would now like to read that data directly in Igor or C. I think we can decode the binary data itself, based on LabVIEW's documentation of binary data formats, but there is a header on the file that we can't find documented.
A search revealed the same question from a few years ago, but the answer was insufficient. It also revealed a similar issue for reading "datalog" files generated by the high-speed datalogger example, but those aren't true LV datalog files. They are binary files with a custom binary header. Also, some messages discussed the front-panel datalogging function, but that is not what we are after. We are using programmatic file writing, with the datalog file format.

Thanks,
Dave
0 Kudos
Message 1 of 2
(2,251 Views)
Hello Dave,

The datalog file is saved in a proprietary format whose structure is not available publicly. When writing files to be shared with other languages it is best to save them in either an ASCII or personally defined binary format.

One option you do have is to create a shared library (requires application builder) of a LabVIEW VI that is responsible for reading datalog files. This library could then be called in other languages to pass the in the datalog information.

Please let me know if you have any questions.

Regards,

Matt F
0 Kudos
Message 2 of 2
(2,233 Views)