To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This is an example of how can you use the XY Graph to draw with your mouse on it. The mouse movement generate an event to draw, and a left click erase the graph.
Description
This is an example of how can you use the XY Graph to draw with your mouse on it. The mouse movement generate an event to draw, and a left click erase the graph. I used a dll to acquire the position of the pointer to obtain the X and Y position, and save all the point in an array and show them in the Graph.
You can upgrade this example to do something more complex.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Could you maybe downconvert this example to a lower version, as not everyone has upgraded yet to LV 2011? ![]()
This es an example of how can you use the XY Graph to draw with your mouse on it. The mouse movement generate an event to draw, and a rigth click erase the graph. I used a dll to acquire the position of the pointer to obtain the X and Y position, and save all the point in an array and show them in the Graph.
You and upgrade this example to do something more complex.
Regards