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,351 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,345 Views)

Use Delete From Array Function

Munna
0 Kudos
Message 3 of 4
(2,342 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,336 Views)