Click or drag to resize

Dmc4kzCoHdSingle Class

Crestron output cards are compatible with the output card slots of Crestron's DigitalMedia switchers. The DMC-4K-CO-HD single output card module takes up a single slot on a switcher.
Inheritance Hierarchy

Namespace: Crestron.SimplSharpPro.DM.Cards
Assembly: Crestron.SimplSharpPro.DM (in Crestron.SimplSharpPro.DM.dll) Version: 2.21.121
Syntax
C#
public sealed class Dmc4kzCoHdSingle : Dmc4kCoHdSingleBase

The Dmc4kzCoHdSingle type exposes the following members.

Constructors
 NameDescription
Public methodDmc4kzCoHdSingle Constructor to drop the module on a switcher
Top
Properties
 NameDescription
Public propertyCard1 Route one of the Module
Public propertyCard2 Route two of the Module
Public propertyDisposed Property to indicate if the Module has been Disposed
(Inherited from DmcOutputSingle)
Public propertyName The name of this DmOutputModuleBase.
(Inherited from DmOutputModuleBase)
Public propertyNumber The Physical BackPlane Slot Number
(Inherited from DmOutputModuleBase)
Top
Methods
 NameDescription
Public methodDispose Dispose of the Module
(Inherited from DmcOutputSingle)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToString String representation of this DmOutputModuleBase.
(Inherited from DmOutputModuleBase)
Top
Fields
 NameDescription
Protected fieldCard1UnplugFromSwitcher Card1's UnplugFromSwitcher method.
(Inherited from DmcOutputSingle)
Protected fieldCard2UnplugFromSwitcher Card2's UnplugFromSwitcher method.
(Inherited from DmcOutputSingle)
Top
Remarks
symlib_DMC-4KZ-CO-HD.tio 1.010 12/13/2017 11:09:58PM DMC-4KZ-CO-HD iodev_DMC-4KZ-CO-HD.tio 1.010 12/13/2017 11:09:58PM DMC-4KZ-CO-HD
Example
C#
static Dmc4kzCoHdSingle _dmc4kzCoHd;
static DmMDMnxn _dmSwitcher;

public ControlSystemDmc4kzCoHd()
{
    //Register console commands
    CrestronConsole.AddNewConsoleCommand(CreateDeviceAsSwitcherDmOutputCmd, "CreateDevSwDmOutput", "This is a DMC-4KZ-CO-HD CreateDevSwDmOutput command", ConsoleAccessLevelEnum.AccessOperator);
}

//Method to create the device as the Switcher DM output
public void CreateDeviceAsSwitcherDmOutputCmd(String args)
{
    //For Switcher
    _dmSwitcher = new DmMd8x8(0x51, this);
    _dmc4kzCoHd = new Dmc4kzCoHdSingle(1, _dmSwitcher);

    //Register the DM Switcher with the Control System
    _dmSwitcher.Register();

    _dmSwitcher.DMOutputChange += DmSwitcher_OutputEventHandler;

    _dmc4kzCoHd.Card1.DmOutput.ConnectedDevice.DeviceInformationChange += DmRmc4Kz_DeviceInfoEventHandler;
    _dmc4kzCoHd.Card1.DmOutput.StreamCec.CecChange += Dmc4kzCoHd_StreamCecEventHandler;
    _dmc4kzCoHd.Card1.HdmiOutput.ConnectedDevice.DeviceInformationChange += DmRmc4Kz_DeviceInfoEventHandler;
    _dmc4kzCoHd.Card1.HdmiOutput.StreamCec.CecChange += Dmc4kzCoHd_StreamCecEventHandler;

    _dmc4kzCoHd.Card2.DmOutput.ConnectedDevice.DeviceInformationChange += DmRmc4Kz_DeviceInfoEventHandler;
    _dmc4kzCoHd.Card2.DmOutput.StreamCec.CecChange += Dmc4kzCoHd_StreamCecEventHandler;
}

//Method to handle the DM Output events
public void DmSwitcher_OutputEventHandler(Switch device, DMOutputEventArgs args)
{
    if (args.EventId == DMOutputEventIds.OnlineFeedbackEventId)
    {
        CrestronConsole.PrintLine("{0} device Online Feedback Event occurred, Card No. {1}\r\n", device.ToString(), args.Number);
    }
    else if (args.EventId == DMOutputEventIds.PresentFeedbackEventId)
    {
        CrestronConsole.PrintLine("{0} device Present Feedback Event occurred, Card No. {1}\r\n", device.ToString(), args.Number);
    }
    else if (args.EventId == DMOutputEventIds.DisabledByHdcpEventId)
    {
        CrestronConsole.PrintLine("{0} device Disabled By Hdcp Event occurred, Card No. {1} Stream {2}\r\n", device.ToString(), args.Number, args.Stream);
    }
}

//Method to handle the HDMI Output and DM Output Device Information change events
public void DmRmc4Kz_DeviceInfoEventHandler(ConnectedDeviceInformation connectedDevice, ConnectedDeviceEventArgs args)
{
    if (args.EventId == ConnectedDeviceEventIds.ManufacturerEventId)
    {
        CrestronConsole.PrintLine("Manufacturer event occurred for {0} device of {1}\r\n", connectedDevice.ToString(), connectedDevice.Owner);
        CrestronConsole.PrintLine("Manufacturer Feedback Value is {0}\r\n", connectedDevice.Manufacturer.UShortValue);
    }
    else if (args.EventId == ConnectedDeviceEventIds.NameEventId)
    {
        CrestronConsole.PrintLine("Name event occurred for {0} device\r\n", connectedDevice.ToString());
    }
    else if (args.EventId == ConnectedDeviceEventIds.PreferredTimingEventId)
    {
        CrestronConsole.PrintLine("Preferred Timing event occurred for {0} device\r\n", connectedDevice.ToString());
    }
    else if (args.EventId == ConnectedDeviceEventIds.SerialNumberEventId)
    {
        CrestronConsole.PrintLine("Serial Number event occurred for {0} device\r\n", connectedDevice.ToString());
    }
}

//Method to handle the HDMI Output and DM Output Stream CEC change events
public void Dmc4kzCoHd_StreamCecEventHandler(Cec cecDevice, CecEventArgs args)
{
    if (args.EventId == CecEventIds.ErrorFeedbackEventId)
    {
        CrestronConsole.PrintLine("{0} Error Feedback Event Occurred\r\n", cecDevice.ToString());
    }
    else if (args.EventId == CecEventIds.CecMessageReceivedEventId)
    {
        CrestronConsole.PrintLine("{0} Message Received Event Occurred\r\n", cecDevice.ToString());
    }
}

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also