Example Code

Enable/Disable Data Recording in TDMS

Code and Documents

Attachment

Download All

Overview
This example is intended to demonstrate how to control when data is written to a TDMS data file.

 


Description
This example is intended to demonstrate how to control when data is written to a TDMS data file. A "Record Switch Button" on the front panel enables the user to choose whether records data from sine simulation signal in the TDMS file. The recording status is shown by a Boolean controller on the front panel.

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Open the VI "TDMS Choose Record 2012 NIVerified.vi"
  3. Run the program
  4. Specify the path of TDMS file in the pop browser

 

Additional Information or References
VI Snippet

 Block Diagram.PNG

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.