Title :
A better way to handle instrument error checking
Author :
Anderson, J.L., Jr.
Author_Institution :
NSWC Corona Div., CA
Abstract :
The LabWindows/CVItrade "C" language compiler has no built in method of handling errors that occur in functions or drivers. The usual method is to use an "if" statement for every function call made, but this is very tedious and generates a lot of code. Often programs simply ignore errors and keep on going and depend on an eventual test failure to prevent acceptance of the item being tested. This leads to the wrong conclusion about what really went wrong. Other languages such as C++ have "try", "catch" and "throw" for exception handling. This paper explores several methods of handling the problem with much less code
Keywords :
C++ language; automatic test software; error correction codes; program compilers; C language compiler; LabWindows/CVI; automatic test software; error handling; eventual test failure; instrument error checking; Built-in self-test; Corona; Counting circuits; Instruments; Programming profession; Safety devices; Signal detection; Testing;
Conference_Titel :
Autotestcon, 2005. IEEE
Conference_Location :
Orlando, FL
Print_ISBN :
0-7803-9101-2
DOI :
10.1109/AUTEST.2005.1609094