02-04-2009 06:59 PM
I need to add a timestamp to my TDMS file. Currently I am taking an array of doubles, converting them to a dynamic data type, then sending that to tdms_write. I need to add a timestamp but I can not find a way to do that. I have also tried taking the timestamp, converting it to a doube, U64, and I64 and adding that to my array before dynamic data type conversion but when I lose precision. I need to have at least millisecond resolution. I know I lose precision because the timestamp is two 64bit values. Upper 64bits are whole seconds since epoch and lower 64bits are fractions of a second. I would even be happy sending those two numbers split into my tdms file and converting at a later date, but can't seem to even do that. Any help would be appreciated.
Solved! Go to Solution.
02-05-2009 12:15 AM
The natural way would be using a waveform.
You could add your timestamp as two U64 (using typecast to U64 array) as properties of the channels as teh t0 of the data.
Ton
02-05-2009 11:33 AM
02-05-2009 12:07 PM