Use ActiveEvent
- Last UpdatedMar 07, 2025
- 2 minute read
ActiveEvent is an ActiveX control that notifies the Event subsystem when an event occurs in another application, such as InTouch HMI software. ActiveEvent is script-based. You can use it in any application that uses a COM-enabled scripting language to detect an event for that application. COM-enabled scripting languages include InTouch scripting and Visual Basic.
After you install the ActiveEvent control on an InTouch computer using the AVEVA Historian installation program, ActiveEvent does not automatically appear in the list of available ActiveX objects for use within WindowMaker. You need to run the Wizard/ActiveX installation from within WindowMaker, as well. For more information on performing a Wizard/ActiveX installation, see your InTouch documentation.
To enable external event detection for the Historian, you must:
-
Create an event tag in the Historian to store the event occurrence information. Make sure that the detection type is set to External.
You can define the event tag so that the event is associated with an action that is triggered from the Historian, such as executing a SQL script, sending an e-mail message, or recording the values of a set of tags at the time the event occurred.
For more information, see Add an event tag.
-
Install the ActiveEvent control so that it can be used in the ActiveX container application (for example, in InTouch HMI software).
For more information on installing the ActiveEvent control, see the AVEVA System Platform Installation Guide.
-
Configure the DCOM security attributes for the external detector to be used with ActiveEvent. Security attributes must be set up on the AVEVA Historian computer.
For information, see Configure security attributes for ActiveEvent.
-
Write a script that notifies the Historian event system of the external event.
For more information, see ActiveEvent methods.
Important: You cannot use ActiveEvent in an InTouch version 7.0 SP2 application.
Synchronize the system time for the ActiveEvent computer with the system time for the Historian. If the ActiveEvent computer time is ahead, the event system may generate NULL values for snapshot data.