LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Serial Data from Arduino using labview VISA?

Solved!
Go to solution

Thank you so much for this sir 🥺🙏🏻

0 Kudos
Message 141 of 143
(886 Views)

Memory management is a reason to use insert int an array instead of build array. Used to be that if you did build array that the behind the scenes labview code would copy the entire array to a new array with the new array element to grow the array. After awhile memory gets fragmented and the process takes longer and longer.

 

If the memory is pre-allocated and then populated with Insert Into Array, then there isn't any memory management delay.

 

Good Luck

0 Kudos
Message 142 of 143
(37 Views)

@Drewski wrote:

Memory management is a reason to use insert int an array instead of build array. Used to be that if you did build array that the behind the scenes labview code would copy the entire array to a new array with the new array element to grow the array. After awhile memory gets fragmented and the process takes longer and longer.


Insert Into Array also causes a memory allocation for the larger array, just like Build Array.

 


@Drewski wrote:

If the memory is pre-allocated and then populated with Insert Into Array, then there isn't any memory management delay.

Perhaps you mean to use Replace Array Subset, which will work in place with a pre-allocated array.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 143 of 143
(22 Views)