:CONFigure:SWITch:ACTive

Flex Apps:
FlexOTO
FlexOTO Instance:
Hardware Diagram

Command Syntax

:CONFigure:SWITch:ACTive "<switch>", {ON | OFF}

Where <switch> is a string that identifies a switch.

Query Response

{ON | OFF}

Description

Places (activates) a optical switch (automatically detected or installed with a switch driver) onto the Hardware Diagram. If the detected optical switch has multiple internal optic switches, use this command to place one or more of the internal switches on the Hardware Diagram. Multiple optical switches on the Hardware Diagram can be cascaded. To query a list of all detected optical switches that are available to place on the Hardware Diagram, use the :CONFigure:SWITch:ALL query.

The second command argument can be one of the following tokens:

ON
Installs the selected switch in the Hardware Diagram.
OFF
Uninstalls selected switch from the Hardware Diagram. When sending a query, a returned OFF indicates that the module is not installed on the Hardware Diagram. If the DCA-M name is not recognized or not supported, an error –224, Illegal parameter vaue;Unknown device name is reported.

To connect switch ports to ports on other blocks, use the universal port connect command: :CONFigure:PORT:CONNect.

Example <switch> Arguments
Switch <switch> Argument Fields Argument Examples
Keysight N7731A "N7731A (Switch <switch-number>)" "N7731A (Switch 1)"
"N7731A (Switch 2)"
Keysight N7734A "N7734A" "N7734A"
DiCon GP750 "DiCon GP750 (<module-slot>:<module>)" "DiCon GP750 (SL1:M3)" 1
"DiCon GP750 (SL2:X1)"
DiCon GP600 "DiCon GP600 (<module>)" "DiCon GP600 (M1)" 1
"DiCon GP600 (X1)"
Polatis 6000 "Polatis 6000" "Polatis 6000"

The module identification strings (for example, "X1" and "M1") match the module identification label shown on Switch blocks. These example strings may not match the modules installed in your switch.

Example Command

:CONFigure:SWITch:ACTive "DiCon GP750 (SL1:M3)", ON