Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 6-15
Programming Examples for VEE Users
Programming Basics
To check for instrument error
The hp4156b_errorQueryDetect function enables or disables automatic instrument
error checking. If automatic error checking is enabled, the driver will query the
instrument for an error at the end of each function call.
If this function is enabled (1 of Figure 6-11) and if an error occurs in the function
call, Agilent VEE stops the program execution and displays an error dialog box. You
must then enter the hp4156b_error_query function (see 2 of Figure 6-11). The
hp4156b_error_query function returns the instrument error code and error message.
In this example, an error occurred in the hp4156b_force function call. The cause of
the error was an improper parameter setting for the hp4156b_setSwitch function.
Figure 6-11
To Use the hp4156b_error_query Function
1
2
Содержание 4155C
Страница 3: ......
Страница 13: ...1 Installation...
Страница 18: ...1 6 Agilent 4155C 4156C VXIplug play Driver User s Guide Edition 4 Installation Installing VXIplug play Driver...
Страница 19: ...2 Driver Function Reference...
Страница 89: ...3 Programming Examples for Visual Basic Users...
Страница 147: ...4 Programming Examples for Visual Basic NET Users...
Страница 183: ...5 Programming Examples for C Users...
Страница 225: ...6 Programming Examples for VEE Users...
Страница 271: ...7 Sample Application Programs Using VEE...