'Declaration
Sub AcknowledgeCondition( _ ByVal serverDescriptor As Object, _ ByVal sourceDescriptor As Object, _ ByVal conditionName As String, _ ByVal activeTime As Date, _ ByVal cookie As Integer, _ ByVal acknowledgerId As String, _ ByVal comment As String _ )
'Usage
Dim instance As _EasyAEClient Dim serverDescriptor As Object Dim sourceDescriptor As Object Dim conditionName As String Dim activeTime As Date Dim cookie As Integer Dim acknowledgerId As String Dim comment As String instance.AcknowledgeCondition(serverDescriptor, sourceDescriptor, conditionName, activeTime, cookie, acknowledgerId, comment)
void AcknowledgeCondition( object serverDescriptor, object sourceDescriptor, string conditionName, DateTime activeTime, int cookie, string acknowledgerId, string comment )
void AcknowledgeCondition( Object^ serverDescriptor, Object^ sourceDescriptor, String^ conditionName, DateTime activeTime, int cookie, String^ acknowledgerId, String^ comment )
Parameters
- serverDescriptor
- The OPC server involved in the operation.
Because the OpcLabs.EasyOpc.ServerDescriptor has an implicit conversion from System.Guid, System.String and OpcLabs.EasyOpc.ServerElement, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a GUID (representing the CLSID of the server), a string (representing the so-called OPC server descriptor string, such as a ProgID or the URL of the server), or a OpcLabs.EasyOpc.ServerElement object (result from OPC browsing), in place of this parameter, and the corresponding OPC server descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.ServerDescriptor.FromGuid, OpcLabs.EasyOpc.ServerDescriptor.FromString or OpcLabs.EasyOpc.ServerDescriptor.FromServerElement static method instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - sourceDescriptor
- Contains fully qualified source name. Identifies the source of the condition that is being acknowledged, e.g. FIC101.
Because the OpcLabs.EasyOpc.AlarmsAndEvents.AENodeDescriptor has an implicit conversion from System.String and OpcLabs.EasyOpc.AlarmsAndEvents.AddressSpace.AENodeElement, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a string (representing the qualified name of the node), or a OpcLabs.EasyOpc.AlarmsAndEvents.AddressSpace.AENodeElement object (result from OPC browsing), in place of this parameter, and the corresponding OPC A&E node descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.AlarmsAndEvents.AENodeDescriptor.FromString or OpcLabs.EasyOpc.AlarmsAndEvents.AENodeDescriptor.FromAENodeElement static method instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - conditionName
- A condition name, identifying the condition that is being acknowledged. Condition Names are unique within the scope of the event server. Examples of Condition Names might be "LevelAlarm" or "Deviation".
The value of this parameter can be
null
(Nothing
in Visual Basic). - activeTime
- An active time corresponding to the Source and Condition Name pair. This parameter uniquely identifies a specific transition of the condition to the active state or into a different sub-condition and is the same as the OpcLabs.EasyOpc.AlarmsAndEvents.AEConditionState.SubconditionActiveTime condition attribute. Active Times are passed to the client in the event notification. If the condition has become active again or transitioned into a different sub-condition at a later time, this acknowledgment will be ignored.
- cookie
- A server supplied "cookie" corresponding to the Source and Condition Name pair that in addition to the Active Time uniquely identifies a specific event notification. Cookies are passed to the client in the event notification. The client is responsible for returning the same cookie parameter, received in the event notification, back to the server in the condition acknowledgment.
- acknowledgerId
The value of this parameter can be
null
(Nothing
in Visual Basic).- comment
The value of this parameter can be
null
(Nothing
in Visual Basic).