Example Code

Annotation List for Multiple Plots on a 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 shows how to use many of the properties of the Annotation List for multiple plots on a graph

 

Description

Annotating graphs with text and other explanatory material can improve the graph's ability to convey information. This VI shows how to use many of the properties of the Annotation List for multiple plots on a graph. It works with 3 plots, but the behavior and indexing is the same for more or fewer plots

 

Requirements

LabVIEW 2012 or compatible

  

Steps to Implement or Execute Code 

  1. Run the VI
  2. Change the Annotation Mode to change where the arrow point snaps to:

     0 = snap to Position on the XY graph

     1 = snap to Index point of the specified Plot

  1. Press Create to get a new random plot
  2. To stop the VI, Press STOP

 

Additional Information or References

VI Block Diagram

 Annotation List for Multiple Plots on a Graph in LabVIEW BD.png

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

 


Mark E.
National Instruments

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

Comments
JaniceKuo
Member
Member
on

Excellent example which makes me understand the differences between index and position of the cursor property.