Use the Wiring tool to right-click the user-defined codes terminal and select Create»Constant from the shortcut menu. An array appears.
Use the Labeling tool to enter a number within the range of 5000 to 9999 in the array. For example, enter the number 5008.
Use the Wiring tool to right-click the user-defined descriptions terminal and select Create»Constant from the shortcut menu. Another array appears.
Use the Labeling tool to enter a description in the user-defined description array. For example, enter Ignore this message.
Use the Wiring tool to right-click the error in terminal and select Create»Constant from the shortcut menu. A cluster appears that contains a Boolean control, a numeric control, and an array.
Use the Operating tool to set the Boolean control to TRUE.
Use the Labeling tool to enter 5008 in the numeric control.
Run the General Error Handler VI. The message box on the General Error Handler VI front panel displays Ignore this message for error code 5008.
You also can define custom error codes by creating an XML-based text file and adding the error codes and messages to the text file.