Example Code

Set Channel Name in Write to Measurement File in 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

Overview

This code allows the user to easily set the channel name of appended signals to a Write to Measurement File Express VI.

This example is useful because adds a channel name to a .lvm created using Write to Measurement File Express VI. This VI also merge two groups of signals, in this example are created from Simulated Signal VI Express and For Loop that simulates GPIB adquisition.

 

Description

Use For Loop and Simulate Signal to create a couple of signals. Using Set Waveform Attribute Function add the hard code header then merge the signals and use Write To Measurement File VI Express to Write the signals into the specified file.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

 

1. Open the VI and switch to the block diagram.

2. Configure the Write to Measurement File to write the data to a known location
3. Run the VI

 

Additional Information or References

Snipped 6035.png

 

 

 

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

National Instruments
Applications Engineer

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