LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to modify a waveform in a waveforms array

"Hi,
I have a global variable with a waveforms array, each position of this array is a buffer channel where i write a portion of a signal at the same time i read.
My problem is that i´m wasting a lot of memory. How could i write a block of a signal in one of this buffers without wasting too much memory?"
0 Kudos
Message 1 of 2
(2,397 Views)
> My problem is that i´m wasting a lot of memory. How could i write a
> block of a signal in one of this buffers without wasting too much
> memory?"

If you want to update a portion of a global array, look at using a
functional global, often referred as a LV2 style global. This is
actually a subVI that has various ways of interacting with the data, and
a given call to the subVI reads from an uinitialized shift register,
updates the data and returns it to the right side. It can also return a
specific element if that is what you want.

This allows you to avoid returning the entire array all over your
application.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,397 Views)