I have a question about NI's .tdms file reading....
I read the TDMs File's Internal Structure on NI Website. and i wrote some codes in order to convert .TDMS files into .txt files.
(http://www.ni.com/white-paper/5696/en/#toc2)
even I tried open .tdms file with hex-edit program, Python codes and i got helped by other great people.
(https://github.com/petebachant/pyTDMS/blob/master/pytdms.py)
(https://cboard.cprogramming.com/c-programming/176922-reading-specific-data-tdms-files-save-text-file.html)
The real problem is... When i read meta data, it goes well until meet below sentence...
"If the raw data index of this object in this segment exactly matches the index the same object had in the previous segment, an unsigned 32-bit integer (0x0000000) will be stored instead of the index information."
My question is I would like to write below codes in C. but I am struggling hardfrom Line 216 ~
(pyTDMS/pytdms.py at master * petebachant/pyTDMS * GitHub)
elif (rawdataindex==0x00000000):
rawdata = object_rawdata[objectpath]
I really appreciate with your helps!