07-23-2023 05:35 PM
Dear all Hello
I have problem to draw multiple points in an image
does any body help e please
best regards
essi
07-23-2023 07:24 PM
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
07-24-2023 02:27 AM - edited 07-24-2023 03:09 AM
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.
07-24-2023 03:16 AM - edited 07-24-2023 03:18 AM
@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:
07-28-2023 02:43 PM
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
07-28-2023 03:44 PM
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)
07-31-2023 01:29 AM
Hello all.
I am studying about state machine that was suggested by altenbach.
but I still have not fond any way to solve the problem.
if any idea I will appreciate.
best regards
essi
07-31-2023 11:08 AM
@essi12345 wrote:
Hello all.
I am studying about state machine that was suggested by altenbach.
but I still have not fond any way to solve the problem.
if any idea I will appreciate.
Then show us what you tried (VIs, not pictures!) and we will fix it.