From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-02-2019 05:58 AM - edited 08-02-2019 06:05 AM
Hi, I am doing a labview program for a project, I use an XYGraph with options to add points, move existing ones and delete them.
I have been trying to limit the elimination of points for a few hours, because I want the start and end points(in this case 0 and 11) cannot be eliminated and remain fixed. At the moment I have not found a way to do it, if someone can help me, I would greatly appreciate it.
I attached my VI.
Solved! Go to Solution.
08-02-2019 06:36 AM
Hi Aleix_C!
What do you mean with limit the elimintation of the points?
If what you want to do is nos allow the elimination of the first and last points, I would extract them, remove the relected points based on the configuration, and add the first and last points again.
(I can not download the code right now, but I would take a look if this does not resolve your doubt.)
08-02-2019 06:51 AM - edited 08-02-2019 06:52 AM
Just check the range
08-02-2019 06:54 AM - edited 08-02-2019 06:57 AM
Hi Aleix,
I want the start and end points(in this case 0 and 11) cannot be eliminated and remain fixed. At the moment I have not found a way to do it
IF cursorindex > 0 OR cursorindex < 11 THEN delete current point ENDIF
A simple case structure might help…
08-02-2019 06:58 AM
Hi!
If you remove a point from Y array, you should remove it aswell from X array. I should download the code to completly understand the whole code.
08-05-2019 02:45 AM
Oh yeah! It works, thank you so much!
08-05-2019 02:48 AM
Thank you abarrenetxea and GerdW for your help too, nice comunity!