Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 6i Error Codes

I am developing an instrument driver in LabVIEW 6i. I have developed a few drivers before, so I have already read many times application note 6 �Developing a LabVIEW Instrument Driver�. My problem this time is about assigning error codes.

With old error code assignment, I used to divide instrument driver error codes in two categories: instrument specific errors and developer defined errors. Under �instrument specific errors� I placed all errors documented in the instrument manual. Under �developer defined errors� I used to place errors that were not documented in the instrument manual but could be generated when communicating with the instrument: instrument not present, not a valid response to a query, etc.

This was possible because in older LabVIEW versions (e.g. Version 4) error codes assignment was quite clear. Even more, there was an application note (LabVIEW Error Codes � May 1997 Part Number 321551A-01) that explained error assignment in each subcategory. In this application note there was an specific assignment for both categories:
- instrument specific errors: -1300
- developer specified errors: -13xx
- And it was also possible to use error codes between 5000 � 9999 for user defined errors.


Now with LabVIEW 6i I am not sure whether to continue with this methodology or not. When I consult Lab View�s online help it seems that I could do it. But when I read application note 6 �Developing a LabVIEW Instrument Driver� it seems I can not.

At the moment these are my conclusions about the problem. I would like to know if they are right and if there is a new version of the application note �LabVIEW Error Codes � May 1997 Part Number 321551A-01�.

- Error Codes 13xx are old non VXIPnP instrument driver error codes. Therefore these codes should not be used any more.

- At the moment the only error codes available for instrument driver development are codes between BFFC0804 and BFFC0FFF. Inside this range, there is not a clear division between instrument specific errors and developer defined errors. Therefore error codes assignment inside this range is left at the developer discretion.

- Error codes between 5000 and 9999 can be used in general application development for specifying developer defined errors.

Thanks for your help.
0 Kudos
Message 1 of 2
(3,190 Views)
There is not a newer version of the application note. Your last 2 points are true, but I am not sure about the second. You can find more information in Labview 6i Help. Go to "Contents and Index", search for "error" under index, and go to "Instrument Driver". This gives a current list of error codes in LabVIEW. You can also find some information if you search for "error I/O" under index and go to "Creating User-Defined Errors".

You may also find some useful information in "LabVIEW Instrument Driver Standards".

http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/e7a1635c2166e0728625680a005b0b9a?OpenDocument

Kim L.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,190 Views)