Go to documentation repository
Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.
Previous page Next page
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 Intellect system: 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 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); }