Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.

Previous page Guide for creating scripts (programming)  The Program object. Programming using the embedded language of Intellect Next page


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:

  1. 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.

  2. 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:

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 objectssee 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 objectsee 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 Intellectsee 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 codesee The Script object. Programming using the JScript language


  • No labels