Table of Contents

34 Error Handling

Tips and Tricks


Error Codes

Error Ranges

→ Use the range reserved for user-defined errors (500000 – 599999).

Error Code Files

Where Are LabVIEW Error Code Files Located?

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.