Program Comments - HP 83751A Programming Manual

Synthesized sweeper
Hide thumbs Also See for 83751A:
Table of Contents

Advertisement

Program Comments

1 0 :
20 to 50:
60:
70:
80:
90:
100:
110:
120:
130:
140 and 150: Prompt the operator for the number of sweeps to take. The
160:
170:
180:
190:
200:
210:
220:
230:
Assign the source's HP-IB address to a variable.
Abort any HP-IB activity and initialize the HP-IB interface.
Clear the computer's display.
Set the source to its initial state for programming.
Setup the frequency parameters using a compound message.
Setup the source's power level and state using a compound
message.
Setup the source's sweep time to 1 second.
Send the *OPC? command to the source to ensure that the
previous commands are completed and the source is ready to
begin controlled sweeps.
Enter the response to the *OPC? into the variable X. The
response should be a ' 1'.
Start of the loop.
number of sweeps to take is stored in the variable N. Enter 0
to quit the program.
Don't take any sweeps if N is less than or equal to 0.
Start a FOR/NEXT loop to take N sweeps.
Display the number of this sweep on the computer display.
Initiate a single sweep on the source and then wait until the
pending operation is complete. Return a
completes.
Enter the response to the *OPC? into the variable X. The
sweep is fmished.
Repeat the lNlT:IMM sequence N times.
End of the IF' statement to skip sweeps if N is less than or
equal to 0.
Getting Started Programming
Programming Typical Measurements
'1'
when the sweep
1-61

Advertisement

Table of Contents
loading

This manual is also suitable for:

83751b83752a83752b

Table of Contents