Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Override error messages

I'm looking for a simple way of automatically overriding error messages during program execution.

 

In VI Properties/Execution there is an option called "Enable automatic error handling". This, of course, affects only automatically generated error messages. My problem is that when there is a "simple error handler" wired to a function, the program halts on errors. I sometimes in machine control applications dont want any error messages, since the program halt may cause serious problems. But I still want to make use of the "simple error handler", since debugging is a lot easier that way. Anyone with a simple solution so I dont have to erase all error handlers before distributing my application? 

 

Thanks, 

/MINY

0 Kudos
Message 1 of 3
(2,882 Views)

Hello MINY,

In general the best way to handle errors in a program is to pass the error out wire of one VI to the error in node of the next VI. This will allow for efficient error handling and only a single pop up in the program. If an error occurs at one VI, the subsequent VIs will not execute--they will just pass the error through.

In order to reduce the number of error pop ups you can pass the error wires as mentioned above so that you only have one simple error handler. The other option would be to just use an error cluster indicator and view the errors on the front panel. If for some reason you really do want to ignore the errors (not recommended) you could just make the error cluster hidden on the front panel. For executables error indicators are nice because they'll display the error information without a pop up.

 

I would recommend browsing examples from the Example Finder (Open LabVIEW and go to Helop» Find Examples...) to see the error handling best practices.

I hope this helps and have a great day!

Cheers,

Message Edited by Brooks_C on 08-21-2008 12:53 PM
Brooks
0 Kudos
Message 2 of 3
(2,857 Views)

Thanks for the advice, this will solve my problem!

 

/MINY

0 Kudos
Message 3 of 3
(2,846 Views)