Example Code

Save a complex waveform to a text file using LabVIEW

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

Description

 1. Overview

This example demonstrates how to save a complex waveform, which is a cluster of the original time the test start (t0), the length of time between steps (dt), and the array of complex values (Y).

 

2. Description

This VI takes the data of a complex waveform and formats it into a very practical and easy to understand text file. Using the subVI "Save title information", the name of the test, dt and t0 are written as a header for the file.

 

3. Requirements

NI LabVIEW Base development System 2012 or compatible.

 

4. Steps to Implement or Execute Code

  1. Download the compressed file and extract the project contents.
  2. Open "Save a complex waveform LabVIEW 2012 NIVerified.lvproj".
  3. Open the VI "Save a complex waveform LabVIEW 2012 NIVerified.vi".
  4. Write a name for your test.
  5. Run the VI.
  6. Select the path where you want to save the text file.

 

5. Additional Information or References

Save a complex waveform Screenshot.PNG

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines.**


Jim St
National Instruments
RF Product Support Engineer

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