HP 8360 B Series User Manual page 129

Swept signal generator, including options 001, 002, 004, 006, and 008
Table of Contents

Advertisement

Using the *WAI
Command, Example
Program 7
The following example illustrates the use of the *WA1 command to
cause the swept signal generator to perform a synchronous
10
Source=719
20
ABORT 7
30
LOCAL 7
40
CLEAR Source
50
REMOTE Source
60
70
OUTPUT Source;"*RST"
80
OUTPUT Source;"FREQ:STAR 4GHZ; STOP SGHZ; MODE SWE"
90
OUTPUT Source;"SWE:TIME 2"
100
OUTPUT Source;"*OPC?"
110
ENTER Source;X
120
FOR I=1 TO 4
130
OUTPUT Source;"INIT"
140
OUTPUT Source;"*WAI"
150
OUTPUT Source;"POW:STAT ON"
160
OUTPUT Source;"INIT"
170
OUTPUT Source;"*WAI"
180
OUTPUT Source;"POW:STAT OFF"
190
NEXT I
200
PRINT "Finished sending commands to source."
210
PRINT "Note that execution is continuing for four cycles."
220
END
Run the program.
Program Comments
10: Assign the source's HP-IB address to a variable.
20 to 50: Abort any HP-IB activity and initialize the HP-IB
interface.
60: Clear the computer's display.
70: Set the source to its initial state for programming.
80: Set the source up for a sweep, from 4 GHz to 5 GHz.
90: Set the sweep time to 2 seconds. In SCPI, suffixes are optional
if you program in fundamental units (for sweep time, that would
be seconds).
100: Send an 'OPC? to the source.
110: Enter the query response to the *OPC? into a variable "X".
The program execution will halt here until the source has finished
processing all the commands up to this point. Once complete, the
source will respond to the *OPC? with a "1".
120: Begin a FOR/NEXT loop that is repeated four times.
130: Initiate a sweep on the source.
Getting Started Programming 1-l 0 1
sweep.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

83630b83620b83640b83650b83622b83623b ... Show all

Table of Contents