How Do I Use Custom LabVIEW Error Codes in TestStand?Primary Software: LabVIEW Development Systems>>LabVIEW Base PackagePrimary Software Version: 7.1 Primary Software Fixed Version: N/A Secondary Software: TestStand
Problem: I want to define custom error codes for my TestStand/LabVIEW application. I have found documentation explaining how to do this in LabVIEW, but how do I incorporate TestStand? Solution: Custom error codes in LabVIEW can be implemented in two different ways: with the General Error Handler.vi or with an xml file. This article discusses the latter option. All the error codes in LabVIEW are defined in an xml file ( C:\Program Files\National Instruments\LabVIEW 7.1\resource\errors\English\LabVIEW-errors.txt). Error codes 5000-9999 are intentionally left undefined for custom use. Theoretically, you could modify the LabVIEW-errors.txt, but this is not recommended. Instead, LabVIEW includes a tool to help you define your own Error codes file. Depending on where you place this file, you can access the same errors in both LabVIEW and TestStand. The steps below outline this process:
The steps above should work as long as you are in the development environment. If you plan to deploy, you should put the error code file in C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\7.1\Errors\English. Refer to the related links below for more information.Related Links: Developer Zone Example Program: Handle TestStand Runtime Errors Attachments:
Report Date: 07/08/2005 Last Updated: 09/20/2007 Document ID: 3N7EE4S9 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
