LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming intensity graph cursor to move automatically

Hi Everyone!

 

I want to program the 2 cursors(horizontal and vertical) in the intensity graph(Bright spot.png) to move to the bright spot in the middle of the intensity graph(live video feed from a CCD camera) automatically without dragging the cursor manually to the bright spot, is it possible?

 

I've attached part of my block diagram which involves the graph but i'm unable to attach the whole VI because it has some hardware dll in it.(you guys can ignore the formula part of the block diagram, it's not important)

Download All
0 Kudos
Message 1 of 3
(2,289 Views)

Use "Array Max&Min" to find the peak coordinates, translate them to x and y values, and change your cursor position property node to write and write these values.

 

I am actually not sure why you have two cursors. A single cursor with a horizontal and vertical line seems sufficient.

0 Kudos
Message 2 of 3
(2,171 Views)

I can't remember if it's just for XY Graphs, or if it applies to Intensity Graphs, too - but you may need to adjust this property when programatically moving a cursor:

 

Example_VI.png

Message 3 of 3
(2,160 Views)