Finding Error Code Descriptions

LabVIEW installs built-in LabVIEW error codes and error codes for related drivers, toolkits, and modules as XML-based text files. You can use the General Error Handler or Simple Error Handler VIs in labview\vi.lib\utility\error.llb to obtain a description of these error codes.

If the VIs do not return a description, the error code text files might have been moved, deleted, or corrupted. This problem usually occurs when you use user-defined error codes, applications or shared libraries, or drivers released before LabVIEW 6.1.

You often can solve the problem by taking the following actions. If you add any new error code text files to your computer, the changes take effect the next time you start LabVIEW.

User-Defined Error Codes

National Instruments recommends that you use the General Error Handler VI to define custom error codes. However, 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. If you are using a VI built by another developer and that developer defined custom error codes in a text file, you must obtain a copy of the text file and place it in the labview\user.lib\errors directory.

Applications or Shared Libraries

If you are developing an application or shared library, you must distribute any relevant error code text files with the application or shared library.

Legacy or Third-Party Drivers

If you are using a driver that was released before LabVIEW 6.1, the driver installed a version of error.llb that contains all the driver error codes. The driver did not install error code text files to describe the driver error codes. You must copy the error code text files for the old driver to the correct directory so LabVIEW can locate the error code and its description. Copy the legacy text files from the labview\resource\errors\old errors directory to the shared drivers directory on your computer, usually Windows National Instruments\shared\errors, Macintosh Applications Support\National Instruments\errors, or UNIX defined by the NIERRORSDIR environment variable.

If you installed the legacy driver after installing LabVIEW 6.1, you must replace the driver's version of error.llb with the version of error.llb installed with LabVIEW 6.1.