kb:labview:error-handling
Table of Contents
34 Error Handling
Tips and Tricks
-
Auto Error Handling
-
If you name your VI 'Simple Error Handler.vi' or 'General Error Handler.vi' as its file name, then the auto error handling dialog won't come up.
Error Codes
Error Ranges
→ Use the range reserved for user-defined errors (500000 – 599999).
Error Code Files
Error Code Editor
The Error Code File Editor (Tools→Advanced→Edit Error Codes) provides a simple GUI for creating and editing a custom error XML files. See https://labviewwiki.org/wiki/Error_Codes_Editor for details.
Distributing Error Codes
If you are creating a stand-alone application (EXE), refer to the Distributing Custom Error Codes in Text Files topic in the LabVIEW Help. The installer build includes all error code files from
<LabVIEW>\project\errors
and<LabVIEW>\user.lib\errors
and installs them in the<Shared>\LabVIEW Run-Time\X.X\errors
directory. -
kb/labview/error-handling.txt · Last modified: 2023/01/30 17:16 by joerg.hampel