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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to delete a single array element and its next element take its place?

Hi i want to implement this program where when the user inputs the index, that particular element is deleted and the next array element takes its place. E.g. the array has 9 clusters, I want to remove the 4th cluster so that the 5th cluster takes its place and the 6th takes the 5th's place and so on and the last cluster becomes empty (basically shifting), how do i achieve this?

0 Kudos
Message 1 of 4
(2,343 Views)

Hi shreya,

 

you should use DeleteFromArray!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,337 Views)

Use Delete From Array Function

Munna
0 Kudos
Message 3 of 4
(2,334 Views)



Thank you & Best regards
syrpimp

=======================================================
“You must continue to gain expertise, but avoid thinking like an expert." -Denis Waitley
0 Kudos
Message 4 of 4
(2,328 Views)