ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom error handler examples and/or instruction

I'm finishing up an application and would like to customize some of the error reporting.

I've started playing around with the custom error handler VI's with some success. I would, however, like to see some examples from people who know what they are doing (unlike me).

As always, your feedback is appreciated.

Todd
0 Kudos
Message 1 of 3
(3,058 Views)
Look at this message.

http://forums.ni.com/ni/board/message?board.id=170&message.id=45649

Do a search for "General Error Handler" and you'll find some others.

I'm also trying to find a simple way to define custom error codes and descriptions in an error cluster. I can produce my codes easily enough using the vi posted by Aristos Queue in the message noted above. I can also display my user-defined descriptions using a dialog, but I haven't found an easy way to make the user-defined descriptions in the array appear in the error cluster.

Any help on this would be appreciated.
0 Kudos
Message 2 of 3
(3,054 Views)
Hi,
One way to define your custom error codes is to use the Error Code File Editor situated in Tools -> Advanced -> Edit Error Codes. This allows you to define error messages for codes 5000 to 9999.
If you build an executable, make sure you include the error file as a support file. The error file is located in Program Files\National Instruments\LabVIEW XX\user.lib\errors.

Hope this helps.
0 Kudos
Message 3 of 3
(3,049 Views)