I have an transducer inside a nest of five while loops. The transducer is
pre-set with initial parameters such as frequency. At turn-on, it collects
data and then exits into the next outer while loop checking to see if a parameter
has been changed and if so, it will go back into the innermost loop and collect
new data. This process repeats untill all possible combinations of parameters
are tested and data is gathered. There can be several hundreds of data samples
collected. How do I build an array of this data and output it when all possible
samples have been taken?