Defining Custom Error Codes

LabVIEW installs built-in LabVIEW error codes and error codes for related drivers, toolkits, and modules as XML-based text files. The LabVIEW built-in error codes ship with specific error code ranges. You can, however, define custom error codes using the following ranges:

  • -8999 through -8000
  • 5000 through 9999
  • 500,000 through 599,999

You can define custom error codes in the following ways:

  • To create multiple error codes for use throughout your application and distribute them in built applications or shared libraries, use the Error Code Editor dialog box.
  • To create custom error codes that do not need to be widely used in your application or distributed in built applications or shared libraries, use the General Error Handler VI.
  • To create a single custom error code for one particular instance in your application, use the Error Ring.