Hp 8340B/41B Programming Codes; Programs That Duplicate Front Panel Operations - HP 8340B Operating Instructions Manual

Synthesized sweepers
Hide thumbs Also See for 8340B:
Table of Contents

Advertisement

HP 8340B/41B PROGRAMMING CODES
Table 3-1 lists the HP 8340B/41B programming codes arranged by function, and Table 3-2 lists the
codes alphabetically. Notice in the Tables that several codes correspond to keys on the front panel of
the HP 8340B/41B. All front panel operations (except the POWER switch) can be duplicated by a
remote computer program, and those are the programming codes that are used to replace the key¬
strokes. There are also several programming codes listed in the Tables that are unique to HP-IB
operation. The next two subsections describe all of these codes, first by explaining how front panel
operations can be duplicated, and then explaining the unique, HP-IB operations.
Programs that Duplicate Front Panel Operations
Any HP 8340B/41B operation that can be established by pressing keys on the front panel can be
duplicated by a computer program, with the exception of the POWER switch function. This is the
procedure:
1.
Determine the keystroke sequence needed for the desired operation. For example, this sequence
establishes a 2.3 GHz CW signal at -30 dBm:
[INSTR PRESET] [CW] [2] [.] [3] [GHz] [POWER LEVEL] ["] [3] [dB(m)]
2.
Use the Information Cards (located beneath the front panel), or Tables 3-1 and 3-2, to find the
programming code for each key. Continuing with the example,
Key
Programming Code
[INSTR PRESET]
[CW]
[
2
]
[■]
[3]
[GHz]
[POWER LEVEL]
[-]
[3]
[
0
]
[dB(m)]
IP
CW
2
3
GZ
PL
3
0
DB
3. Combine the programming codes into an OUTPUT command. For an HP 8340B/41B having
address 19, this is the complete program:
10
ABORT 7
20
CLEAR 7
30
OUTPUT 719; " IPCW2.3GZPL —30DB"
40
END
ABORT CLEAR, and IP are not always required, but it is good programming practice to use them (in
this sequence) because they place the HP 8340B/41B in a completely reset, standard operating
condition.
The HP 8340B/41B automatically upshifts lower-case characters, and ignores spaces and unas¬
signed characters; therefore, line 30 in the preceding program could be written as follows, resulting in
enhanced readability at a slight cost in execution time:
30
OUTPUT 719, "IP
CW 2.3 GHz
PL -30 dB"
HP 8340B/41B
Operating Information
3-59

Advertisement

Table of Contents
loading

This manual is also suitable for:

8341b

Table of Contents