03-10-2010 08:10 AM
Hello.
In my program i have a button that opens new window to show graph from saved file.
In the new window there is i dialog. If user chooses file to open, then the graph is presented in the VI.
I want to make, that if the user cancel the dialog box of choosing file, the new window will close.
What is the solution?
Thanks
03-10-2010 08:36 AM - edited 03-10-2010 08:37 AM
Hi Tacchi,
usually a subVI's FP is closed when the subVI exits (when the VI properties are set properly, OpenOnCall and CloseAfterwards).
The other option would be a property node of the VI to close the FP programmatically.
When you use the standard FileDialog function you should also check the error output for an "User Cancel" error to recognize a cancel operation of the user...
03-10-2010 09:26 AM
GerdW wrote:Hi Tacchi,
The other option would be a property node of the VI to close the FP programmatically.
Message Edited by GerdW on 03-10-2010 03:37 PM
Hello.
That is what i was thinking about. But where I can find the VI property node?
Thanks
03-10-2010 10:15 AM
place a property node (general) (you will find this under Application Control in functions palette)
right click on that. go to select class-->VI server-->VI-->VI
Then left click on the property, FrontPanel window-->Open
then right click on the node and select " change all to write".