Go to documentation repository
Page History
...
The Grabber object sends events presented in the table. Procedure is started when the corresponding event appears.
Format of events procedure for the video capture device:
Code Block |
---|
OnEvent("GRABBER","_id_","_event_") |
Description of events of the Grabber object.
Event | Description |
"+12V" | Voltage error +12V. |
"+3.3V" | Voltage error +3.3V. |
"+5V" | Voltage error +5V. |
"-12V" | Voltage error -12V. |
"-5V" | Voltage error -5V. |
"CPU_FAN" | Number of ventilator rotations. |
"CPU_TEMP" | Temperature of processor. |
"SYS_TEMP" | Temperature of MB chipset. |
"UPS_COMMLOST" | Connection lost. |
"UPS_FATAL_ERROR" | Error of connection. |
"UPS_LOWBATT" | Battery low. |
"UPS_ONBATT" | Switch to battery supply. |
"UPS_ONLINE" | Restoring the main supply. |
"UPS_REPLACEBATT" | Battery changing is required. |
"UPS_SHUTTING" | Shutdown. |
"VCORE" | Voltage of processor core. |
"AUDIO_SIG_LOST " | Sound lost |
"CONNECT_FAIL" | Connection error |
"CONNECT_OK " | Connected |
"NETWORK_FAILURE " | Connection lost |
"STATE_CONNECTED " | Connection restored |
Operator format to describe actions with the video capture device is:
Code Block |
---|
DoReact("GRABBER","_id_","_command_" [,"_parameters_"]); |
List of commands and parameters for the the Grabber object is presented in the following table:
Command – command description | Parameters | Description of parameters |
"SETUP" – sets parameters of video capture device. | chan<> | Number of PCI slot (0,1,2,…,32). |
mode<> | Speed of grabber/digitising (0 – maximal, 1 – average, 2 – minimal). | |
resolution<> | Resolution (0– standard, frame quarter (384x288); 1 – high, half-frame (768x288); 2 – maximal frame (768x576)). | |
format<> | Format of video signal (PAL, NTSC). | |
drives<> | Disks for video archive record (DRIVE1:\, DRIVE2:\ … DRIVEN:\). | |
cams<> | Number of connected video cameras | |
auth<> | ||
ip<> | IP-address of video input network card | |
name<> | Name of object. | |
flags <> | Flags. | |
ip_port<> | IP-port. | |
password<> | Password. | |
type<> | Type of digitising. | |
username<> | Login. | |
watchdog<> | WatchDog shutdown (0 –disabled, 1 – enabled). | |
"SET_DRIVES" – sets disks for video archive record. | drives<> | Disks for video archive record. |
"MUX1_OFF" – disables video output through the analog output 1. | - | - |
"MUX2_OFF" - disables video output through the analog output 2. | - | - |
"MUX3_OFF" - disables video output through the analog output 3. | - | - |
"SET_IPINT_PARAM" – Sets (change) parameters of IP-device. Reaction allows changing of IP-device settings not entering its web-interface. Note. For reaction operation it is required to enable the mode of multi-flow video signal - see. Administrator's Guide, sectionConfiguration of multistream video, andAppendix 2. Defining param_id and param_value values for SET_IPINT_PARAM reaction | param_id<> | Name of parameter. Set of parameters for each camera is individual - see Appendix 2. Defining param_id and param_value values for SET_IPINT_PARAM reaction |
param_value<> | Value of parameter. Set of parameters for each camera is individual - see Appendix 2. Defining param_id and param_value values for SET_IPINT_PARAM reaction | |
cam_id<> | Camera ID in the Intellect software package. | |
vstream_id<> | Number of video-flow (optional parameter). Is given by “Number of camera”.”Number of flow”, for example 1.1, 1.2. | |
"START" – start playing video file in a virtual video capture device. | - | - |
"STOP" – stop playing video file in a virtual video capture device. | - | - |
"ENABLE" – enable object (uncheck the Disable box in the object settings panel) | recursive<> | Possible parameter values: 0 – enable only Video capture device 1 – enable the Video capture device and all Camera objects created under it |
"DISABLE" – disable object (check the Disable box in the object settings panel) | recursive<> | Possible parameter values: 0 – disable only Video capture device 1 – disable the Video capture device and all Camera objects created under it |
...
Properties of the GRABBER object | Description of properties |
ID<> | Object ID. |
PARENT_ID<> | Number of video capture device. |
Examples of using events and reactions of the Video capture Device object:
It is required to set the first channel for the first video capture device, maximal speed of digitizing, resolution is half-frame and PAL format while starting the first macro.
Code Block |
---|
OnEvent("MACRO","1","RUN") // start macro 1
{
DoReact("GRABBER","1", "SETUP", "chan<1>,mode<0>,resolution<1>,format<PAL>");
//set channel 1 for the first video capture device, speed of digitizing is maximal, resolution is half-frame, format is PAL
} |
Info | ||
---|---|---|
| ||
Description of the MACRO object is follows (see the MACRO section). |
Set disks D:\ and F:\ for video archive record while starting the third macro.
Code Block |
---|
OnEvent("MACRO","3","RUN") //start macro 3
{
DoReact("GRABBER","1","SET_DRIVES","drives<D:\,F:\>"); //record the video archive on disks D:\ and F:\
} |
...
of |
...
video capture device. |
...
Code Block |
---|
OnEvent("GRABBER","2"," UPS_FATAL_ERROR") //error of connection to the video capture device 2
{
DoReact("CAM","1","MUX1"); //display video camera 1 on the 1-st analog output of card
Wait(5);
DoReact("GRABBER","1","MUX1_OFF"); //disable 1-st analog output of the first card
DoReact("GRABBER","2","MUX1_OFF"); //disable 1-st analog output of the second card
} |
Info | ||
---|---|---|
| ||
If analog outputs of two or more cards are connected in parallel and video camera 1 belongs to the first grabber and video camera2 belongs to the second grabber than while triggering the «DoReact("CAM","1","MUX1");» command it is required to trigger the «DoReact("GRABBER","2","MUX1_OFF");» command at first, and correspondingly while triggering the «DoReact("CAM","2","MUX1");» command it is required to trigger the «DoReact("GRABBER","1","MUX1_OFF");» command at first. Otherwise signal overlaying will happened. |
Info | ||
---|---|---|
| ||
Description of the CAM object is follows (see the CAM section). |
It is required to disable the second analog output of the video capture device while restoring the main supply.
...