11-07-2007 08:08 AM
Hi ha noi,
It is good that you are using the initialize array function in your program. This function allows you to save memory by allocating all of the appropriate memory space before you actually attempt to manipulate the array in any way. However, if you do need to add additional elements to an array, you just use the Insert Into Array function to add new elements. If you do not wire any value to the index, then the value will just be appended to the end of the array. One thing you might want to consider is to add some dummy, or zero, values at the end of the array and then you can replace those values. This probably isn't the most memory-efficient way to do this, but it should serve as sufficient for your functionality. Also, since the issue is slightly different than your original question and the title of this thread, you may want to try starting a new thread with a more-appropriate title because you will most likely have a little better luck from the LabVIEW community in helping you out with your question. I hope some of this helps and good luck with your application!