PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Decoding a TDMS File Format

Hello

 

I am developing an android app which makes use of a TDMS file. The TDMS file has been generated from a NI PXI module. The app wirelessly syncs with a server storing the TDMS files and reads the TDMS file and displays the channels from the TDMS file on the user screen of the mobile phone.

 

I understand that TDMS uses the UTF-8 Unicode character set. For now, I have appropriate coding in Java to convert and display the LEAD-IN of the file. 

 

But when I am doing so I am getting a weird output:

TDSm������h����P������������0������������������������/����������������name ������&������MW2

This is for the first 64 bytes of the file.

 

Please could you post something which could further help me get a more understandable version of the output.

I expect something similar to how LEAD-IN has been defined on the website(http://www.ni.com/white-paper/5696/en).

 

Any help would be greatly appreciated!!

0 Kudos
Message 1 of 3
(5,665 Views)

sshivam0212,

 

You have to parse the tdms file by yourself. NI does not provide TDMS parser on Android platform yet.

 

I do not find Java tdms lib yet, but there are some 3rd party Ruby tdms lib (https://github.com/mnaberez/tdms) and Python tdms lib(http://sourceforge.net/projects/pytdms/).

0 Kudos
Message 2 of 3
(5,653 Views)

Thanks Bo_Xie

 

 

0 Kudos
Message 3 of 3
(5,631 Views)