LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build array question

I have several questions about this library function - Build array.
I am using it at the moment for an audio application where I have an
array of audio data which goes into the bottom part of Build array (I
extend it to two inputs)
and then into a register. I then take the past data from the register
and add it to the top part of Build array and this stores all the audio
I like in memory before I store it on a .wav file.
Trouble is that sometimes a 2D array is created by this and other times
a 1D -
which is what I want. I am a bit puzzled by this.
Other question is how to I 'flush' the memory so I can erase what is
stored?
I can re-run the program by exiting and re-entering but this is messy.
I have tries -re-initialising to default values but th
is does not work
either.

thanks

Tom
0 Kudos
Message 1 of 3
(2,873 Views)
if build array generates the wrong dimensional array
you can right click on it and select concatenate on the pop up menu.
greetings from the Netherlands
Message 2 of 3
(2,873 Views)
As Albert said, right click ...

As for clearing memory,
Write an empty array to where ever you are saving your array. This can be done using a case structure where the empty array is returned in one case, and the other case simply passes the array through un-altered.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,873 Views)