02-17-2013 10:37 AM - edited 02-17-2013 10:39 AM
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!!
02-17-2013 06:57 PM
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/).
02-19-2013 08:25 AM
Thanks Bo_Xie