Example Code

Choose Data to Save in New TDMS File while Running

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview

This VI allows the user to select when he wants to save data to a TDMS file using a toggle switch while the program is running.

 

Description

This VI allows the user to select when he wants to save data to a TDMS file using a toggle switch while the program is running. A separate TDMS file is created for each separate section the user wants to save. In this example data is coming from a DAQ device.

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

  1. Download Save Multiple Files in One Session.VI

  2.  

    Configure device and timing parameters.

  3.  

    Use toggle swich to determine when to save data.

 

Additional Information or References

 

frontpanel.jpg

 

 

block diagram.jpg

 

 

 

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

 

 

Best regards,
Rohan B

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