HP (Hewlett-Packard) 24A Vacuum Cleaner User Manual


 
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.
Saving and Recalling
When a typical sweep, like example program 3, is set up, the
States, Example
complete front panel state may be saved for later use in non-volatile
Program 5
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
Source=719
20
ABORT 7
30
LOCAL 7
40
CLEAR Source
50
REMOTE Source
60
CLS
Getting Started Programming
l-93