3-14
Agilent 4155B/4156B VXIplug&play Driver User’s Guide, Edition 4
Programming Examples Using HP VEE
Programming Basics
Debugging Your Program
You may encounter problems when creating programs to control the 4155B/4156B.
In the program development or debugging phase, insert the following transactions
(functions of the driver) in the To/From object. Do not forget to remove the
functions after completing the program. These functions will cause increased
program execution time.
•
hp4156b_cmd(instrHandle,”US”)
•
hp4156b_errorQueryDetect
To recover control mode
When using HP VEE, the 4155B/4156B control mode is controlled by the
hp4156b_init function, which is automatically called and executed by HP VEE
when the program first runs after loading.
However, if you press any PAGE CONTROL key or LOCAL softkey on the
4155B/4156B front panel after program execution, the control mode is changed.
Also, if an unexpected I/O error has occurred, you may need to do a hardware reset
which changes the control mode. Once the control mode is changed, the program
cannot run without reloading it.
To recover the control mode without reloading the program, enter the US command
using the hp4156b_cmd function as shown in Figure 3-10. The command recovers
the effective control mode for the
plug&play
driver.
Figure 3-10
To Enter the US Command
Содержание 4155B
Страница 6: ...6 Agilent 4155B 4156B VXIplug play Driver User s Guide Edition 4...
Страница 13: ...Agilent 4155B 4156B VXIplug play Driver User s Guide Edition 4 1 Installation...
Страница 20: ...1 8 Agilent 4155B 4156B VXIplug play Driver User s Guide Edition 4 Installation Installing 4155B 4156B Driver...
Страница 21: ...Agilent 4155B 4156B VXIplug play Driver User s Guide Edition 4 2 Driver Functions...
Страница 95: ...Agilent 4155B 4156B VXIplug play Driver User s Guide Edition 4 3 Programming Examples Using HP VEE...
Страница 141: ...Agilent 4155B 4156B VXIplug play Driver User s Guide Edition 4 4 Sample Application Programs for HP VEE...