Click or drag to resize

DaliLoop Class

DALI Loop Class for DinDali2/DinDali2Cresnet Device.

This class will trigger BaseEvent, DinDali2SigEventChange and OverrideEventHandler events.

Inheritance Hierarchy
SystemObject
  Crestron.SimplSharpPro.LightingDaliLoop

Namespace: Crestron.SimplSharpPro.Lighting
Assembly: Crestron.SimplSharpPro.Lighting (in Crestron.SimplSharpPro.Lighting.dll) Version: 2.21.121
Syntax
C#
public sealed class DaliLoop : ILightLoadOverrideControl

The DaliLoop type exposes the following members.

Properties
 NameDescription
Public propertyAllBallastLower Property to lower the light levels of all the ballasts on the DaliLoop, using the ramp rate defined in the DaliBallast.
Public propertyAllBallastRaise Property to raise the light levels of all the ballasts on the DaliLoop, using the ramp rate defined in the DaliBallast.
Public propertyBallastsDALI Ballasts collection.
Public propertyBroadcastLevelIn Property to set the brightness level for all ballasts on the DaliLoop.
Public propertyBusyFeedback Property to indicate that the DALI controller is performing search of ballasts connected to the DaliLoop.

The BaseEvent event will trigger with BusyFeedbackEventId.

Public propertyConfigurationReadFeedback Property to indicate that the DALI controller is reading configuration parameters (i.e., min/max and override levels). These parameters are typically set when using the DALI Commissioning Tool.

The BaseEvent event will trigger with ConfigurationReadFeedbackEventId.

Public propertyDaliBusErrorFeedback Property to indicate that an error has been detected on the DaliLoop.

The BaseEvent event will trigger with DaliBusErrorFeedbackEventId.

Public propertyDeviceLoopIsOn Returns the DinDali2 and DinDali2Cresnet devices the DaliLoop is on.
Public propertyFailFeedback Property to report if the ballast replacement(s) failed.

The BaseEvent event will trigger with FailFeedbackEventId.

Public propertyGroupsDALI Groups collection.
Public propertyInBallastReplacementFeedback Property to indicate that ballast replacement is active.

The BaseEvent event will trigger with InBallastReplacementFeedbackEventId.

Public propertyInExternalOverrideFeedback Property to indicate that external override is active.

The OverrideEventHandler event will trigger with External.

Public propertyInManualOverrideFeedback Property to indicate that manual override is active.

The OverrideEventHandler event will trigger with Manual.

Public propertyNumberDaliLoop number
Public propertyNumberOfMissingBallastsFeedback Property to return the number of missing ballasts after ballast replacement has loaded.

The BaseEvent event will trigger with NumberOfMissingBallastsReceivedEventId.

Public propertyNumberOfNewBallastsFeedback Property to return the number of new DaliBallast after ballast replacement has loaded.

The BaseEvent event will trigger with NumberOfNewBallastsReceivedEventId.

Public propertySuccessFeedback Property to report if the ballast replacement was successful.

The BaseEvent event will trigger with SuccessFeedbackEventId.

Public propertyThreeByteCommandNoResponseFeedback Property to indicate that no response has been received after triggering the 3-byte command using Execute(Byte, Byte, Byte) method.

The BaseEvent event will trigger with ThreeByteCommandNoResponseFeedbackEventId.

Public propertyThreeByteCommandResponseFeedback 8-bit response to the last executed 3-byte command. The high-order byte of the response is ignored.

The BaseEvent event will trigger with ThreeByteCommandResponseReceivedEventId.

Public propertyThreeByteCommandResponseValidFeedback Property to indicate that the 3-byte command Response contains valid data. The data is sent from the other DALI controller in response to an Execute(Byte, Byte, Byte) command.

The BaseEvent event will trigger with ThreeByteCommandResponseValidFeedbackEventId.

Public propertyTwoByteCommandNoResponseFeedback Property to indicate that no response has been received after triggering a 2-byte command using Execute(Byte, Byte).

The BaseEvent event will trigger with TwoByteCommandNoResponseFeedbackEventId.

Public propertyTwoByteCommandResponseFeedback 8-bit response to the last executed 2-byte query command. The high-order byte of the response is ignored.

The BaseEvent event will trigger with TwoByteCommandResponseReceivedEventId.

Public propertyTwoByteCommandResponseValidFeedback Property to indicate that the 2-byte command Response contains valid data.

The BaseEvent event will trigger with TwoByteCommandResponseValidFeedbackEventId.

Top
Methods
 NameDescription
