Go to documentation repository
Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.
The NotifyEvent method generates system events. The generated event is sent to all system kernels connected to the local kernel. 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:
- 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 Intellect: events and reactions. The events usually contain some information and are used as notifications sent to all Intellect 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); }