LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open/create/replace file.vi cancel pb

in the windows dialog box I have two options for example open and cancel if my choice is cancel it want to read a file or cancel if my choice is cancel it stop the vi with an error. How can i change the first cancel in a real cancel? Thank you
0 Kudos
Message 1 of 3
(2,597 Views)
It's simple enough to modify the VI any way you want. The cancelled output is wired to a case statement that sets the error status Boolean to True and generates error code 43. You can remove the write to the error cluster. The other way to do it is to trap error code 43 in your main VI by just doing a comparison and clear it or do whatever other action you might want to take. If you do modify the VI, make sure to save it with a new name and in a new location.
Message 2 of 3
(2,597 Views)
Thank you dennis I'll try it tomorow and tell you if i understand how to do it.
Pierre
0 Kudos
Message 3 of 3
(2,597 Views)