From 11:00 PM CST Friday, May 9th - 3:00 PM CST Saturday, May 10th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Programmatically Change Visible Plots on Waveform Graph 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

Overview

This VI demonstrates the capability of using a custom interface in order to alter the visible plots on a waveform graph.

 

Description

This provides a more intuitive experience for the user while the program is running, and it ensures the visibility of each plot can be toggled without the presence of the plot visibility check box. The bottom loop with the three Simulate Signal VIs demonstrates the capability of this VI. The contents of this bottom loop can be changed in order to view any data desired on a multiple plot waveform graph.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the VI "Programmatically Change Plot Visibility 2012 NIVerified.vi"
  2. Run VI
  3. Click control buttons such as Disable Plot 1, Disable Plot 2, or Disable Plot 3
  4. Click control buttons such as Enable Plot 1, Enable Plot 2, or Enable Plot 3

 

Additional Information or References

VI Block Diagram

Programmatically Change Plot.PNG

 

 

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

Sam Burhans
Senior Product Manager
National Instruments

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

Comments
mfh721
Member
Member
on

Both of the VI's above seem to be 2013 versions.

CoffeeBreak
NI Employee (retired)
on

Thank you mfh721, I have uploaded the correctly saved version for LabVIEW 2010. Sorry for the mishap

Sam Burhans
Senior Product Manager
National Instruments
Tariff Impact Update Learn more