Go to documentation repository
Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.
You can use programming with the help of scripts if Intellect interface settings of objects or Macros capabilities aren’t enough to implement any operating scenario of Intellect. For more details about interactions between objects, see the table below.
There are two options for writing scripts in Intellect:
In the embedded programming language. You can use the Program system object of the Programming tab—see The Program object. Programming using the embedded language of Intellect.
- In the JScript language. You can use the Script system object of the Programming tab—see The Script object. Programming using the JScript language.
Both options work, but the Program object is deprecated and is no longer developed. We recommend using the Script object and the JScript language to write scripts.
This guide had the following information:
- description of the settings for both objects,
- syntax of the scripts and their debugging,
- examples of scripts for each language.
The scripts use:
- events, reactions and commands of Intellect objects. The main ones are described in Description of events and reactions of system objects.
the Core, MsgObject, Event objects and their embedded methods described in Description of the object model in Intellect.
Methods of setting logical interactions between objects in Intellect
Intellect functionality is based on logical interactions between objects. General information on methods of setting logical interactions:
Method of setting logical interaction | Description | Implementation | Example |
Settings panels of system objects | Basiс configuration of interaction between system objects | Implemented using functionality of system objects—see Intellect configuration and setup | Configuring video display from the Camera in the Monitor interface window |
Macro | Configuration of simple interactions between objects if basic object settings are insufficient | Implemented using the Macro object—see Creating and using macros | Enabling actuator (relay) when sensor is closed |
Program | Configuration of complex interactions between objects if functionality of the Macro object is insufficient | Implemented using the Program object as the code in the embedded programming language of Intellect—see The Program object. Programming using the embedded language of Intellect | Return PTZ cameras to their original position and take a photo every 15 minutes |
Script | Implemented using the Script object as a JScript code—see The Script object. Programming using the JScript language |