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:

10Source=719

20ABORT 7

30LOCAL 7

40CLEAR Source

50REMOTE Source

60CLS

Getting Started Programming l-93

Page 123
Image 123
HP 83620A, 24A, 22A manual Saving and Recalling States, Example Program, Getting Started Programming l-93