Unable to Get Sample Rate From a TDMS or CSV File in DIAdem

Updated May 3, 2024

Reported In

Software

  • DIAdem
  • FlexLogger
  • LabVIEW

Issue Details

  • I'm using FlexLogger for data acquisition and data logging, and I want to get the Sample Rate in DIAdem, but I can't find this value in the Channel Properties in the CVS files and the TDMS files.
  • I'm using LabVIEW for data acquisition and data logging, and I want to get the Sample Rate in DIAdem.

Solution

Utilize the following workarounds depending on the software you employ for generating your TDMS or CSV files.

FlexLogger

When FlexLogger creates TDMS files or CSV files, it doesn't add the Sample Rate as a Channel Property, so when you're searching for the Sample Rate in DIAdem, you will not find it. But you can determine the Sample Rate with the logged Channels Properties.
For CSV files:
You can determine the Sample Rate using the Minimum, Maximum, and Length. The Minimum is the acquisition start time and the Maximum is the acquisition end time, while Length is the number of samples logged during that time.
image.png
image.png
For TDMS files:
You can determine the Sample rate using the Waveform x-step width, since is equivalent to the Period.
image.png

image.png

In LabVIEW

When you create a TDMS file in LabVIEW, you need can configure this Channel Property using TDMS Set Properties Function. You can get the Sample Rate using the DAQmx Timing Property Node configured as All to Read as shown in the following image.
image.png