LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw a circle using a mouse

Hello all, I want to initally set X and Y axes between -3 and +3, then using a mouse drag function draw a circle in that area and then be able to retrieve center and radius information. Thanks
0 Kudos
Message 1 of 3
(2,663 Views)
I hate to say this, but don't use LabVIEW for this. Try Visual Basic. You have much easier access to API that way. It can be done in LabVIEW, but it is difficult, as you have to have cursor positions and mouse clicks. It really would be much eaiser in VB.

Good luck, and please let us know how you do.
0 Kudos
Message 2 of 3
(2,663 Views)
> Hello all, I want to initally set X and Y axes between -3 and +3, then
> using a mouse drag function draw a circle in that area and then be
> able to retrieve center and radius information. Thanks

There are examples that do this with the graph -- graphctl.vi and others
that do it with the picture control -- mouse control. The picture
control example is a bit lame though since it could much more easily be
done with buttons. I'm sure there are lots more on devzone.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,663 Views)