Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Distributing Custom Error Codes in Text Files

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

If a VI that you want to distribute as part of a stand-alone application or shared library uses custom error codes in XML-based text files, you must distribute those files with the application or shared library so the error handling VIs can use them.

If you want to include custom error codes, add the error code files to the Always Included listbox on the Source Files page of the Application Properties dialog box or the Source Files page of the Shared Library Properties dialog box.

You also can include LabVIEW error codes. From the Advanced page of the Application Properties dialog box, place a checkmark in the Copy error code files checkbox to include LabVIEW error code files in the application. From the Advanced page of the Shared Library Properties dialog box, place a checkmark in the Copy error code files checkbox to include LabVIEW error code files in the shared library.

If you use the Application Builder to create an installer, you can place a checkmark in the Install custom error code files checkbox on the Advanced page of the Installer Properties dialog box to include LabVIEW error code files. The installer build includes all error code files from labview\project\errors and labview\user.lib\errors and installs them in the Shared\LabVIEW Run-Time\x.x\errors directory, where x.x is the version of LabVIEW.

Note Note  You must manually create an errors folder in the labview\user.lib directory to organize your error code files.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit