
Model 8210A-2-5
IM-377
Aeroflex / Weinschel
49
Example 9: Using macros to simplify programming multiple RF Switches
This example shows how using macros can simplify the programming of large switching matrices. In order to simplify
the example, we will only use 3 SPDT switches. Assume that the switches are arranged in a tree fashion, with the two
outputs of SW1 connected to the inputs of SW2 and SW3, respectively, creating 4 output paths from switches SW2
and SW3. The example assumes that names for the Relay Output Card, and each of the three SPDT switches have
already been set (see Example 7).
In order to select one of the four outputs, each of the three switches must be set to the appropriate setting, as shown
below:
Output
SW1
SW2
SW3
1 0 0 0
2 0 1 0
3 1 0 0
4 1 0 1
To select an output, you could send the individual programming commands to each of the switches, for example to
select output 4 you would send "SWITCH SW1 1; SWITCH SW2 0; SWITCH SW3 1". An easier solution would be
to assign a macro to each of the desired output positions, and then by sending the appropriate macro name, each of
the three switches would be set to the proper value.
a. Create macros for each of the 4 output positions, using the names PATH1 - PATH4, respectively.
Send: MACRO "PATH1" "SWITCH SW1 0; SWITCH SW2 0; SWITCH SW3 0"
MACRO "PATH2" "SWITCH SW1 0; SWITCH SW2 1; SWITCH SW3 0"
MACRO "PATH3" "SWITCH SW1 1; SWITCH SW2 0; SWITCH SW3 0"
MACRO "PATH4" "SWITCH SW1 1; SWITCH SW2 0; SWITCH SW3 1"
b. Save the macros in the non-volatile EEPROM memory.
Send: SAVE MACRO
The switches may now be programmed using the following commands as examples:
PATH1
PATH3
Содержание 8210A-2-5
Страница 52: ......