Example Code

Scrollbar in a Graph Plot Legend for LabVIEW 8.2 and Earlier

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

Download All

Overview

This VI allows you display a vertical scrollbar for the plot legend of a waveform graph in LabVIEW 8.2 or earlier. 


Description

Displaying a vertical scrollbar for the plot legend of a waveform graph is a property that was introduced in LabVIEW 8.5. To do this in LabVIEW 8.2 or earlier, we can use a multiple column listbox to programmatically assign background colors and names  to the cells in the listbox in order to create a custom plot legend.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Complete

  1. Use the example program attached below and modify it for your needs.
  2. You can replace the Multicolumn Listbox in the program with a new one, modify the number of plots and colors you would like to use and run the VI.

 

Additional Information or References
VI Snippet

292.png

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

Stephanie A.
Americas Marketing Manager
National Instruments

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