The programme below is a dual channel frequency analyser simulation which store the frequency, real, imaginary data into an ascii.asc file in a folder in the PC. For each teration of the loop a pop up comes requesting to replace the file with new data. I require to save the data of the iteration when the averages are completed of the Frequency Response Function (say the data after the 100 avarage). How can I link the append to file signal of the Write to spread sheet vi of the programme with the averages completed signal of the FRF vi of the programme. By doing this I will have the data after the specified average being done on the input signal.
Thanks. But when it is done like that each file of each iteration is appended to the file of the previous iteration. Can it be possible to keep the switch false till all the averages are done in the FRF and make it true when the final iteration is completed. So that you only get the required file after the final iteration is completed. Thanks
it's better than before, but not as good as taking the file write out of the loop. I cleaned up your vi a little bit...
At the moment you append to the file as long as the calculation runs. If the max number of averages is reached you want to replace your text file and will get a dialog window. Do you want to annoy the user with some unwanted dialogs? ("Replace a file? Why should I replace? I told you to write to that file!" and so on 🙂
Best regards, GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019