Go to documentation repository
Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.
Previous page Next page
The MONITOR object corresponds to the Monitor system object.
DoReact("MONITOR","_id_","_command_"[,"_parameters_"]);
List of commands and parameters for the MONITOR object is presented in the table.
Command – command description | Parameters | Description |
"REMOVE" – removes camera from monitor. | cam<> | ID of camera in the settings tree which is to be removed from monitor. |
"REMOVE_ALL" – removes all cameras from monitor. | - | - |
"STOP_VIDEO" – stops video flow of camera. | cam<> | ID of camera in the settings tree video flow from which is to be stopped. |
"REPLACE" – removes all cameras from monitor and triggers the specified camera. | slave_id<> | Name of computer to which monitor belongs, it is possible to place owner in script. |
cam<> | ID of camera in the settings tree which is to be displayed in the monitor. | |
name<> | Name of camera which is to be displayed in the bottom-left corner. | |
audio_type<> | - | |
audio_id<> | - | |
arch_id<> | - | |
control<> | 0 only archive viewing, 1 – it is also possible to control (arming/disarming, record). | |
"ADD_SHOW" – adds cameras on the monitor. | cam<> | ID of camera in the settings tree which is to be displayed in the monitor. |
name<> | Object name which is to be displayed in the bottom-left corner. | |
arch_id<> | - | |
control<> | 0 only archive viewing, 1 – it is also possible to control (arming/disarming, record). | |
"ACTIVATE_CAM" – activates camera. | cam<> | ID of camera in the settings tree which is to be activated. |
"ARCH_FRAME_TIME" – search of video archive by date and time. | cam<> | - |
date<> | - | |
time<> | - | |
"SETUP" – sets parameters of monitor. | no_update<> | - |
overlay<> | Disable the mode of speed-up displaying. | |
x<> | Coordinate of top-left corner (0 – 100). | |
y<> | Coordinate of top-left corner (0 – 100). | |
w<> | Size in horizontal direction (0 – 100). | |
h<> | Size in vertical direction (0 – 100). | |
max_cams<> | Maximum allowable number of cameras on the monitor. | |
min_cams<> | Minimum allowable number of cameras on the monitor. | |
compress<> | - | |
panel<> | Show control panel (0 – disabled, 1 – enabled). | |
panel_type<> | - | |
s<> | - | |
layout<> | - | |
gate<> | - | |
map_id<> | - | |
enable<> | - | |
topmost<> | 1 – show screen always on top. | |
type<> | Type of Monitor object. | |
allow_move<> | Allows moving of window. | |
arch_id<> | Archive ID. | |
cycle<> | Delay while auto scrolling (1 – 20 sec). | |
flags<> | Flags. | |
name<> | Name of object. | |
overlay<> | Enable the mode of speed-up displaying. (0 – no speeding-up, 1 – “overlay mode” speeding-up, 2 – “DirectDraw mode” speeding-up). | |
tel_prior<> | Telemetry priority. | |
"ACTIVATE" – activates control panel of monitor. | user_id<> | User ID. |
panel_active<> | - | |
"DEACTIVATE" – deactivates control panel of monitor. | - | - |
"EXPORT_FRAME" – exports frame in JPG-file. | cam<> | - |
file | - | |
"KEY_PRESSED" – controls buttons of video surveillance monitor and video records archive.
| number<> | - |
key<> | Possible values: "ARCH_EDIT_DATE" – change date of search by archive; "ARCH_EDIT_TIME" – change time of search by archive; "ARCH_EDIT_ENTER" – enter changes of values in archive; "ARCH_EDIT_ESCAPE" – cancel editing of archive; "ARCH_EDIT_BACK"; "ARCH_EDIT_REPLACE"; "WINDOW_ZOOM_IN" – expand window of video surveillance; "WINDOW_ZOOM_OUT" – hide window of video surveillance; "ZOOM_IN" – image incoming; "ZOOM_OUT" – image removal; "CYCLE_REW" – scrolling back of video surveillance windows; "CYCLE_FF" – scrolling straight of video surveillance windows; "LEFT" – move the frame left in the Zoom mode; "RIGHT" – move the frame right in the Zoom mode; "UP" – move the frame up in the Zoom mode; "DOWN" – move the frame down in the Zoom mode; "MODE_VIDEO" – video surveillance mode; "MODE_ARCH" – mode of archive video records playback; "MODE_ARCH2"- mode of archive video records playback 2; "MASK_SHOW" – show mask; "MASK_HIDE" – remove mask; "ARM" – arm camera; "DISARM" – disarm camera; "REW" – rewind; "PLAY" – play; "PLAY_NONSTOP" – non-stop playback; "PLAY_FAST" – speed up video record playback; "FF" – forward wind; "RECORD" – record; "RECORD_MIC" – record from microphone; "STOP" – stop; "REC_STOP" – stop record; "PAUSE" – pause; "MIC_ON" – microphone On; "MIC_OFF" – microphone Off; "PRINT" – print the frame. "SELECT_LAYOUT" – control layout of video surveillance monitor. "START_CYCLE_FF" – enable function of auto scrolling of video surveillance windows frontwards. Period of scrolling is specified while configuring the Monitor interface object (see the Administrator’s Guide, Настройка режима отображения окон видеокамер section). "STOP_CYCLE" – stop of auto scrolling of video surveillance windows. | |
"START_AVI_EXPORT" – starts video export Note. See the example as follows. | start<> | Start time. |
finish<> | End time. | |
avi_path<> | Path to created file. | |
cam<> | Camera ID. | |
"STOP_AVI_EXPORT" – stops video export | monitor<> | Number of monitor. |
"START_AVI_SCHEDULE" – start bookmarks export | - | - |
"STOP_AVI_SCHEDULE" – stop bookmarks export | - | - |
Properties of the MONITOR object are shown in the table.
Properties of the MONITOR object | Description of properties |
ID<> | Object ID. |
PARENT_ID<> | Parent object ID. |
Examples of using events and reactions of the Monitor object:
Play record from video camera 1 on the monitor 4 with specified date and time while the first macro starting.
OnEvent("MACRO","1","RUN") { DoReact("MONITOR","4","ARCH_FRAME_TIME","cam<1>,date<"+date+">,time<11:00:00>"); DoReact("MONITOR","4","KEY_PRESSED","key<PLAY>"); }
Switch to the mode of video archive viewing on the first video camera of monitor 4 while printing the frame from the first camera and then go on 10 frames further starting from the specified date and time.
OnEvent("CAM", "1", "PRINT") { DoReact("MONITOR","4","ARCH_FRAME_TIME","cam<1>,date<"+date+">,time <11:00:00>"); for(i=0;i<10;i=i+1) { DoReact ("MONITOR","4","KEY_PRESSED","key<FF>"); } }
Zoom in the video image on the monitor screen if video camera is in alarm state and reset it when alarm will be finished.
OnEvent("CAM","1","MD_START") { DoReact("MONITOR","1","KEY_PRESSED","key<ZOOM_IN>"); } OnEvent("CAM", "1", "MD_STOP"); { DoReact("MONITOR","1","KEY_PRESSED","key<ZOOM_OUT>"); }
Enter the layout number one on the monitor screen while triggering macro.
OnEvent("MACRO","1","RUN") { DoReact("MONITOR","1","KEY_PRESSED","key<SELECT_LAYOUT>,number<1>"); }
- Command of starting the video export from Camera 1 in the Monitor 1, starting from 24-10-14 17:10:38 and to 24-10-14 17:10:80 to the c:\aaa.avi file.
Examples of export starting in three ways: using the IIDK (port 900 and 100) and using script:- IIDK (port 900)
MONITOR|1|START_AVI_EXPORT|start<24-10-14 17:10:38>,finish<24-10-14 17:10:50>,avi_path<c:\aaa.avi>,cam<1> - IIDK (port 1030)
CORE||DO_REACT|source_type<MONITOR>,source_id<1>,action<START_AVI_EXPORT>,params<4>,param0_name<avi_path>,param0_val<c:\aaa.avi>,param1_name<cam>,param1_val<1>,param2_name<finish>,param2_val<24-10-14 17:10:50>,param3_name<start>,param3_val<24-10-14 17:10:38> Script (start by Macro 1)
OnEvent("MACRO","1","RUN") { DoReact("CORE","","DO_REACT","source_type<MONITOR>,source_id<1>,action<START_AVI_EXPORT>,params<4>,param0_name<avi_path>,param0_val<c:\aaa.avi>,param1_name<cam>,param1_val<1>,param2_name<finish>,param2_val<24-10-14 17:10:50>,param3_name<start>,param3_val<24-10-14 17:10:38"); }
- IIDK (port 900)
When macro 1 is run enable mouse PTZ control on Camera 4 at Monitor 10. Disable it on Macro 2.
OnEvent("MACRO","1","RUN") { DoReact("MONITOR","10","CONTROL_TELEMETRY","cam<4>,on<1>"); } OnEvent("MACRO","2","RUN") { DoReact("MONITOR","10","CONTROL_TELEMETRY","cam<4>,on<0>"); }