Click or drag to resize

CrestronControlSystemSwitcherInputs Property

For control systems that have built in switchers (for example, DMPS3), this collection will contain the inputs 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 input is, cast it to that, and then work with it from there. The SwitcherInputs collection will be null for devices that do not have switchers. The index into the SwitcherInputs can also be referenced by the following enums:

CrestronControlSystemeDmps3200cInputs for DMPS-200-C

CrestronControlSystemeDmps3300c300cAecInputs for DMPS-300-C and DMPS-300-C-AEC

CrestronControlSystemeDmps34K150CInputs for DMPS3-4K-150-C

CrestronControlSystemeDmps34K100CInputs for DMPS3-4K-100-C

CrestronControlSystemeDmps34K50Inputs for DMPS3-4K-50

CrestronControlSystemeDmps34K300CInputs for DMPS3-4K-300-C

CrestronControlSystemeDmps34K200CInputs for DMPS3-4K-200-C

CrestronControlSystemeDmps34K350CInputs for DMPS3-4K-350-C

CrestronControlSystemeDmps34K250CInputs for DMPS3-4K-250-C

To make use of a specific input, 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> SwitcherInputs { get; }

Property Value

CrestronCollectionICardInputOutputType
Example
C#
ushort HdmiAudioChannelsFeedback(ICardInputOutputType MyCard)
{
    ushort NumberOfHdmiChannels = 0;
    if(MyCard.CardInputOutputType == eCardInputOutputType.Dmps3HdmiVgaBncInput)
    {
        NumberOfHdmiChannels = ((Dmps3HdmiVgaBncInput)MyCard).HdmiAudioChannelsFeedback.UShortValue;
    }
    return (NumberOfHdmiChannels);
}

ushort NumHdmiChannels = HdmiAudioChannelsFeedback(SwitcherInputs[eDmps3200cInputs.Hdmi2));

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also