Click or drag to resize

CrestronControlSystemSwitcherOutputs Property

For control systems that have built in switchers (for example, DMPS3), this collection will contain the outputs of the switcher. Since it is a collection of the interface, the programmer will need to read the CardInputOutputType property to know what the base class of the output is, cast it to that, and then work with it from there. The SwitcherOutputs collection will be null for devices that do not have switchers. The index into the SwitcherOutputs can also be referenced by the following enums:

CrestronControlSystemeDmps3200cOutputs for DMPS-200-C

CrestronControlSystemeDmps300cOutputs for DMPS-300-C

CrestronControlSystemeDmps3300cAecOutputs for DMPS-300-C-AEC

CrestronControlSystemeDmps34K150COutputs for DMPS3-4K-150-C

CrestronControlSystemeDmps34K100COutputs for DMPS3-4K-100-C

CrestronControlSystemeDmps34K50Outputs for DMPS3-4K-50

CrestronControlSystemeDmps34K300COutputs for DMPS3-4K-300-C

CrestronControlSystemeDmps34K200COutputs for DMPS3-4K-200-C

CrestronControlSystemeDmps34K350COutputs for DMPS3-4K-350-C

CrestronControlSystemeDmps34K250COutputs for DMPS3-4K-250-C

To make use of a specific output, you will need to check against the type present in the interface and cast/use it from there.

Namespace: Crestron.SimplSharpPro
Assembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntax
C#
public CrestronCollection<ICardInputOutputType> SwitcherOutputs { get; }

Property Value

CrestronCollectionICardInputOutputType
Example
C#
void TurnOnAmp(ICardInputOutputType MyCard)
{
    if(MyCard.CardInputOutputType == eCardInputOutputType.Dmps3ProgramOutput)
    {
        ((Dmps3ProgramOutput)MyCard).AmpPowerOn();
    }
}

TurnAmpOn(SwitcherOutputs[eDmps3200cOutputs.Program]);

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also