6-14 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Programming Examples for VEE Users
Programming Basics
Debugging Your Program
You may encounter problems when creating programs to control the 4155/4156. 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 Agilent VEE, the 4155/4156 control mode is controlled by the
hp4156b_init function, which is automatically called and executed by Agilent VEE
when the program first runs after loading.
However, if you press any PAGE CONTROL key or LOCAL softkey on the
4155/4156 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 6-10. The command recovers
the effective control mode for the
plug&play
driver.
Figure 6-10
To Enter the US Command
Summary of Contents for 4155C
Page 3: ......
Page 13: ...1 Installation...
Page 19: ...2 Driver Function Reference...
Page 89: ...3 Programming Examples for Visual Basic Users...
Page 147: ...4 Programming Examples for Visual Basic NET Users...
Page 183: ...5 Programming Examples for C Users...
Page 225: ...6 Programming Examples for VEE Users...