From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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

Annotate Maximum in a Intensity Graph 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 highlight a LabVIEW Intensity Graph and provides a way to annotate the maximum.

 

Description:

It is often necessary to further highlight a LabVIEW Intensity Graph feature, and this example provides a way to annotate the maximum. It builds a 2D Array that is loaded in a Intensity Graph.

Draw Circle by Radius function is used along with the Map XY to Coordinates method and the PlotImages.Front property of the Intensity Graph to implement the front panel modification.

 

Adapt the code in the while loop as necessary when modifying annotation type.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI
  2. Modify the Annotation Size value Control

Additional Information or References

12055.png

 

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

Best Regards,
Swathi B

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