Does FlexLogger Continue Logging When a Device Disconnects?

Updated Dec 2, 2022

Reported In

Software

  • FlexLogger

Issue Details

  • If I log data from multiple systems in FlexLogger, and one of the system becomes disconnected at the time of logging, how is this handled in FlexLogger?
  • Will FlexLogger continue writing to a TDMS file if my device disconnects midway through a test?

Solution

Yes, FlexLogger continues writing to a TDMS file if a system or module is disconnected after a log has started. When the acquisition finishes, the data file will resemble the following image.

FL logging.png

Here, the green line represents a system that remained connected during the entirety of the log. The red line represents a system that was disconnected from NI Measurement and Automation Explorer (NI MAX) during the log. Once a system disconnects from FlexLogger, no data will be written to the file, as shown from 8:18 on the time axis.

Additional Information

When writing data to a TDMS file, there is a standard workflow that should always be followed:
  1. Open or create a new TDMS file.
  2. Configure metadata, channels and groups.
  3. Write or read data in a loop.
  4. Close the TDMS file outside the loop.
This workflow indicates that FlexLogger will not check for connections and disconnections while data is being written. The log must be stopped and restarted for FlexLogger to recognise the disconnected system.