Declarations section ==================== ' ActiveEvent reference. Dim HistEvent As AAHACTIVEEVENTLib.aahEventClass; Body of the script ================== Execution type: Startup ----------------------- ' Instantiate ActiveEvent. HistEvent = new AAHACTIVEEVENTLib.aahEventClass; ' Connect to the Wonderware Historian Server. ' Replace the XXX string with the name of your Tier-1 Historian HistEvent.InitializeEx("XXX"); ' Register the Event tag to be triggered. HistEvent.AddEventTag("ExternalEvent"); Execution type: Execute Expression : Me.Trigger Trigger type : OnTrue -------------------------- ' Verify connection to the Wonderware Historian Server. If HistEvent.IsConnected() Then ' Trigger the External event. HistEvent.InvokeEventEx("ExternalEvent"); EndIf; 'Reset trigger. Me.Trigger = False;