Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The DoReactSetup method is used for temporary changing parameters of the object. It changes only the specified parameters, leaving other parameters intact.

Method call syntax

function DoReactSetup (objtype : String, id : String, param<value> [, param<value>] : String )

Method arguments:

  1. objtype - required argument. The type of the object the parameters of which are to be changed. It takes the following values:  type – String, range – existing object types.
  2. id - required argument. Identification number of the object of the type set in the objtype argument. It takes the following values:  type – String, range – existing identification numbers of the objects of the specified type.
  3. param<value> - required argument. Several arguments of this type can be specified. The parameters of the action.

One parameter has the following syntax:

“param<value>”, where

param – name of the parameter;

value – value of the parameter.

Several parameters have the following syntax:

“param1<value1>,param2<value2>…”.

Elements of the list are separated by commas with no white space.

The param argument can take the following values: values of the String type, range is limited by available parameters of the specified action. The “value” argument can take the following values: values of the String type, the range depends on the parameter.

Example. When Macro 1 starts, temporary remove all cameras on the first monitor.

 if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN")
{
DoReactSetup ("MONITOR","1","REMOVE_ALL","");
}
  • No labels