4-31
Programming
Programming Examples
Programming Examples
This section includes a number of programming examples to illustrate the use
of remote commands in actual programs. These programming examples do not
cover the full command set for the instrument. They are intended only as an
introduction to the method of programming the instrument
.
The example programs in this chapter are as follows:
Example 1:
This simple program uses the ROUTE:LAYER:CHANNEL
command to move the switch to a new position. The
program shows how to use the *WAI command to ensure
that the switch has settled to its new position.
Example 2:
This program is similar to the first example program.
Instead of using the *WAI command, the Status Byte
Register is read repeatedly using the *STB query. When
bit 0 of the Status Byte Register returns to zero, the switch
has settled to its new position.
Example 3:
Repeating the same program as the first two examples, the
*OPC command and *ESR query are now used to
determine that the switch has settled to its new position.
The *OPC command is sent before the
:ROUTE:LAYER:CHANNEL command, and then the
Standard Event Status Register is continuously read until
bit 0 is set to one.
Example 4:
This example illustrates the use of two switches in an
automated system to periodically monitor a number of
devices under test (DUTs). The test system includes an
Agilent 8153A optical multimeter with an Agilent 81554SM
laser source and an Agilent 81532A optical power sensor.
This program measures the optical power through each
device under test every 5 minutes and displays a message if
the power drops below 1 microwatt.
Содержание 86060C Series
Страница 1: ...Agilent 86060C Series Lightwave Switches User s Guide ...
Страница 6: ......
Страница 17: ...1 11 General Information Specifications and Regulatory Information ...
Страница 32: ......
Страница 50: ......
Страница 79: ...4 29 Programming SYSTem CONFig Example DIM Config OUTPUT 711 SYSTem CONFIG ENTER 711 Config PRINT Config ...
Страница 91: ...5 Spare Channel Replacement Procedure 5 4 Electrostatic Discharge Information 5 7 Servicing ...
Страница 96: ...5 6 Servicing Spare Channel Replacement Procedure Figure 5 2 Top view of the Agilent 86062C lightwave switch ...
Страница 102: ......