08-15-2011 02:35 PM
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.
08-15-2011 03:00 PM
Read the LabVIEW Help on Automatic Error Handling.
In your case, you can just wire the error cluster output to your case structure.
08-15-2011 03:01 PM
If you don't want automatic error handling, just turn it off or wire up the error out cluster.
08-15-2011 03:07 PM
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
[exception code]=43
type of dialog=no dialog
Felix
08-15-2011 04:10 PM
Excellent! Thanks for the information, guys. I'll read about Automatic Error Handling and get this fixed right up!