hi
I have immediately built this vi for your reference.
You may modify it to suit your requirements.
Hint:
1) Set Append-to-File? : FALSE at each entrance to the program so that you have an option of whether to append or to overwrite the previously saved file.
2) Set Append-to-File? : TRUE when you are in your loop for data collection.
Hope this help in your LV programming.
Cheers
ian.f