Lab 19 - Using Activeevent 9-37
Lab 19 - Using Activeevent 9-37
Introduction
This Lab is designed to demonstrate the use of the ActiveEvent ActiveX Control to trigger external
events in the Historian.
Objective
Upon completion of this lab you will be able to:
z Import the ActiveEvent ActiveX Control into the Galaxy
z Create a template and include a script to trigger an external event
z Trigger the event from ObjectViewer
z Use the ActiveEvent ActiveX Control to trigger External events in the Historian
6. Click OK.
The ActiveEvent ActiveX Control is ready to be used.
Wonderware Training
Lab 19 – Using ActiveEvent 9-39
9. Click the Scripts tab, and create a new script called Trigger.
10. In the Declarations section, write the following:
dim HistEvent as AAHACTIVEEVENTLib.aahEventClass; 'Instance of the
ActiveEvent Control
11. Select Startup for Execution Type.
Wonderware Training
Lab 19 – Using ActiveEvent 9-41
Wonderware Training
Lab 19 – Using ActiveEvent 9-43
22. Set the Trigger attribute to True. This will trigger the external event in the Historian.
23. Start ActiveFactory Query.
24. Change the Query type to Event history values.
25. Select ExternalEvent in the Tag Picker.
26. Click the Time tab.
27. Select a time period of 1 hour.
28. Click the Data tab.
The event generated by Application Server displays:
Wonderware Training
Module 10
Wonderware Training