10-20-2020 01:36 AM
Hi,
I try to search for a special timestamp in an array of timestamps (created from a waveform of a daqmx-data-acquisition).
But the precision of the timestamp is too high and the timestamp never match (att. file).
I`ve tried to change the microseconds to 3 decimal digits, but it will not work.
Two questions to this topic:
1. is it possible, that I got directly from daqmx a waveform with only 3 decimal (and after that only "0")
2. how can I change the incoming timestamp to 3 decimal (I´ve tried to convert in a string and then back with "%<%x %.3X>T" --> but no effect)
Thanks for your help.
Solved! Go to Solution.
10-20-2020 01:43 AM - edited 10-20-2020 01:43 AM
10-20-2020 01:56 AM
That works...yeah... Thanks a lot GerdW.
Do you know, is there also a way, to cut the timestamp before I compare it or has a timestamp ever its highest solution?
10-20-2020 02:05 AM
Hi Tanchris,
@Tanchris wrote:
Do you know, is there also a way, to cut the timestamp before I compare it or has a timestamp ever its highest solution?
A timestamp is a timestamp. It consists of 128 bits, with 64 bits counting seconds since epoch and 64 bits for fractions of a second. You may fiddle with the timestamp value (using DateTimeToSeconds and SecondsToDateTime just to change the fraction part), but why?
Measurement data should be kept in full resolution, you can handle anything in post-processing…
10-20-2020 02:27 AM
Thats right and I´ll do it with your snippit...
Have a nice day...thanks for support...