User Tools

Site Tools


kb:labview:error-handling

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

HSE Error Ranges

At HSE, we maintain our own set of Error Code Definitions.

Error Ranges

  • Use the range reserved for user-defined errors
    • -8999 to -8000
    • 5000 to 9999
    • 500.000 to 599.999

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: 2026/07/27 11:47 by alexander.elbert