Go to documentation repository
The NotifyEvent method generates system events. The generated event is sent directly to the kernel on which the object is registered, and not to the entire system. In the NotifyEvent method, the event is specified by the MsgObject object (see The MsgObject and Event objects and their built-in methods and properties).
Syntax for method invocation:
function NotifyEvent(msgevent : MsgObject)
Method arguments:
Note
Two types of system messages are available in Axxon PSIM: events and reactions. The events usually contain some information and are used as notifications sent to all Axxon PSIM kernels connected to each other during the architecture configuration. The reactions are commands sent to specific objects. The reactions are transmitted only to the kernel on which the object is registered, and not to the entire system. The DoReactStr and DoReact methods are used to generate reactions. The NotifyEventStr and NotifyEvent methods are used to generate events.
Example. When the Backup Archive 1 module starts archiving video recordings, the analog output 1 of the Video Capture Device 2 is disabled. Send the command as an event to be registered in the Event Viewer.
Note
When running this script, the analog output 1 of the Video Capture Device 2 is not disabled.
if (Event.SourceType == "ARCH" && Event.SourceId == "1" && Event.Action == "ACTIVE ") { var msgevent = CreateMsg(); msgevent.SourceType = " GRABBER "; msgevent.SourceId = "2"; msgevent.Action = "MUX1_OFF"; NotifyEvent(msgevent); }