ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

display cursor automatically

Hello

 

I have some couples of coordinate for a point and I have already displayed my three points in red with IMAQ Overlay function

Now I want to display a cursor on each point instead of a point.

Is there a function for that?

 

Thanks for your help

 

Luckyloic

0 Kudos
Message 1 of 4
(3,458 Views)

Hi!

 

What do you want your cursor to look like?  Usually, you need to use a little math with the existing overlay functions to draw out your desired shape.  For example, the code below uses the IMAQ Overlay Line function twice to draw a 5 pixel by 5 pixel cross.

 

20785i80987E1028127488

 

Let me know if you have questions about applying this technique to your desired shape.

 

Alex Person

Applications Engineer

Alex Person
NI-RIO Product Support Engineer
National Instruments
Message 2 of 4
(3,455 Views)

Hi

 

I would like a crossfor my cursor so the VI you showed me is perfect

But is the while loop compulsory to do that? I try to avoid loop when it is possible, but let me know.

 

0 Kudos
Message 3 of 4
(3,452 Views)

I just used the while loop to allow the user to continually update the position of the point.  You won't need to use it in your application if you don't need a loop.

Alex Person
NI-RIO Product Support Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,434 Views)