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.
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.