Click or drag to resize

Dmc4kHdoSingle Class

Crestron output cards are compatible with the output card slots of Crestron's DigitalMedia switchers. The DMC-4K-HDO 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 class Dmc4kHdoSingle : DmcOutputSingle, 
	IDisposable

The Dmc4kHdoSingle type exposes the following members.

Constructors
 NameDescription
Public methodDmc4kHdoSingle 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)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(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
Example
C#
static Dmc4kHdoSingle _dmc4kHdo;
static Dmc4kHdoSingle _dmc4kHdo1;
sw1 = new DmMd8x8(0x18, this);

public ControlSystemDmc4kHdo()
{
    //Register console commands 
    CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a DMC-4K-HDO CreateDevice command", ConsoleAccessLevelEnum.AccessOperator);
}

//Method to create the DMC-4K-HDO card device
public void CreateDeviceCmd(String args)
{
    sw1 = new DmMd8x8(0x18, this);

    //Initialize the DMC-4K-HDO device
    _dmc4kHdo = new Dmc4kHdoSingle(1, sw1);
    _dmc4kHdo1 = new Dmc4kHdoSingle(4, sw1);

    //Register the DM-MD8x8 with the Control system
    sw1.Register();

    for (uint i = 1; i <= 2; i++)
    {
        object obj = i == 1 ? _dmc4kHdo.Card1 : _dmc4kHdo.Card2;

        ((Dmc4kHdo)obj).HdmiOutput.ConnectedDevice.DeviceInformationChange += ConnectedDeviceSigChangeHandler;
    }

    sw1.DMOutputChange += DMOutputSigChangeEventHandler;

    for (uint j = 1; j <= 8; j++)
    {
        if ((sw1.Outputs[j]) != null)
        {
            CrestronConsole.ConsoleCommandResponse("{0} is initialized\r\n", sw1.Outputs[j], j);
        }
    }
}

//Method to handle the switcher DM Output events
static void DMOutputSigChangeEventHandler(Switch device, DMOutputEventArgs args)
{
   if (args.EventId == DMOutputEventIds.OnlineFeedbackEventId)
   {
        CrestronConsole.PrintLine("Online Feedback event occurred for stream {0}\r\n", device.Outputs[args.Number]);
        CrestronConsole.PrintLine("Online Feedback Value is {0}\r\n", ((Dmc4kHdo)sw1.Outputs[args.Number].Card).OnlineFeedback);
   }       
   else if (args.EventId == DMOutputEventIds.OverscanModeFeedbackEventId)
   {
        CrestronConsole.PrintLine("Overscan Mode Feedback event occurred for {0} device\r\n", device.ToString());
        CrestronConsole.PrintLine("Overscan Mode Feedback Value is {0}\r\n", ((Dmc4kHdo)sw1.Outputs[args.Number].Card).OverscanModeFeedback);
   }
}

//Method to handle the Connected Device sig change events
static void ConnectedDeviceSigChangeHandler(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);
    }
}

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also