LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

draw multiple point in an image

Dear all Hello

I have problem to draw multiple points in an image

does any body help e please

best regards

essi

0 Kudos
Message 1 of 8
(1,247 Views)

It is not clear what you want to do, and where you are having trouble.  Please post your VI (not a picture of it, but the actual .VI file, preferably "Save for previous version" specifying LabVIEW 2019 or 2021, which most of the "experienced LabVIEW developers" who try to help on this Forum are using.

 

Bob Schor

0 Kudos
Message 2 of 8
(1,223 Views)

Since you posted in the LabVIEW forum, I assume you are talking about a 2D image on the front panel. Can we assume you are not using the NI Vision module? Please provide as much information as you can!

 

You you seem to have problems drawing multiple points. Can we assume that you have no problems drawing a single point?

 

Assuming you have a 1D array of xy points, just autoindex over it in a FOR loop while keeping the image in a shift register. Each iteration will contain a "draw point". The rest should fall in place.

 

See how far you get. If you get stuck, attach what you have so we can give more specific advice.

0 Kudos
Message 3 of 8
(1,179 Views)

@altenbach wrote:

Assuming you have a 1D array of xy points, just autoindex over it in a FOR loop while keeping the image in a shift register. Each iteration will contain a "draw point". The rest should fall in place.


Here's how that could look like:

 

altenbach_0-1690186702545.png

 

 

0 Kudos
Message 4 of 8
(1,169 Views)

dear all really appreciate for your help.

I attached my file, and hope my problem to be solved.

suppose I want to run this vi for several times (2,3,4...)

at the first run red point show for example (Amplitude = 20 and degree = 120)

at the second time it should save the position of red point and show it plus showing

the second point to be controlled with (for example green color) Amplitude and Degree knob.

in the third time it should save the position of first and second run and to be controlled

with new color and so on.

 

best regards

essi

 

 

0 Kudos
Message 5 of 8
(1,083 Views)

You simply need to create a proper toplevel VI (state machine) and keep the image in a shift register. (currently, it's just a downhill run.)

 

(If you want to keep doing multiple runs, you need to keep things in an uninitialized shift register, but then you also need a way to start over)

0 Kudos
Message 6 of 8
(1,074 Views)

Hello all.

I am studying about state machine that was suggested by 

 

0 Kudos
Message 7 of 8
(1,034 Views)

@essi12345 wrote:

Hello all.

I am studying about state machine that was suggested by 


Then show us what you tried (VIs, not pictures!) and we will fix it.

0 Kudos
Message 8 of 8
(1,016 Views)