Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

AEClient ActiveTime, AcknowledgedTime, InactiveTime from AEConditionState Class

More
22 Mar 2016 13:21 #3951 by support
There is no single answer to this question, because some of these parameters can only be accessed in one way, some in other way, and some by multiple ways. It's bit messy, but the EasyAEClient just mimics the IOC specification, and cannot provide information where there is none, unfortunately.

In general, the AEConditionState can be obtained by calling EasyAEClient.GetConditionState only. You need to be aware that you get a snapshot of the state at the moment you are calling it, and that can already be different from the state it was in when you received the notification that triggered you to ask for the state. Sad, but true.

Therefore the only always reliable approach is to use whatever information you received in the notification itself. Here again, we give you everything that the OPC spec allows and the server provides. Some server may have vendor-specific event attributes which can convey the information. But, if something is missing, there is no way to reliably obtain it later. Some of what you have asked for can be easily inferred: For example, the time when a condition was acknowledged, is the time of the event notification when the condition state (which is included in the notification) has transitioned into the Acknowledged state. But the AcknowledgerId, for example, is not available in event notifications and, to my knowledge, can only be obtained through GetConditionState.

Please Log in or Create an account to join the conversation.

More
22 Mar 2016 12:27 #3950 by UKPR
Hello,

I'm trying to develop AE Client with the full logging when alarm was active, when became inactive, when and by whom was acknowledged etc. In the documentation I've found that there is a class AEConditionState which have parameters that would be useful for my application.

How can I access that parameters? In EventNotification handler in EventData there is only activeTime and Time.

Kind regards,

Mateusz Siatrak
Software Engineer
UK Power Reserve Ltd

Kind regards,


Software Engineer Team
UK Power Reserve Ltd
6th Floor, Radcliffe House, Blenheim Court, Solihull, B91 2AA.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.052 seconds