NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


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: 13,414
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.

Active Participant
ThiCop
Posts: 1,727

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

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.

Active Participant
ThiCop
Posts: 1,727

Re: Array delete element

Hello LabVIEW321,

 

Here's the adapted example.

Kind Regards,

Thierry C - Platinum Applications Engineer - NI Belgium
CLD

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

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

@

 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page