I've attached a very simple VI that embodies what I want to do with my Open File function. I simply want to stop the rest of my program (theoretically encased in the Case Structure) from running if the user deigns not to specify a file location.
However, if the Cancel button is clicked an error is produced before the rest of the program runs. If you ignore the error and continue, the "cancelled' variable is appropriately made true and the Case Structure runs properly. I simply want to remove the error message LabView gives me.
Any ideas on why or how?
Solved! Go to Solution.
Read the LabVIEW Help on Automatic Error Handling.
In your case, you can just wire the error cluster output to your case structure.
If you don't want automatic error handling, just turn it off or wire up the error out cluster.
The cancel button gives you error code 43 (if I remember correctly). After your file vi's, use the general error handler (GEH) to clear this error (and no other errors). Use
[exception action]=Cancle Error on Match
type of dialog=no dialog
Excellent! Thanks for the information, guys. I'll read about Automatic Error Handling and get this fixed right up!