Contents

1. Learning the Basics

 

Preparing the OSA . . . . . . . . . . . . . . . . .

1-4

To prepare the OSA . . . . . . . . . . . . . . . .

1-7

To change the HP-IB address using switc hes . . . . .

1-8

To change the HP-IB address from the fron t panel . . .

1-9

Beginning Your Program . . . . . . . . . . . . . . .

1-10

To initialize the bus and the OSA . . . . . . . . . .

1-10

Sending Commands . . . . . . . . . . . . . . . . .

1-11

To send commands to the OSA . . . . . . . . . . .

1-13

Returning Data to the Computer . . . . . . . . . . .

1-14

To query a value . . . . . . . . . . . . . . . . .

1-16

Using Commands as Arguments . . . . . . . . . . . .

1-17

To use a command argument . . . . . . . . . . . .

1-17

Using the MOV Command . . . . . . . . . . . . . .

1-18

Controlling Program Timing . . . . . . . . . . . . .

1-19

Entering Data from the Front Panel . . . . . . . . . .

1-21

To allow front-panel data entry . . . . . . . . . . .

1-21

Controlling Advanced Measurement Programs . . . . . .

1-22

Making advanced measurements over HP-IB . . . . .

1-22

2. Using Variables and Traces

 

De￿ning Variables . . . . . . . . . . . . . . . . . .

2-4

To create a user-de￿ned variable . . . . . . . . . .

2-5

To erase a user-de￿ned variable . . . . . . . . . . .

2-5

De￿ning Traces . . . . . . . . . . . . . . . . . . .

2-6

To create a user-de￿ned trace . . . . . . . . . . . .

2-7

To erase a user-de￿ned trace . . . . . . . . . . . .

2-7

Using Amplitude Data . . . . . . . . . . . . . . . .

2-8

To select the amplitude units . . . . . . . . . . . .

2-9

To convert measurement and parameter units . . . . .

2-9

To return wavelength and position v alues . . . . . . .

2-9

Formatting Trace-Data Output . . . . . . . . . . . .

2-10

Using Math and Mo ve Commands . . . . . . . . . . .

2-15

Trace Math Rule 1 . . . . . . . . . . . . . . . .

2-16

Trace Math Rule 2 . . . . . . . . . . . . . . . .

2-17

Trace Math Rule 3 . . . . . . . . . . . . . . . .

2-17

Contents-1