Gl |
This class will trigger DimmingLoadStateChange and OverrideEventHandler events.
The event Id's are defined in GlExpClxDimBase for the DimmingLoadStateChange and eOverrideEvents for the OverrideEventHandler.
public sealed class GlExpDimCn : GlExpBase
The GlExpDimCn type exposes the following members.
| Name | Description | |
|---|---|---|
| GlExpDimCn(UInt32, CrestronControlSystem) | Constructor to generate a new GL-EXP-DIM-CN. | |
| GlExpDimCn(UInt32, IDeviceBranch) | Constructor to generate a new GL-EXP-DIM-CN. |
| Name | Description | |
|---|---|---|
| ConnectedIpList |
A property containing the list of the ConnectedIpInformation objects which contain information about the devices that are connected to this IP ID.
This property is only valid for an ethernet device. If this is not an ethernet device, then this property will return null.
If this is an ethernet device, the list will be non-null. It will be empty if no devices are connected.
The order of items in this list is not guaranteed.
(Inherited from GenericDevice) | |
| Description |
Get/Set the description of this device.
(Inherited from GenericBase) | |
| DimmingLoad |
Collection for the Dimming load with override.
(Inherited from GlExpClxDimBase) | |
| Disposed |
Property to indicate if the device has been disposed.
(Inherited from GenericDevice) | |
| EnableSerialDebug |
Enables serial debugging.
Outputs to the DimmingLoadDebug class
(Inherited from GlExpClxDimBase) | |
| ID |
Property to get the ID of the device.
(Inherited from GenericDevice) | |
| InExternalOverrideFeedback |
Indicates if the device is in external override mode
The OverrideEventHandler event will trigger with External. (Inherited from GlExpClxDimBase) | |
| InManualOverrideFeedback |
Indicates if the device is in manual override mode
The OverrideEventHandler event will trigger with Manual. (Inherited from GlExpClxDimBase) | |
| IsOnline |
Property to get the current online state of the device.
(Inherited from GenericDevice) | |
| Name |
Get the name of this device.
(Inherited from GenericBase) | |
| Parent |
The parent that a given object was added to.
(Inherited from GenericBase) | |
| Registerable |
Property to indicate that this device can be registered.
(Inherited from GenericDevice) | |
| Registered |
Property to get the current registration state of the device.
(Inherited from GenericDevice) | |
| RegistrationFailureReason |
Property to get the Registration Failure Reason, this will match the return value from the call to register.
(Inherited from GenericDevice) | |
| SIMPLDeviceImplementation |
Internal protected member used for actual device control.
(Inherited from GenericDevice) | |
| Type |
Property to determine to type of device this is.
(Inherited from GenericDevice) | |
| UnRegistrationFailureReason |
Property to get the Unregistration Failure Reason, this will match the return value from the call to unregister.
(Inherited from GenericDevice) | |
| UserSpecifiedObject |
Can be assigned anything that user wants.
(Inherited from GenericBase) | |
| XioEndpointStubSIMPLDevice |
The SIMPL "stub" Device that the XiO Director creates for an endpoint to send the 1C/0E to the
correct place in hierarchy.
(Inherited from GenericDevice) |
| Name | Description | |
|---|---|---|
| Dispose |
Clean up of resources.
(Inherited from GenericBase) | |
| Dispose(Boolean) |
Method to perform the actual disposing of the device.
(Inherited from GenericDevice) | |
| EnterManualOverride |
Enter manual override mode
(Inherited from GlExpClxDimBase) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| ExitManualOverride |
Exit manual override mode
(Inherited from GlExpClxDimBase) | |
| Finalize |
Destructor of the device.
(Inherited from GenericDevice) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| OnBaseEvent(Int32) |
Protected member used to fire the BaseEvent with the default extended information.
(Inherited from GenericBase) | |
| OnBaseEvent(Int32, UInt16) |
Protected member used to fine the BaseEvent with extended event information.
(Inherited from GenericBase) | |
| Register |
Register this device with the system.
(Inherited from GenericDevice) | |
| SendParameters |
Function for sending parameters on the fly.
Not Currently implemented. This will throw a NotSupportedException
(Inherited from GlExpBase) | |
| ToString |
Return the name of the device.
(Inherited from GenericDevice) | |
| UnRegister |
Unregister this device with the system. This function can not be called from the device's own SigChange event handler.
On successful unregistration, if this device supports the OnlineStatusChange event, it will trigger indicating the device when offline. (Inherited from GenericDevice) |
| Name | Description | |
|---|---|---|
| BaseEvent |
Generic base event, triggered when the there are no other handlers available
for a specific EventID.
(Inherited from GenericBase) | |
| DimmingLoadStateChange |
Event triggered when information from a load is received.
EventIds for this event are located in GlExpClxDimBase class.
(Inherited from GlExpClxDimBase) | |
| IpInformationChange |
Event that tells what IP Address is connected/disconnected from an IP ID for a non-UDP device.
This is only valid for an Ethernet device. An exception will be thrown if it is not.
(Inherited from GenericDevice) | |
| OnlineStatusChange |
Event triggered when the Online status of the device changes.
(Inherited from GenericDevice) | |
| OverrideEventHandler |
Override event handler
EventIds for this event are located in eOverrideEvents.
(Inherited from GlExpClxDimBase) |
static GlExpDimCn glExpDimCn; public ControlSystemGlExp() { // Register console commands CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a GL-EXP-DIM-CN CreateDevice command", ConsoleAccessLevelEnum.AccessOperator); } // Method to create the GL-EXP Dimming devices. public void CreateDeviceCmd(String args) { //Initialize the GL-EXP-DIM-CN device for Cresnet Communication glExpDimCn = new GlExpDimCn(0x64, this); glExpDimCn.OverrideEventHandler += GlExpOverrideEventHandler; glExpDimCn.DimmingLoadStateChange += GlExpDimCnLoadEventHandler; //Register the devices with the Control system glExpDimCn.Register(); } // Method to handle the dimming load state change events. static void GlExpDimCnLoadEventHandler(GlExpClxDimBase device, DimmingLoadStatusArgs args) { if (args.EventId == LoadEventIds.LevelChangeEventId) { CrestronConsole.PrintLine("{0} Device Load {1} Level Feedback event occurred\r\n", device.ToString(), args.DimmingLoad.LoadNumber); } } // Event handler for Override events static void GlExpOverrideEventHandler(GenericBase device, eOverrideEvents event) { if (event == eOverrideEvents.External) { CrestronConsole.PrintLine("{0} Device External Override event occurred\r\n", device.ToString()); } }