I was wondering if somebody could help with this one. I have got audio signal from four sensors that I want to save at the end of a while loop using shifts registers, I tried using build array vi then to write to spreadsheet vi, but whenever I opened the file I could only see two rows one column of the data. And I expected to see four columns of numerous rows. Please advice on such a problem. Thanks.
Whenever somebody is logging data, it is almost always a bad idea to be building up an array and then saving afterwards. Out of Memory errors happen a lot. Instead, use a Producer/Consumer to log the data as it is being collected.
The Scan From String only works on a single sample. I think the waveform coerces to just the first sample. So that is all your log is doing. The simple solution is to use Build Array to combine the waveforms into an array of waveforms and then Write Waveforms To File (found in the Waveform palette). The better solution would be to use a Producer/Consumer like I mentioned earlier to perform the logging as the acquisition is happening since that would avoid a lot of potential memory issues.