Public methodBroadcastOff Method to turn off all the ballasts on the DaliLoop.
Public methodDoReplace Method to do the ballast replacement(s).
Public methodEnterManualOverride Method to enter manual override mode. This recalls the override load levels stored in the DaliBallast.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecute(Byte, Byte) Method to send the 2-byte DALI control/query command or special command specified by "paramAddress" (byte 1) and "paramCommandOrData" (byte 2). The commands can be sent to individual DaliBallast/DaliGroup/ all ballasts that are part of the DaliLoop.
Public methodExecute(Byte, Byte, Byte) Method to send the 3-byte DALI command. The DALI command consists of "paramAddress" (byte 1), "paramCommandOrData" (byte 2) and "paramData" (byte 3).
Public methodExitManualOverride Method to exit manual override mode. This will restore the loads to the non-override states (assuming not also in External override mode).
Public methodFlashNext Method to flash the next new DaliBallast. This flashing DaliBallast can replace a missing DaliBallast by setting a valid Missing Ballast Address and pulsing DoReplace(DaliBallast).
Public methodFlashPrevious Method to flash the DaliBallast which was previously flashing. This flashing DaliBallast can replace a missing DaliBallast by setting a valid Missing Ballast Address and pulsing DoReplace(DaliBallast).
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStartBallastReplacement Method to start/enter ballast replacement mode.
Public methodStopBallastReplacement Method to stop/exit ballast replacement mode.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventDinDali2SigEventChange Event triggered when the DaliBallast/DaliGroup reports information to the Control System. Will fire the DinDali2EventArgs with the eventId, the LoopIndex and the ballast/group collection

Valid event IDs are available in DaliLoop

Public eventOverrideEventHandler Event triggered when the DaliLoop reports Override sig information to the Control System.

Valid event IDs are available in eOverrideEvents.

Top
Fields
 NameDescription
Public fieldStatic memberBallastLevelOutFeedbackEventId The state of LevelFeedback has changed.

The DinDali2SigEventChange event will trigger for this event id.

DinDali2EventArgs will fire with the event Id, the loop index and index into the ballast/group collection.

Public fieldStatic memberBallastStatusReceivedEventId The state of StatusFeedback has changed.

The DinDali2SigEventChange event will trigger for this event id.

DinDali2EventArgs will fire with the event Id, the loop index and index into the ballast/group collection.

Public fieldStatic memberBusyFeedbackEventId The state of BusyFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberConfigurationReadFeedbackEventId The state of ConfigurationReadFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberDaliBusErrorFeedbackEventId The state of DaliBusErrorFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberFailFeedbackEventId The state of FailFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberGroupLevelOutFeedbackEventId The state of LevelOutFeedback has changed.

The DinDali2SigEventChange event will trigger for this event id.

DinDali2EventArgs will fire with the event Id, the loop index and index into the ballast/group collection.

Public fieldStatic memberInBallastReplacementFeedbackEventId The state of InBallastReplacementFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberInGroupFeedbackEventId The state of InGroupFeedback has changed.

The DinDali2SigEventChange event will trigger for this event id.

DinDali2EventArgs will fire with the event Id, the loop index and index into the ballast/group collection.

Public fieldStatic memberLampFailureFeedbackEventId The state of LampFailureFeedback has changed.

The DinDali2SigEventChange event will trigger for this event id.

DinDali2EventArgs will fire with the event Id, the loop index and index into the ballast/group collection.

Public fieldStatic memberMissingFeedbackEventId The state of MissingFeedback has changed.

The DinDali2SigEventChange event will trigger for this event id.

DinDali2EventArgs will fire with the event Id, the loop index and index into the ballast/group collection.

Public fieldStatic memberNumberOfBallastsPerLoop Number of DALI Ballasts per DaliLoop.
Public fieldStatic memberNumberOfGroups Number of DALI Ballast Groups per DaliLoop.
Public fieldStatic memberNumberOfMissingBallastsReceivedEventId The state of NumberOfMissingBallastsFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberNumberOfNewBallastsReceivedEventId The state of NumberOfNewBallastsFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberPowerFeedbackEventId The state of PowerFeedback has changed.

The DinDali2SigEventChange event will trigger for this event id.

DinDali2EventArgs will fire with the event Id, the loop index and index into the ballast/group collection.

Public fieldStatic memberSuccessFeedbackEventId The state of SuccessFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberThreeByteCommandNoResponseFeedbackEventId The state of ThreeByteCommandNoResponseFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberThreeByteCommandResponseReceivedEventId The state of ThreeByteCommandResponseFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberThreeByteCommandResponseValidFeedbackEventId The state of ThreeByteCommandResponseValidFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberTwoByteCommandNoResponseFeedbackEventId The state of TwoByteCommandNoResponseFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberTwoByteCommandResponseReceivedEventId The state of TwoByteCommandResponseFeedback has changed.

The BaseEvent event will trigger for this event id.

Public fieldStatic memberTwoByteCommandResponseValidFeedbackEventId The state of TwoByteCommandResponseValidFeedback has changed.

The BaseEvent event will trigger for this event id.

Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also