Programming Guide (JScript)



Yüklə 6,96 Mb.
Pdf görüntüsü
səhifə14/22
tarix07.11.2018
ölçüsü6,96 Mb.
#78683
1   ...   10   11   12   13   14   15   16   17   ...   22

48
The settings panel allows choosing the time zone and the computers (kernels) for executing the script.
It also has the button for starting the 
 tool and the text window for viewing the script text created by means of this tool. The scripts can be edited in the 
Editor-Debugger
Editor-
 tool or directly in the settings panel for the 
 object.
Debugger
Script__if_operator_in_the_text_of_script,_i.e._when_the_event_is_in_the_table,_the_operator_can_be_omitted._Attention!'>Script
Moreover, one can configure the filter of events – the list of events which are to be processed by the 
 system object. In general, including the event to the filter equals to   
Script
if
operator in the text of script, i.e. when the event is in the table, the operator can be omitted.
Attention!
Creating of large number of the 
 objects (more than 100) can result to instable system working.
Script
Note.
To set all checkboxes checked select one in the column and click Ctrl+A. To set all checkboxes unchecked select one and click Shift+A.
Attention!


49
The event filter is to be set when creating a script in large distributed configurations. Otherwise the module will process all incoming events and it will lead to module 
malfunctioning.  
Example
If the 
 column has the 
 value, the 
 column has the   value and the 
 column has the 
 value, then
Object’s type
Macro
Identifier
1
Event
Executed
if (Event.SourceType == "MACRO" && Event.SourceId==1 && Event.Action == "RUN")
{
    DoReactStr("CAM", "2", "REC", "");
}
script can be used instead of script.
DoReactStr("CAM", "2", "REC", "");
The detailed information on the elements of the settings panel for the 
 object is given in 
.
Script
Administrator's guide
1.  
Example.
Recording on Camera 1 is to be started when controlling PTZ device in the Video surveillance monitor.
For this adjust the 
 object as follows:
Script
Select the required time zone when the script is to be executed.


50
The filter can be set by the UPDATE_OBJECT event of the CORE object. Example command to add 
 1 object to the 
 2 filter:
Camera
Script
NotifyEventStr("CORE","","UPDATE_OBJECT","objtype
Yüklə 6,96 Mb.

Dostları ilə paylaş:
1   ...   10   11   12   13   14   15   16   17   ...   22




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə