Log Event via Historian SDK

Hi,

We have a specific galaxy where some events are generated using the Historian SDK. We can see these events, along with custom messages, in the `dbo.Events` table.

We can consume them using the AlarmApp client control in Historical mode.

However, we are unable to see these events when using the AlarmClient control (AlarmClient mode = 2 - recent alarms & events).

We can only see those generated by the object with the "write success" message.

I believe this behavior is expected since we are not using the alarm provider when calling the Historian SDK functions. Could you confirm if this is correct?

An alternative approach would be to use an object script with `LogDataChangeEvent`, but this would generate an event with priority 999. However, the customer requires these specific events to be logged with priority 992 (severity four is limited to a maximum of 900).

This way of working is because in the customer's field it is asked to know better why a value has been changed with several priorities assigned without generating an alarm. We can also be sure the comment is written before writing to the value or even proposed specific event messages from a combox so that the audit trail is more "trustable"

Let me know your thoughts.

Best regards,

Parents
  • Hi Loris,

    Confirmed. The Historian SDK simply stores historical records into Historian and those transactions are never raised as events in the Alarm and Event system.

    I'm not aware of a simple way to set the priority of events raised by Application Server. It will likely require an enhancement to the event primitive as well as the event script for Application Server.

Reply
  • Hi Loris,

    Confirmed. The Historian SDK simply stores historical records into Historian and those transactions are never raised as events in the Alarm and Event system.

    I'm not aware of a simple way to set the priority of events raised by Application Server. It will likely require an enhancement to the event primitive as well as the event script for Application Server.

Children