Unique Hp-Ib Programming Codes - HP 8340B Operating Instructions Manual

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

Advertisement

Unique HP-IB Programming Codes
Several programming codes are available which do not have an equivalent front panel key; these
codes are listed in Table 3-2 and described here, in alphabetical order (the lower case letters that
follow each code mnemonic are explained in Table 3-2).
ASm
Alternate State Select, is primarily used when the HP 8340B/41B is operating in certain network
analyzer systems. AS is always used in conjunction with alternate state mode
([ALT],
Figure 3-12)
where it causes an abrupt change from one operational state to the other. Use AS when automatic
alternation does not occur (for example, when CW mode is used for one or both operational
states), or when it might be necessary to interrupt the alternating operation.
First, establish alternating operation between the present operating configuration (called the
"foreground" state) and one of the previously SAVEd operating configurations (called the "back¬
ground" state). For example, code AL13 activates alternating operation between the foreground
and background states, with the background state being derived from the contents of memory
register 3 (the code parameters are ALnx, where n = 1/0 to activate/deactive alternating opera¬
tion, and x = 1-9 indicates the memory register that will be transferred to the background
register).
With alternating mode in effect, AS is used to abrubptly change the operating state:
ASO causes
the present HP 8340B/41B operation (whether that operation is foreground or background) to
abruptly halt, retrace to the beginning of the foreground state, and begin operating under the
foreground configuration; AS1 causes the present operation to abruptly halt, retrace to the begin¬
ning of the background state, and begin operating under the background configuration. After the
AS-initiated foreground or background change has been completed, the previously established
alternating state operation resumes. A BASIC example:
100
REM
PREPARE BACKGROUND STATE, SAVE IN REGISTER 3
110
OUTPUT 719; "...(programming codes)...SV3"
120
REM
130
REM
PREPARE FOREGROUND STATE, AND ALTERNATE
140
OUTPUT 719; "... (programming codes) ... AL13"
150
REM
160
REM
ABRUPTLY CHANGE STATUS IF NECESSARY
170
IF X > Y THEN OUTPUT 719; "AS1"
180
IF X < Y THEN OUTPUT 719; "ASO"
(X and Y in lines 170 and 180 are arbitrary variables for a hypothetical test.)
ATd Attentuator, allows the attenuator to be set remotely, and is used when the attentuator is
decoupled from the ALC (SHSL initiates the decoupling). The standard attenuator (see the
attenuator options listed in Section I) has a range of 0 to —90 dB in 10 dB increments; set the
attentuator by using the code ATxDB, where x is the numerical value (the HP 8340B/41B will
round values to the nearest 10 dB) and DB is the terminator. A BASIC example:
100
OUTPUT 719; "AT-40DB"
BC
Band Change, causes the HP 8340B/41B to advance to the next frequency bandcrossing point.
The BC code is used in two situations:
1) It is used when the HP 8340B/41B is in network
analyzer mode (the NA programming code), or 2) it is used when automatic bandcrossing has
been disabled by the SHA21 code (in this case, the BC code functions identically to the SHA1
code; bandcross disabling and the SHA1/SHA2 functions are described in Figure 3-16).
OS
Clear Status bytes, resets to zero the 16 bits in the two status bytes. Any status bit that is in the
process of being set, but was deferred pending completion of some function, will also be cleared
by CS. Status bytes, along with the CS code, are explained under the OS (Output Status byte)
code.
3-64
Operating Information
HP 8340B/41B

Advertisement

Table of Contents
loading

This manual is also suitable for:

8341b

Table of Contents