Example Programs
4
-
29
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 identification string of the instrument
which is displayed on the computer’s screen by the call-
ing 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 possible if no errors have occurred. Notice that the
logic test in the subroutine tests for the same event sta-
tus 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. How-
ever, it is modified in Examples 3, 4, and 5 to allow it to
indicate the last programming command that was sent
to the instrument before an error occurred. This is
accomplished by adding an optional argument string.
Cmd_opc subroutine
The Cmd_opc subroutine, found in Examples 3, 4, and
5, pauses the program until a non-sequential command
has finished executing on the Agilent 86121A. It uses
the *OPC? query.
For more information on non-sequential commands,
refer to
“Always force the Agilent 86121A to wait for
non-sequential commands” on page 4-11
.
Tempo subroutine
This subroutine, which is only found in Example 3,
pauses the program for a few seconds while the 86121A
measures the drift on a laser. The argument in the
example sets the pause for 10 seconds.
Summary of Contents for 86121A
Page 2: ...User s Guide Agilent 86121A WDM Channel Analyzer ...
Page 7: ......
Page 10: ...Chapter 1 Getting Started ...
Page 21: ......
Page 24: ...Agilent 86121A Front and Rear Panels 2 3 Agilent 86121A Front and Rear Panels ...
Page 25: ...2 4 Agilent 86121A Front and Rear Panels ...
Page 27: ...2 6 WDM Channel Analyzer Display The S N with Averaging display ...
Page 32: ...The Softkeys 2 11 The Setup menu ...
Page 33: ...2 12 The Softkeys The Disk menu The Printer menu ...
Page 35: ...2 14 Changing the Printer Paper Changing the Printer Paper ...
Page 37: ......
Page 191: ......
Page 205: ...7 14 Regulatory Information Declaration of Conformity ...
Page 239: ......