Go to documentation repository
...
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:\
} |
It is required to display the first video camera on the first analog output and disable first analog outputs of the first and second cards while error of connection to the second 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.
| Code Block |
|---|
OnEvent("GRABBER","1","UPS_ONLINE") //restoring the main supply
{
DoReact("GRABBER","1","MUX2_OFF"); //disable analog output 2
} |