LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

auto indexing

It works when you wire a constant to the terminal because labVIEW can determine at compile time how big that array is going to be.  So, if you know the largest array size you are going to support, then statically initialize the array and use Replcae Array element in your for loop, then keep track of how many elements are actually being used.  You may also try just wireing the max size to the loop counter and see if LabVIEW will take that.  At compile time, LabVIEW should know that there will be no more than X elements, and if your indexing elements don't go to the max size, then the loop will stop.
0 Kudos
Message 11 of 13
(501 Views)

Hi Mano,

Using arrays with a DSP target requires special considerations since the arrays cannot be resized.  Matthew has offered some good advice, similar to the information in this KnowledgeBase

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 12 of 13
(470 Views)
Please see the response posted here.
Donovan
0 Kudos
Message 13 of 13
(441 Views)