
Agilent B1500A/B1505A Programming Guide, Edition 11 1-59
Programming Basics
Programming Tips
To Confirm the Operation
To complete the measurement program, you can insert statements to check the
B1500 operation status as shown below. This example starts the measurement,
checks the status caused by the statements before the ERRX? command, reads and
displays the measurement data without errors, or displays an error message when an
error occurs.
OUTPUT @B1500;"XE"
OUTPUT @B1500;"ERRX?"
ENTER @B1500;Code,Msg$
IF Code=0 THEN
ENTER @B1500 USING "#,3X,12D,X";Mdata
PRINT "I(A)=";Mdata
ELSE
PRINT "ERROR: ";Msg$
END IF
To Confirm the Command Completion
To check the completion of the previous command execution, use the *OPC? query
command. Entering the *OPC command before sending a command to other
equipment serves to delay its operation until the B1500 has completed its operation.
The *OPC? command is useful to control equipments sequentially.
For example, the following program segment waits until the B1500 completes the
DI command execution, and sends the XYZ command to equipment identified by
@Address.
OUTPUT @B1500;"DI";1,0,1.0E-10,1
OUTPUT @B1500;"*OPC?"
ENTER @B1500; A$
OUTPUT @Address;"XYZ"
To Disable the Auto Calibration
The auto calibration function triggers self-calibration automatically every 30
minutes after measurement. When the function is enabled, open the measurement
terminals frequently because calibration requires open terminals.
If you execute automatic measurements as a batch job that might leave the device
connected for over 30 minutes after the measurements, disable auto calibration.
Otherwise, the calibration might not be performed properly, or unexpected output
might appear at the measurement terminals, and it could even damage the device. To
disable auto calibration, send the CM 0 command.
Komentáře k této Příručce