Thread: Reading Meata data from TDMS

  1. #1
    Registered User
    Join Date
    Dec 2018
    Posts
    3

    Reading Meata data from TDMS

    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 hard
    elif (rawdataindex==0x00000000):
    rawdata = object_rawdata[objectpath]

    I really appreciate with your helps!


    Last edited by wognsl; 01-21-2019 at 07:59 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 12-31-2018, 11:08 AM
  2. Reading specific data from TDMS files
    By Guyb in forum C Programming
    Replies: 2
    Last Post: 06-16-2016, 03:30 PM
  3. Read size of data array when reading .txt data
    By Taquito in forum C Programming
    Replies: 13
    Last Post: 04-29-2007, 01:52 AM
  4. Replies: 1
    Last Post: 10-22-2005, 05:28 AM
  5. Replies: 2
    Last Post: 06-16-2005, 10:03 AM

Tags for this Thread