02-11-2009 12:00 AM
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
Solved! Go to Solution.
02-11-2009 12:23 AM
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.
02-11-2009 02:09 AM
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
02-11-2009 02:48 AM
02-11-2009 03:10 AM
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
02-11-2009 03:42 AM
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?
02-11-2009 03:42 AM
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...
02-11-2009 04:26 AM
I tried altenbach method and it works great!
thanks all for your helps.