Dmc |
public class Dmc4kHdoSingle : DmcOutputSingle, IDisposable
The Dmc4kHdoSingle type exposes the following members.
| Name | Description | |
|---|---|---|
| Dmc4kHdoSingle | Constructor to drop the module on a switcher |
| Name | Description | |
|---|---|---|
| Card1 | Route one of the Module | |
| Card2 | Route two of the Module | |
| Disposed |
Property to indicate if the Module has been Disposed
(Inherited from DmcOutputSingle) | |
| Name |
The name of this DmOutputModuleBase.
(Inherited from DmOutputModuleBase) | |
| Number |
The Physical BackPlane Slot Number
(Inherited from DmOutputModuleBase) |
| Name | Description | |
|---|---|---|
| Dispose |
Dispose of the Module
(Inherited from DmcOutputSingle) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToString |
String representation of this DmOutputModuleBase.
(Inherited from DmOutputModuleBase) |
| Name | Description | |
|---|---|---|
| Card1UnplugFromSwitcher |
Card1's UnplugFromSwitcher method.
(Inherited from DmcOutputSingle) | |
| Card2UnplugFromSwitcher |
Card2's UnplugFromSwitcher method.
(Inherited from DmcOutputSingle) |
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); } }