3-29
Programming
Example Programs
The Err_mngmt subroutine is used to actually read the value of the
event status register. Examples 1 through 5 call this subroutine.
FNIdentity function
When this function is called, it resets the instrument and queries the
instrument’s identification string which is disp layed on the comp uter’s
screen by the calling function. To accomplish this task, the FNIdentity
function uses the *RST, *OPC?, and *IDN? common commands. This
function is called from Examples 1 through 5.
Err_mngmt subroutine
This subroutine checks to make sure that no errors have set bits in the
event status register and that there are no errors in the queue. Exiting
this subroutine is only p ossible if no errors have occurred. Notice that
the logic test in the subroutine tests for the same event status register
bits enabled by the Set_ese subroutine: BIT(Cme,5), BIT(Cme,4),
BIT(Cme,2).
This subroutine is called in Examples 1 through 5. However, it is mod-
ified in Examp les 3, 4, and 5 to allow it to indicate the last p rogram-
ming command that was sent to the instrument before an error
occurred. This is accomp lished by adding an op tional argument string.
Cmd_opc subroutine
The Cmd_op c subroutine, found in Examp les 3, 4, and 5, p auses the
program until a non- sequential command has finished executing on the
Agilent 86120C. It uses the *OPC? query.
For more information on non- sequential commands, refer to
“Always
force the Agilent 86120C to wait for non- sequential commands” on
page 3- 12
.
Tempo subroutine
This subroutine, which is only found in Examp le 3, p auses the p ro-
gram for a few seconds while the Agilent 86120C measures the drift
on a laser. The argument in the example sets the pause for 10 seconds.
Summary of Contents for 86120C
Page 12: ......
Page 26: ...1 14 Getting Started Returning the Instrument for Service ...
Page 27: ...1 15 Getting Started Returning the Instrument for Service ...
Page 28: ......
Page 96: ...3 18 Programming Monitoring the Instrument ...
Page 128: ...3 50 Programming Lists of Commands ...
Page 236: ...4 108 Programming Commands UNIT Subsystem ...
Page 248: ......
Page 264: ...6 16 Specifications and Regulatory Information Product Overview ...
Page 269: ...7 5 Reference Menu Maps Appl s Menu ...
Page 271: ...7 7 Reference Menu Maps Display List by WL Menu Delta On Menu ...
Page 273: ...7 9 Reference Menu Maps System Print Menu ...
Page 274: ...7 10 Reference Menu Maps System Setup Menu ...
Page 284: ......
Page 292: ......
Page 293: ......