Using The *Wa1 Command, Example Program 7 - HP 8360 User Handbook Manual

8360 series synthesized sweepers
Table of Contents

Advertisement

Using the *WAI
Command, Example
Program 7
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
100: Setup the source's sweep time to 1 second.
110: Send the "OPC? command to the source to ensure that the
previous commands are completed and the source is ready to begin
controlled sweeps.
120: Enter the response to the *OPC? into the variable X. The
response should be a '1'.
130: Start of the loop.
140 and 150: Prompt the operator for the number of sweeps to
take. The number of sweeps to take is stored in the variable N.
Enter 0 to quit the program.
160: Don't take any sweeps if N is less than 0.
170: Start a FOR/NEXT loop to take N sweeps.
180: Display the number of this sweep on the computer display.
190: Initiate a single sweep on the source and then wait until
the pending operation is complete. Return a '1' when the sweep
completes.
200: Enter the response to the *OPC? into the variable X. The
program execution will halt on this ENTER statement until the
sweep is finished.
210: Repeat the 1NIT:IMM sequence N times.
220: End of the IF statement to skip sweeps if N is negative.
230: Exit the program if the value of N is 0.
The following example illustrates the use of the *WA1 command to
cause the synthesizer to perform a synchronous sweep.
ABORT 7
LOCAL 7
CLEAR Source
REMOTE Source
OUTPUT Source;"*RST"
OUTPUT Source;"FREq:STAR 4GHZ; STOP 5GHZ; MODE SWE"
OUTPUT Source;"SWE:TIME 2"
OUTPUT Source;"*OPC?"
ENTER Source;X
FOR I=1 TO 4
OUTPUT Source;"INIT"
OUTPUT Source;"*WAI"
OUTPUT Source;"POW:STAT ON"
OUTPUT Source;"INIT"
OUTPUT Source;"*WAI"
OUTPUT Source;"POW:STAT OFF"

Advertisement

Table of Contents
loading

This manual is also suitable for:

83620a83622a83624a83623a83630a83640a ... Show all

Table of Contents