Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The NotifyEvent method generates system events. The event is sent to all kernels connected to the local kernel. The event is specified using the MsgObject object.

Method call syntax

function NotifyEvent(msgevent : MsgObject)

Method arguments:

msgevent - Required argument. The event sent to the system. It takes the following values:  MsgObject objects created earlier in the script.

Note

Two types of system messages are available in Axxon PSIM system: 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 system configuration.

The reactions are the control commands sent to specific objects.

The reactions are transmitted only to the kernel where the object belongs, and not to the whole 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 Events Log.

Note

 While executing 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);
}
  • No labels