:CONFigure:DEMux:ACTive

Flex Apps:
FlexOTO
FlexOTO Instance:
Hardware Diagram

Command Syntax

:CONFigure:DEMux:ACTive "<demux-name>",{ON | OFF}

Where <demux-name> is the name that identifies the Demultiplexer block on the Hardware Diagram.

Query Syntax

:CONFigure:DEMux:ACTive? "<demux-name>"

Query Response

{0 | 1}

Description

Installs or removes a Demultiplexer in the Hardware Diagram. You can use any string that you like up to 20 characters in length. The string must contain valid Windows file name characters. You can always rename the Demultiplexer later using the :CONFigure:DEMux:REName command. Send the query to determine if the Demultiplexer is installed on the Hardware Diagram.

FlexOTO allows you to create up to 4 Demultiplexer fixtures. The default names of fixtures created via the GUI are Demux 1, Demux 2, and so forth as shown on the Hardware Diagram. However, you can install a fixture using any name that you like. For example, "4 Lane Demux".

hwdiagram.write(':CONFigure:DEMux:ACTive "Demux 1", ON') # install 1st Demux with standard name
hwdiagram.write(':CONFigure:DEMux:ACTive "4 Lane Demux", ON') # install 2nd Demux with custom name

The name of a Demux is important as the name is passed as an argument to other commands including the universal port connect command :CONFigure:PORT:CONNect which is used to connect Demux ports to other blocks in the Hardware Diagram. The Demux name is also shown in FlexOTO's panels and reports.

Token Parameters

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

ON
Installs a Demultiplexer in the Hardware Diagram.
OFF
Uninstalls a Demultiplexer from the Hardware Diagram.

The Demux has the number of output lanes specified by the :CONFigure:NLANes command. To specify the nominal attenuation of the Demux lanes, use the :CONFigure:DEMux:ATTenuation or :CONFigure:DEMux:ATTenuation:USAMe commands.

Example Command

This example installs a Demultiplexer, turns off "All lanes have the same attenuation", enters the attenuation on Lane 1, and enters the attenuation on Lane 2.

hwdiagram.write(':CONFigure:DEMux:ACTive "Demux 2", ON')
hwdiagram.write(':CONFigure:DEMux:ATTenuation:USAMe "Demux 2", OFF')
hwdiagram.write(':CONFigure:DEMux:ATTenuation "Demux 1", "1", 0.05')
hwdiagram.write(':CONFigure:DEMux:ATTenuation "Demux 1", "2", 0.07')