12-26-2018 12:09 AM
I generate a vi through scripting based on a bunch of inputs through the AutoCreateVI in my project. The vi gets generated correctly but I have trouble saving it via the invoke node save instrument function. I close the front panel of the generated vi before I save it but that does not address the error status. I am able to save the vi manually though the file menu of the generated vi, so I do not think it is a permission issue on windows.
You can run the integration_scratch vi to observe the issue. You will have to open the create_userform subvi while the testbench is running, select a few bits, click the load button, add a name and click create. Ensure the 2 excel file address' are entered in the input FileVI tabs.
Solved! Go to Solution.
12-26-2018 11:51 AM
@rohith2 wrote:
I generate a vi through scripting based on a bunch of inputs through the AutoCreateVI in my project. The vi gets generated correctly but I have trouble saving it via the invoke node save instrument function. I close the front panel of the generated vi before I save it but that does not address the error status. I am able to save the vi manually though the file menu of the generated vi,
Which unloads the VI from memory...how would you save something that is not in memory? I BELIEVE that "Path to saved file" needs the vi.name to save it It probably should be "VI File Name" indicating that the path and name are required. (which would be consistent with the usage for the "Save As" case and explain why it returns a permission error when saving it as if it were a folder)
12-26-2018 08:21 PM
Thank you, It was the missing file name. I had named the vi when I was generating it and assumed the Vi name gets appended to the path. I tried the close vi before saving because I was encountering the error 8. Somewhere in the labview help, it was mentioned that if the vi was open there could be an error generated. I guess that only applies for vi's that are already saved in memory and not for new vi's.
12-27-2018 07:34 AM
We all have days like that...glad I could help