LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS Endianness question

Hello,


As a bit of a fun project I'm writing a TDMS file reading library in Rust. I have a question about the endianess parameter. The spec associates endianess on a per-segment basis. Which implies that within a single file that contains multiple segments for whatever reason (starting and stopping logs?) it may be possible for the data associated with a channel to be encoded as little-endian in one segment and big-endian in another. Is this the correct interpretation?

 

If so this is something I need to design my library to handle.


Thanks in advance!

Alex

0 Kudos
Message 1 of 2
(921 Views)

If the spec says so I think you should plan for it. In reality it is probably not that important as a specific TDMS file is usually always generated by the same application, using its default endianness which depends on the used CPU architecture. It’s very unlikely to see TDMS files that got appended to from different writers on different platforms but according to the spec nevertheless possible!

Rolf Kalbermatter
My Blog
Message 2 of 2
(892 Views)