Programming Examples - Agilent Technologies 86060C Series User Manual

Lightwave switches
Hide thumbs Also See for 86060C Series:
Table of Contents

Advertisement

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.
Programming
Programming Examples
4-31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 86061cHp 86062c

Table of Contents