Go to documentation repository
The Script system object is designed for initializing and setting the parameters of JScript scripts in Axxon PSIM system.
Figure shows the settings panel for the Script object.
used to initialize a script developed in the JScript language in Axxon PSIM and to set the parameters for its execution..
The settings panel of the Script system object is shown in the figure below:
Note | ||
---|---|---|
| ||
Creating of large number of the Script objects (more than 100) can result to instable cause system workinginstability. |
The settings panel of the Script system object allows choosing the time zone schedules and the computers (kernels) for executing the script.
Info | ||
---|---|---|
| ||
To set all checkboxes checked select one next to all computers, select a cell in the column with checkboxes and click press Ctrl+A. To set clear all checkboxes unchecked , select one a cell and click press Shift+A. |
It also The settings panel of the Script system object has the button for starting the the Editor-Debugger tool utility and the text window for viewing the script text created by means of using this toolutility. The scripts can be edited You can edit the script in the Editor-Debugger tool utility or directly in on the settings panel for the Script object.
Moreover, one you can configure the events filter of events – —the list of events which are to be processed by the events that the Script system object will process. Including the event to the filter equals to the if operator in the text of script, i.e. it means, when the event is in the table, the operator can be omitted.
Note | ||
---|---|---|
| ||
The event filter is to be set when creating You must configure the events filter when you create a script in large distributed configurations. Otherwise Otherwise, the module will process all incoming events and it will lead to module malfunctioning. |
Info | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
If the Object’s type column has the Macro value, the Identifier column has the 1 value and the Event column has the Executed value, then instead of the script below
script can be used instead of script.you can use the following script:
The detailed information on the elements of the settings panel for the Script object is given in Administrator's guide. |
...
Info | ||
---|---|---|
| ||
Recording on Camera 1 is to must be started when controlling the PTZ device camera in the Video surveillance monitor. For this adjust , configure the Script object as follows:
|
The filter can be set by the UPDATE_OBJECT event of the CORE object. Example of the command to add the Camera object with identifier 1 object to the filter of the Script object with identifier 2 filter:
Code Block | ||
---|---|---|
| ||
NotifyEventStr("CORE","","UPDATE_OBJECT","objtype<SCRIPT>,objid<2>,EVENT.objid.0<1>,EVENT.objid.1<10>,EVENT.action.count<2>,flags<>,EVENT.action.0<>,EVENT.action.1<>,EVENT.objtype.0<CAM>,EVENT.objtype.count<2>,EVENT.objtype.1<CAM>,EVENT.objid.count<2>"); |