Example Code

Map coordinates to XY graph to use mouse as cursor

Code and Documents

Attachment

This example code has as its objective the use of the property node Map coordinates to XY graph. In particular, thanks to the mouse I can use the mouse pointer as a pointer of the chart and have info on X and Y of the graph.

1) Generation Waveform Graph

2) Set position of Waveform Graph on the front panel

3) Elimite scrollbar

4) Calculation of relative coordinate in the front panel

5) Map relative coordinate to XY Waveform

The point 3 is necessary because if the user move the relative position of Graph indicator in the front panel everything not work.

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

Comments
pbuerki
Member
Member
on

Please save also in LabVIEW 2011 or earlier, please. thank you.

Contributors