NI Home > Community > NI Discussion Forums

LabVIEW

Reply
Member
LABVIEW321
Posts: 49
0 Kudos
Accepted Solution

Array delete element

I"m having trouble on a array problem. I'm able to do the basic kinds of functionalities such as show how many elements in the array, inserting it (hopefully I did it correctly) and as well as sorting the random numbers in ascending order.

 

Now, I'm hoping to find a way on how to delete the 4th and 5th element of the array, and then displaying the portion that was deleted and showing the final result of the array.

I was tinkering with the "Delete From Array" array structure and tried to use it, I even looked up the documentation and tried to connect the wires, but I can't seem to get this to work?

 

Attached is what I have now

 

 

Knight of NI
RavensFan
Posts: 15,609
0 Kudos

Re: Array delete element

If you are having problems with delete from array, then please post a VI where you actually used it and tell us where you are having problems.

Trusted Enthusiast
ThiCop
Posts: 2,350

Re: Array delete element

Hey LabVIEW321,

 

Here's a simple illustration on how to use it.

 

If anything is unclear, then please let us know.

Kind Regards,

Thierry C - Platinum Applications Engineer - NI Belgium
CLD, CTD

If someone helped you, let them know. Mark as solved and/or give a kudo. :smileywink:
Member
LABVIEW321
Posts: 49
0 Kudos

Re: Array delete element

@ThiCop

 

Thanks for the helpul example. So in my problem how I would make the element to delete the specific element 4 and 5. It seems in your example, there is a control that you tied it to the index of the delete from array structure.

Trusted Enthusiast
ThiCop
Posts: 2,350

Re: Array delete element

Hello LabVIEW321,

 

Here's the adapted example.

Kind Regards,

Thierry C - Platinum Applications Engineer - NI Belgium
CLD, CTD

If someone helped you, let them know. Mark as solved and/or give a kudo. :smileywink:
Knight of NI
RavensFan
Posts: 15,609

Re: Array delete element

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

Member
LABVIEW321
Posts: 49
0 Kudos

Re: Array delete element

WOW! Awesome, I think I'm understanding it a bit better. One option I don't get is when I use the array subset structure, and apply it on the same example you get, I get one number I believe. Is that correct, I'm not really sure how that works,

Member
LABVIEW321
Posts: 49
0 Kudos

Re: Array delete element

@