Matrix
The dummy parameter should have the parameter type "Matrix".
With this parameter, matrix mappings are configured for each table. This is done in the Param.Matrix element, as illustrated in the example below.
The value of each mapping is the parameter ID of the relevant column parameter from the inputs or outputs table.
In the name attribute for each mapping, you can specify one of the following values to indicate the function of a column (as detailed above):
- For the inputs: index, label, state, lock, and page.
- For the outputs: index, label, state, lock, connectedInput, page, tooltip, and lockOverride.
In addition to the mappings, matrix options can also be configured, in the Param.Matrix.MatrixOptions element:
- matrixLayout: This option determines where the inputs and outputs are displayed in the matrix control. The following values are supported: InputTopOutputLeft and InputLeftOutputTop.
- pages: Set this option to "true" to enable auto-paging for the matrix. You can set custom pages with the page column of the tables.
- minimumConnectedInputsPerOutput: Allows you to specify a minimum number of connected inputs for an output. If you set this to "0", there is no minimum.
- maximumConnectedInputsPerOutput: Determines the maximum number of connected inputs for an output. At present, this is always "1".
- minimumConnectedOutputsPerInput: Allows you to specify a minimum number of connected outputs for an input. If you set this to "0", there is no minimum.
- maximumConnectedOutputsPerInput: Allows you to specify the maximum number of connected outputs for an input. If you set this to "auto", there is no maximum, and this scales with the table.
Example:
<Param id="3" trending="false">
<Name>DummyMatrixParam</Name>
<Type>Matrix</Type>
<Display>
<RTDisplay>true</RTDisplay>
<Positions>
<Position>
<Page>Matrix</Page>
<Row>0</Row>
<Column>0</Column>
</Position>
</Positions>
</Display>
<Matrix>
<Inputs tablePid="1000">
<!-- This is the table parameter ID of the inputs table of this matrix-->
<Mappings>
<Mapping type="pid" name="index">1001</Mapping><!-- This is the primary key column parameter ID of the inputs table of this matrix => Indicates the index of the input.-->
<Mapping type="pid" name="label">1002</Mapping><!-- This is the label column parameter ID of the inputs table of this matrix => Contains the label of the input.-->
<Mapping type="pid" name="state">1003</Mapping><!-- This is the state column parameter ID of the inputs table of this matrix => Indicates whether the input is enabled or not.-->
<Mapping type="pid" name="lock">1004</Mapping><!-- This is the lock column parameter ID of the inputs table of this matrix => Indicates whether the input is locked or not.-->
<Mapping type="pid" name="page">1005</Mapping><!-- This is the page column parameter ID of the inputs table of this matrix => Indicates on which page the input is located.-->
</Mappings>
</Inputs>
<Outputs tablePid="1200">
<!-- This is the table parameter ID of the outputs table of this matrix-->
<Mappings>
<Mapping type="pid" name="index">1201</Mapping><!-- This is the primary key column parameter ID of the outputs table of this matrix => Indicates the index of the output.-->
<Mapping type="pid" name="label">1202</Mapping><!-- This is the label column parameter ID of the outputs table of this matrix => Contains the label of the output.-->
<Mapping type="pid" name="state">1203</Mapping><!-- This is the state column parameter ID of the outputs table of this matrix => Indicates whether the output is enabled or not.-->
<Mapping type="pid" name="lock">1204</Mapping><!-- This is the lock column parameter ID of the outputs table of this matrix => Indicates whether the output is locked or not.-->
<Mapping type="pid" name="connectedInput">1205</Mapping><!-- This is the connectedInput column parameter ID of the inputs table of this matrix => Contains which input is connected to this output. Note: Tables only support one input per output.-->
<Mapping type="pid" name="page">1206</Mapping><!-- This is the page column parameter ID of the outputs table of this matrix => Indicates on which page the output is located.-->
<Mapping type="pid" name="tooltip">1207</Mapping><!-- This is the tooltip column parameter ID of the outputs table of this matrix => Contains the tooltip shown on the crosspoint of this output.-->
<Mapping type="pid" name="lockOverride">1208</Mapping><!-- This is the lockOverride column parameter ID of the outputs table of this matrix => Contains the lock override parameter for this output. This can be used to (un)set a crosspoint while locked.-->
</Mappings>
</Outputs>
<MatrixOptions>
<MatrixOption type="value" name="matrixLayout">InputLeftOutputTop</MatrixOption><!--Set this option if you want the matrix UI to position inputs or outputs at the top or on the left. Note: For table matrices, the only supported values are 'InputTopOutputLeft' or 'InputLeftOutputTop'.-->
<MatrixOption type="value" name="pages">true</MatrixOption><!-- Set this option if you want to enable auto-paging on this matrix. Note: Custom pages can be set via the page column on the tables.-->
<MatrixOption type="value" name="minimumConnectedInputsPerOutput">0</MatrixOption><!-- Set this option if you want to specify a minimum of connected inputs for an output. Note: 0 for no minimum.-->
<MatrixOption type="value" name="maximumConnectedInputsPerOutput">1</MatrixOption><!-- Set this option if you want to specify a maximum of connected inputs for an output. Note: Always 1 because of the nature of the table column (table matrix only). -->
<MatrixOption type="value" name="minimumConnectedOutputsPerInput">0</MatrixOption><!-- Set this option if you want to specify a minimum of connected outputs for an input. Note: 0 for no minimum.-->
<MatrixOption type="value" name="maximumConnectedOutputsPerInput">auto</MatrixOption><!-- Set this option if you want to specify a maximum of connected outputs for an input. Note: auto for no maximum (scales with the table).-->
</MatrixOptions>
</Matrix>
<Information>
<Subtext>Matrix representation (dummy parameter)</Subtext>
</Information>
<Alarm>
<Monitored>false</Monitored>
<!-- Monitoring on this parameter is not supported, since the monitoring is done on table level.-->
</Alarm>
<Measurement>
<Type>matrix</Type>
</Measurement>
</Param>