Scripting example: triggering events within an InTouch application
- Last UpdatedMar 07, 2025
- 1 minute read
To trigger an event within an InTouch application, include these methods in an InTouch script, similar to the following:
#WWHistEvent1.InitializeEx("Historian01"); {Initialized the server}
#WWHistEvent1.AddEventTag("ASVTag");
#WWHistEvent1.AddEventTag("SysStatusEvent"); {Added event tag}
#WWHistEvent1.InvokeEventEx("ASVTag");
#WWHistEvent1.InvokeEventEx("SysStatusEvent"); {Invoked event}
where:
-
WWHistorianEvent1 is the name of the instantiation of the ActiveEvent ActiveX control
-
Historian01 is the computer name for the AVEVA Historian (not an alias)
-
ASVTag is the name of the event tag that is associated with this external detector
To add more tags to be detected, use the AddEventTag() method and use InvokeEventEx() specifying the tagname. A single ActiveEvent control handles many tags.