Documentation for Axxon PSIM 1.0.0-1.0.1.

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


You can use programming with the help of scripts if Axxon PSIM interface settings of objects or Macros capabilities aren’t enough to implement any operating scenario of Axxon PSIM. For more details about interactions between objects, see the table below.

There are two options for writing scripts in Axxon PSIM:

  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 Axxon PSIM.

  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 Axxon PSIM

Axxon PSIM functionality is based on logical interactions between objects. General information on methods of setting logical interactions: 

Method of setting logical interaction

Description

Implementation

Example

Setting panels of system objects

Basic configuration of interaction between system objects

Implemented using functionality of system objectssee Axxon PSIM 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 Axxon PSIMsee The Program object. Programming using the embedded language of Axxon PSIM

Return PTZ cameras to their original position and take a photo every 15 minutes

Script

Implemented using the Script object as JScript codesee The Script object. Programming using the JScript language

  • No labels