Timestamps Logged in XNET TDMS Logfiles Are Missing in DIAdem and LabVIEW

Updated Apr 11, 2024

Reported In

Software

  • LabVIEW
  • DIAdem

Driver

  • NI-XNET

Issue Details

  • I have a Bus Logfile in TDMS format that has raw XNET data logged. I am using Bus Log Converter in DIAdem to convert this file into a DIAdem-readable format in a TDM file. However, the resultant time channel that I get in the converted file only contains the time difference (dt) information between the consecutive signal points. It does not contain the original timestamps, containing date and time. Can I get the original timestamps in DIAdem?
  • I have a Bus Logfile in TDMS format that has raw XNET data logged. I am using the shipping example Display TDMS Logfile as Signals.vi in LabVIEW. Along with other features, it displays the logged signals as waveforms against the time difference between the consecutive signal points. Is there a way to plot the signal against the original timestamps, including date and time instead?

Solution

DIAdem

Unfortunately, it wouldn't be possible to view the full timestamps in DIAdem. Because, although the original raw data logfile contains the timestamps, DIAdem can not read it as it is. So it utilizes the Bus Log Converter. Now, the Bus Log Converter is currently designed in such a way that when it converts the file, it loses the original timestamps and gives out a time channel, that contains only the time difference (dt) information.

LabVIEW

In the LabVIEW Display TDMS Logfile as Signals.vi example as well, it displays data against the time difference (dt) in the example's original form. However, as the original XNET logfile contains the full timestamps, you can modify the example to extract the original timestamps from the raw data logfile and then plot the signals against these timestamps.

Some LabVIEW functions that might help you in this modification are as follows: