Hello malkoba,
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