Example Code

Show Cursor Values Next to Mouse on Z Intensity 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 use of the mouse move event within the plot area of the intensity graph.

 

Description

You can show the X,Y, and Z values of an intensity graph next to the mouse as it is in the plot area using this example code. The VI makes use of the Mouse Move event within the Plot Area of the Intensity Graph. Then, it correlates the location of the mouse in the plot area to the array of the graph and then writes the values to a cluster indicator that moves with the mouse.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. Move mouse cursor into Intensity graph to see X,Y,Z values of graph.

 

Additional Information or References

I did not use tool strips because the appear slowly and then do not move with the mouse.

Capture.PNG

 

 

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

 

 

Joshua B.
National Instruments

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

Comments
Daniel Stoilkov
Member
Member
on

how can i make the same for graph indicator of mulitple plots

Thanks great example.