Using In Place Element Structure to Build an Array

Updated May 2, 2018

Reported In

Software

  • LabVIEW

Issue Details

In my application, I require adding elements to the end of an array. I have been using a for loop with a shift register and building a new array out of the previous iteration's array and the new element in each iteration. Can I use an In Place Element Structure instead to increase performance?

Solution

The In Place Element Structure does not have a border node to build an array. Instead, an array can be initialized outside of the for loop, and elements can simply be added via the Insert Into Array function in each iteration (see snippet below). This will increase performance by reducing the number of arrays that have to be created and stored in memory.

WAS THIS ARTICLE HELPFUL?

Not Helpful