Table 3-2.
HP 8340B/41B Programming Codes (3 of 4)
Code
i Operation Performed
Equivalent Key
Ref. Figure
SHSV
Lock save/recall
[SHIFT] [SAVE]
3-12
SHRF
Same as SHA1
[SHIFT] [RF]
3-17
SHRP
Tracking calibration
[SHIFT] [PEAK]
3-17
SHT1
Test displays
[SHIFT] [FREE RUN]
3-11
SHT2 m
Bandcrossing penlift
[SHIFT] [LINE]
3-11
SHT3
Display unlock indicators
[SHIFT] [EXT]
3-11
SHGZdt
10 channel
[SHIFT] [Ghz/dB(m)]
3-10
SHMZdt
10 subchannel
[SHIFT] [MHz/sec]
3-10
SHKZdt
Write to 10
[SHIFT] [kHz/msec]
3-10
SHHZ
Read from 10
[SHIFT] [Hz/AUTO]
3-10
SLmdt
Power slope
[SLOPE]
3-17
SM dt
Sweep, manual
SNdt
Steps, maximum
SPdt
Set power step size
ST d t
Sweep time
[SWEEP TIME]
3-7
SVn
Save instrument state
[SAVE] [1-9]
3-12
SWm
Swap network analyzer channels
T1
Trigger, free run
[FREE RUN]
3-12
T2
Trigger, line
[LINE]
3-12
T3
Trigger, external
[EXT]
3-12
T1 b (b)
Test HP-IB interface
TLdt
Time line
TS
Take sweep
UP
Up step
M
3-8
Note:
The HP 8340B/41B automatically upshifts codes entered in lower case, and ignores spaces
placed between code groups. The warning message "* * *HP-IB SYNTAX ERROR* * *" appears in the
ENTRY DISPLAY if an error is made in the programming format, and the HP 8340B/41B will ignore the
unrecognized code characters. (The HP 8340B/41B also clears HP-IB DIO line 8, which sometimes is
used as a parity bit; HP-IB lines are explained later in this Section.)
The lower-case letters listed after the codes indicate typical suffix parameters as follows:
If no suffix follows a code in this Table, the code represents either a self-contained, immediate execute
function, or one of the terminator codes that scale and define the associated numerical data.
a
indicates that alphanumeric ASCII characters are associated with this code.
b
indicates binary information consisting of 8-bit bytes. Typically, binary information is transmitted by
using either the computer's CHR$ function (which converts a decimal number to a string of binary
bytes), such as
100
OUTPUT 719; "...code..."«iCHR$(decimal>
where the "&" concatenates the CH R$ function to the programming code (and prevents an end-of-
line terminator from being placed between the code and the data), or for codes that require strings
of binary data an image specifier can be used; for example:
100
OUTPUT 719; " . . .programming code. . . " ;
110
OUTPUT 719 USING#,B"; byte(s)
The final semicolon in line 100 inhibits an end-of-line sequence from the computer (an EOL must not
separate code from data). The "#" in line 110 supresses EOL that might occur between data bytes
or from a coincidental data bit pattern that mimics an EOL sequence, and the "B" indicates that the
subsequent variables represent binary data.