Example Code

Renaming Plot Lines on a Digital Waveform Graph

Code and Documents

Attachment

Overview:
This VI programmatically change the names of the plot lines by using the Set Waveform Attribute VI.
Description:

Other attributes can be viewed in the help for the VI. This VI takes an array of strings and renames each Line accordingly.

Requirements:

  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code:

  1. Press some boolean controls in different columns.
  2. Run the VI.
  3. Add some names in New Names control.
  4. Run the VI and see the changes in the plot names.

 Additional Information or References:

Screenshot_1.png

 

Screenshot_3.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.

Comments
D*
Member
Member
on

This doesn't work with a Mixed Signal Graph? I find the names show up in the Digitial Waveform Graph, but not on the Mixed Signal Graph.

Mixed Signal Graph with no new names.png