Programming Examples - HP 86060C Series User Manual

Lightwave switches
Table of Contents

Advertisement

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
HP 8153A optical multimeter with an HP 81554SM laser
source and an HP 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.
4-32

Advertisement

Table of Contents
loading

This manual is also suitable for:

86060c86061c86062c

Table of Contents