Searching Error Ring Constants in LabVIEW

Updated Dec 1, 2020

Environment

Software

  • LabVIEW

As part of the error handling functionalities of a LabVIEW application, it is possible to use the Error Ring Constant to quickly select and pass NI or custom error codes. In a large application, how it possible to identify which subVI is using a specific custom error constant?

You can use the Find and Replace tool from Edit»Find and Replace to display the Find dialog box. To make sure the Find and Replace tool is able to search the Error Ring Constant make sure to properly document them using one of the following alternatives:

  • Change the label of the Error Ring Constant: the Find and Replace tool is able to find a particular object using the label, if the label of the error ring includes the error code then it will be possible to find it. Here is an example:
  • Add a free label as part of the documentation of the program with the error code: if the project includes free labels indicating the error, these objects can be found by the Find and Replace tool. Here is an example:

Next Steps

Refer to the following document for further details regarding custom errors in LabVIEW Defining a Custom Error Code from the Error Ring and  Defining Custom Error Codes to Distribute throughout Your Application.