DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

C++ API for DIAdem DAT Format

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

0 Kudos
Message 1 of 6
(6,239 Views)

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

0 Kudos
Message 2 of 6
(6,221 Views)

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

0 Kudos
Message 3 of 6
(6,219 Views)

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

0 Kudos
Message 4 of 6
(6,215 Views)

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

0 Kudos
Message 5 of 6
(6,198 Views)

Hi Frank,

 

Sure, hope it helps.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 6 of 6
(6,178 Views)