Example Code

LabVIEW Draw a Circle with the Mouse

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

Manages user interactions with the mouse in order to create a circle on a canvas.

 

Description

This code consists on showing how we can monitor the user interactions within a specified area in order to execute an action. In this particular case, we are generating a circle with a radius dependent of the draging accion with the mouse.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Open the "Draw Circle with Mouse LV2012 - NI Verified.vi".
2. Select the Run button.
3. Use your mouse to create circles over the canvas.

 

Additional Information or References

Capture.PNG

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support

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