Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page The NotifyEvent methods  The NotifyEventGlobal method Next page


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:

  1. msgevent is a required argument. It specifies the event sent to the system. Possible values: the MsgObject objects created earlier in the script.

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);
}