LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delete array icon won't expand

Solved!
Go to solution

Hi,

 

Does anyone have problem with "delete array" icon that won't expand to accept more indexes?  From the Context help, it shows the delete array icon as expandable, but it won't work.

 

thanks,

atd

Message 1 of 8
(3,456 Views)

You posted an image 19 times that is pointing to your harddrive.  For obvious reasons, we can't see the image when it's located there.

 

You need to attach your image file to the message, and submit your message.  Only then can you go back and edit your message and insert the image based on its file location on the NI web server.

 

Looking at context help, I agree that the picture there is deceiving.  As you add dimensions to the array, the icon will grow based on the additional indexes needed for the extra dimensions.  But it isn't truly a user exandable node.  And I can't think of any logical reason why it should be user exandable.

 

I think you may have found an error on the documentation for that function.

Message 2 of 8
(3,449 Views)

Ok, it is my mistake.  I tried to paste the image a few times then decided not to...nothing showed while editing until the message posted.

 

If "delete array" supports expandable indexes, it would fit what I want to do perfectly.  I have an array of many test conditions controlling a for loop. 

In some cases, to save total run time I want to remove many of these conditions at various indexes.  There are other ways that could work for me, but 

this appears to be the easiest....only if it works as the docs suggested :smileyvery-happy:

Message 3 of 8
(3,436 Views)

Hi atd,

 

"delete from array" will show as much index inputs as you need for the wired input array... What else do you need?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 8
(3,427 Views)

Hi GredW,

 

Yes, that is what I need, except it doesn't work.  I can't expand the icon to show more index inputs.

 

thanks,

atd

Message 5 of 8
(3,421 Views)
Solution
Accepted by topic author atd

No, the node is not expandable. I guess the image in the context help indicates how the node adapts to higher dimension input arrays.

 

Having the node expandable would be very dangerous because the indices assigned to elements of course change with every deletion. If you need to delete many sections, htere are much better ways to do this. "Delete from array" should typically not be used repetitively (e.g. in a tight loop).

 

For some better ideas, have a look at this post. As you can see here, doing it efficiently can be orders of magnitude faster. Is your array 1D, 2D or higher?

 

 

Message 6 of 8
(3,411 Views)

atd wrote:

From the Context help, it shows the delete array icon as expandable, but it won't work.


Yeah, it is a mistake on NI's part as far as the Help documentation work is concerned.

 

Please dont get confused with it...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 7 of 8
(3,410 Views)

I tried altenbach method and it works great!

thanks all for your helps.

Message 8 of 8
(3,402 Views)