I'm writing an instrument driver for a piece of equipment that can issue numerical error codes (such as parameter out of range, out of memory, etc.) I would like to catch these errors and make anyone using my code (a programmer, or an operator)aware that an error has occured. What is the best way to do this?
My thoughts so far:
-Can instrument errors be added to the Labview error handler in some way?
-I can write my own error handling vi that will check the error code after every command issued to the test instrument. I can then alert the user with a dialog box or write the error to perhaps a global variable somewhere.
Also, how do I keep track of where in the program an error has occurred? Knowing the sub-vi alone isn't much good
since the sub-vi could be used many times in a program. Is it possible to have something running in the background that monitors the GPIB service request line so that it can check for errors, or is it better to check for errors at specific points in the program. Any references to this topic in Labview manuals, white papers, etc. would be really great.
David Grucza, CLD