Closed t1y2y3 closed 7 months ago
It took me a while before I found the error. It's not an error. It's a badly made unit test. It's no meaning to set the time channel if it is a time master. The call to the writer.SaveSample(ns70)
find the time master channel and sets the relative time. So the cn[0] = ... call is overwritten later.
The ns70 is just the current PC time. So a better written use case should increment the absolute time (ns70), say 10 ms.
Thank you.
I found that setting the Type and Sync of the channel to ChannelType.Master and ChannelSyncType.Time
The data of this channel will be incorrect. Is there any way to solve this problem?