06-09-2025 02:33 AM
Hi everyone,
I'm encountering an unexpected behavior while parsing a TDMS file using the nptdms library. The TDMS file contains two distinct property types visible in Excel:
Currently, my implementation successfully retrieves the second category using nptdms, but I'm unable to access the first type ("Length" specifically). Could you please advise how to properly extract these bold-formatted properties?
Any guidance on method selection, attribute path configuration, or potential library-specific considerations would be greatly appreciated.
06-12-2025 05:00 AM
Hi LALALAAALLAA,
The behavior you're observing when parsing TDMS files using the nptdms library - stems from how TDMS metadata is studctured and how nptdms interprets it.
The bold properties you see in Excel are not user-defined properties, they are structural metadata that describe the TDMS file's internal layout.These are not stored as regular properties in the TDMS file and therefore are not accessible via the standard .properties dictionary in nptdms.
To acceess these, you need to use specific attributes or methods provided by nptdms.
To het the number of data points (i.e., the "Length") in a channel:
06-13-2025 01:49 AM
Hi mane__avagyan,
Thank you very much for taking the time to share your insightful suggestion. I truly appreciate your effort and valuable input. I will definitely give your method a try and see how it works out. I sincerely thank you for your guidance and support. 😊
Best regards,
LALALAAALLAA