Saving And Recalling States, Example Program 5 - HP 8360 User Handbook Manual

8360 series synthesized sweepers
Table of Contents

Advertisement

Saving and Recalling
States, Example
Program 5
70: Set the source to its initial state for programming.
80: Setup the source power level using a compound message.
90: Query the value of the source's CW frequency.
100: Enter the query response into the variable 'F'. The response
always is returned in fundamental units, Hz in the case of
frequency.
110: Print the CW Frequency in MHz on the computer display.
120: Query the value of a boolean function, POWER:STATE.
130: Enter the query response into a variable 'W'. Boolean
responses are always '1' for ON and '0' for OFF.
140: Print the value of the POWER:STATE on the computer
display.
150: Query the value of a discrete function (FREQ:MODE).
160: Dimension a string variable to contain the response.
170: Enter the response into A$. The response will be a string
that represents the function's present value.
180: Print the value of A$ on the computer display.
190: Example usage of a MIN query. This will request the
maximum value that the FREQ:CW function can be programmed
to.
200: Enter the numeric response into the variable A.
210: Print the value of A on the computer display.
220: This is compound query. Up to 8 parameters can be queried
from the synthesizer at one time using this method. In this
example, the start and stop frequencies are interrogated.
230: The responses are read back into the variables X and Y. The
order of the responses is the same as the order of the queries. X
will contain the START frequency and Y will contain the STOP.
240 to 260: Print the START/STOP frequencies on the display.
When a typical sweep, like example program 3, is set up, the
complete front panel state may be saved for later use in non-volatile
memories called registers 1 through 8. This can be done remotely as
a part of a program. Clear and reset the controller and type in the
following program:
10
20
ABORT 7
30
LOCAL 7
40
CLEAR Source
50
REMOTE Source
60
Getting Started Programming l-93

Advertisement

Table of Contents
loading

This manual is also suitable for:

83620a83622a83624a83623a83630a83640a ... Show all

Table of Contents