LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Appending array after VI is executed

Hello all, I'm doing an FFT and want the max value for each setup input which requires multiple runs of my VI. Everytime I hit the run button, a new max value is established and I need to do multiple runs because of the setup required. Is there a way to hold that max value from the previous VI run, then append the new one to it? For example, if I have 5 inputs I need to test, could I have the VI run, grab the max value, VI finishes, change the setup in the front panel, run the VI, grab the max value, and so on for however many times I run it? Or is the simplest way to write the max value to a file, append the data every run, then read in the file after it all?

 

Thanks.

0 Kudos
Message 1 of 2
(2,359 Views)

I would make a higher level VI that has an array with your input parameters.  Feed the array into a for loop.  The for loop should simply contain your analysis VI with the parameters passed in.  The outputs of the VI can then be brought out of the loop and display as another array.  NOTE:  you have to use autoindexing on the for loop and your VI's inputs and outputs need to be connected via the connector pane.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,351 Views)