01-20-2014 09:40 AM
Hi,
I'm having a couple of DIAdem DAT Files, which I need to parse with C++.
I came across the TDM C DLL which is usable in C++. According to the documentation it is only possible to open tdm and tdms files with the library.
Is there an API for the DAT Format (predecessor of TDM) as well?
Best regards
Frank
01-21-2014 10:42 AM
Hi Frank,
I'm not aware of a C++ API that reads or writes old DIAdem DAT files. Both LabVIEW and DIAdem can read them, though, so if it's really just a couple of files, why don't we use those programs to convert them to TDM or TDMS? Alternatively, the DAT header file is very easy to read and well documented, and the binary file structure where the data is stored is quite simple, so you could build your own C++ parser.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-21-2014 11:39 AM
Hi Brad,
thank you for your reply.
Unfortunately we're talking about n times 100 Files, so I was hoping that there is a API to use.
I'll take a closer look to the DAT File Documentation and parse it via C++.
Best regards
Frank
01-21-2014 12:42 PM
Hi Frank,
Let me know if you have any questions about the DAT file header information and what that means for the binary layout. I spent a lot of years programmatically creating *.dat header files for custom binary data files that didn't have them, which is pretty much the reverse of what you're doing. Unfortunately, my code is in VBScript, not C++, but I still know what all the header items mean.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-22-2014 01:32 AM
Hi Brad,
thanks a lot!
Could you please send me the code in VB. I guess it would be a good orientation for the development of the C++ parser.
Thank you very much in advance.
Frank
01-22-2014 12:01 PM
Hi Frank,
Sure, hope it helps.
Brad Turpin
DIAdem Product Support Engineer
National Instruments