Modifying Error Code Descriptions in LabVIEW

Updated Sep 25, 2018

Reported In

Software

  • LabVIEW

Issue Details

I would like to modify or overwrite one of the existing error codes in LabVIEW.

Solution

While you cannot modify the error database itself, it is possible to modify what error is displayed by the General Error Handler by using the <err> or <append> tags to the source field in an error cluster before sending it to the General Error Handler vi.

If the <err> tag appears in the source field, the error message will be replaced with the text that comes after the <err> tag in the source field.



If the <append> tag appears in the source field, the error message will be displayed as expected, but all text after the <append> tag will be displayed at the end of the error message.

Additional Information

While this method will change the text displayed by the General Handler VI, this will not overwrite the error message associated with a certain error code for future use. This information is stored in the NI Error Code Database, and cannot be modified.