02-17-2022 07:51 AM
Hello,
I discover the CVI software, I have to modify the already existing program.
The purpose of the change I need to save csv files automatically, I need to replace the "FileSelectPopupEx" function with an autosave without showing a file selection dialog.
I used a Timer callback to run the autosave.
For a few days, i can't find the function that saves the CSV file.
I hope to get your help, thank you.
Timothy
02-17-2022 09:23 AM
Hello Timothy,
from what you say I understand that the saving file operation is already performed by the program and you only need to automate this without the need for operator intervention.
Inside your timer callback you will need to add some code to generate the correct file pathname; GetProjectDir () and MakePathname () functions can be of help in creating the correct path if you need to customize it someway. I leave to you the generation of the file name since you don't give any detail about it (is this question somewhat connected to this other one of yours? Then you have some clues there).
After creating the correct pathname you will need to incorporate the code that actually creates the file or call an existing function to perform it.