Installation manual

Model 8210A-2-5 IM-377
Aeroflex / Weinschel
32
7-13. Switch Assignment
ASSIGN SWITCH Function: Assign a virtual switch
Syntax: ASSIGN SWITCH name devname mask mode
Argument(s): name string10 virtual switch name
devname string10 device name
mask integer16 output mask
mode integer operational mode (0=Encoded, 1=Decoded)
(may also use the string literals ENCODE or DECODE)
Remarks: This function is used to assign a user-definable name and configuration to a virtual
switch. The virtual switch contains a reference to a physical device which must have been previously
assigned a devname using the ASSIGN command. The mask value allows the user to specify which
outputs of the device are used to control the switch function. The mode allows a selection of Encoded
or Decoded operational modes. The assignment can be stored in non-volatile memory via the SAVE
ASSIGN SWITCH command, and will be recalled during system initialization. Up to 64 user-definable
names may be assigned. Note that the assignment does not take effect until the next time device
names are reassigned. (see REASSIGN)
Return Value: none
Example(s): ASSIGN SWITCH Rfswitch SW1 7 DECODE
ASSIGN? SWITCH Function: reads a virtual switch assignment
Syntax: ASSIGN? SWITCH name
Argument(s): name string10 virtual switch name
Remarks: This function is used to read the device name and parameters associated with an
assignment previously set using the ASSIGN SWITCH command. It returns the device name, mask,
and mode.
Return Value: devname string10 device name
mask integer16 output mask
mode integer operational mode (0=Encoded, 1Decoded)
Example(s): ASSIGN? SWITCH Rfswitch returns the following ’SW1, 7, 1’
LIST? ASSIGN SWITCH Function: Reads a list of virtual switch assignments
Syntax: LIST? ASSIGN SWITCH
Argument(s): none
Remarks: This function is used to read a list of all virtual switch assignments created using
the ASSIGN SWITCH command. The list contains a count of the assigned names, and a list of the
names. To see the actual device referenced by the virtual switch, use the ASSIGN? SWITCH
command.
Return Value: count integer count of virtual switch assignments
name string10 switch name
Example(s): LIST? ASSIGN SWITCH returns the following ’1, SW1’
LIST? SWITCH Function: Read Switch installation
Syntax: LIST? SWITCH
Argument(s): none
Remarks: This function is used to read a list of the names of all switch devices that have been
installed by the configuration process. This list includes both virtual switch devices (ASSIGN
SWITCH), and physical devices (ASSIGN) that support the SwitchProtocol. This is a list of all names
that support the SWITCH command. It returns a count of the devices, and for each the device name.
Return Value: count integer count of names
name string10 name
Example(s): LIST? SWITCH returns the following ’2, SW1, RFSWITCH
COUNT? SWITCH Function: reads the number of configured switches
Syntax: COUNT? SWITCH
Argument(s): none
Remarks: This function is used to read the number of installed and configured switches.
Return Value: count1 integer count of physical switches
count2 integer count of virtual switches
Example(s): COUNT? SWITCH returns the following ’1, 8’