Example Code

Read Multiple Waveforms and Append to a Single Waveform Using Absolute Time values

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.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
To create a TDMS file and then adds a new channel of sample data every time the VI is run.

Description:
This example consists of a VI that creates a TDMS file and then adds a new channel of sample data every time the VI is run. The second VI opens this TDMS file and appends each channel together, inserting NaN values into the waveform to represent gaps in the data in time.
With this example you can capture data in one VI; stopping and starting the VI at will. When you analyze the data, you can run the second VI to append each channel together and graph the data. Each data point is shown on the graph correct in absolute time.

Steps to implement or execute code
To implement this example:

  1. Set the File Path Directory to open the TDMS
  2. Run the VI\
  3. (Optional) Turn on the Highlight Execution to see the flow of the VI

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

 

fp.JPGbd.JPG

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

Fred Visser -- SystemLink R&D -- National Instruments

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