Integrating a DVR
12
Building Technologies
048_DMS_DMS8000_Generic_DVR_Integration_Guide_MP4.50_A6V10331273_a_en
Fire Safety & Security Products
06.2012
2.4.4
Examples of XML file
2.4.4.1
Windows application viewer
This example refers to a Windows application viewer that is started with a com-
mand line such as:
C:\Program Files\VGMaker\VGViewer.EXE -AP1 –AR1 –I192.168.9.112 –C12 –TViewer –W120,200,100,100 -P
In Composer, the Program file pathname as well as the following parameters can
be configured:
PTZ control enabled (-AP)
Preset Position enabled (-AR)
DVR IP address
In addition, the DVR support 4 video inputs, which are all declared and instantiated
in the Composer project, and 2 optional alarm inputs that can be added manually in
the dedicated folder.
<?xml version="1.0" encoding="iso-8859-1" ?>
<
subsystems
>
<
subsystem
>
<
nodes
>
<
node ID
="
1
"
TYPE
="
1
">
<
properties
>
<
property ID
="
CustomerText
">
<
item
VAL
="
Generic Viewer
" />
</
property
>
<!--
DRV description
-->
<
property ID
="
TechText
">
<
item
VAL
="
DVR Viewer Application
" />
</
property
>
<
property ID
="
ParametersList
">
<!--
Mandatory fields = 1 = Application - 2 = Web
-->
<
Type
Value
="
1
" />
<
Version
Value
="
1
" />
<
Application ScreenAttribute
="
RW
"
DefaultValue=
"
C:\Program Files\VGMaker\VGViewer.EXE
"
Note=
"
Please insert here your application path
" />
<
CommandLine Value=
"
-AP%%PTZ%% -AR%%PP%% -I%%IP%% C%%VIDEOIN_NO%%
-T%%APP_WINCTRL_TITLE%%
-W%%POS_X%%,%%POS_Y%%,%%SIZE_X%%,%%SIZE_Y%%
%%IF_LIVE(%%IF_PTZ(
-P)%%)%%
"/>
<!--
Mandatory fields - System limits (Not visible in Composer)
-->
<
AlarmInputMax
Value
="
2
"
Note
="
Max Alarm Input value
" />
<
AlarmOutputMax
Value
="
0
"
Note
="
Max Alarm Output value
" />
<
VideoInputMax
Value
="
4
"
Note
="
Max Video Input value
" />
<
VideoOutputMax
Value
="
0
"
Note
="
Max Video Output value
" />
<!--
Custom Variable definition - System limits
-->
<variable Name=
"
PTZ
"
ScreenAttribute=
"
RW
"
Description=
"
PTZ control
"
DefaultValue=
"
1
"
MinValue=
""
MaxValue=
""
Note=
"
Enable PTZ control
" />
<variable Name=
"
PP
"
ScreenAttribute=
"
RW
"
Description=
"
Preset Position
"
DefaultValue=
"
1
"
MinValue=
""
MaxValue=
""
Note=
"
Enable preset control
" />
<
variable Name=
"
IP
"
ScreenAttribute=
"
RW
"
Description=
"
DVR Address
"
DefaultValue=
"
192.168.1.101
"
MinValue=
""
MaxValue=
""
Note=
"
IP address.
" />
<variable Name=
"
APP_WINCTRL_TITLE
"
ScreenAttribute=
"
H
"
Description=
"
Main Window application Title
"
DefaultValue=
"
Viewer
" MinValue="
0
"
MaxValue="
0
"
Note=
"
Window title used for detecting 3rd party main window
" />
</
property
>
</
properties
>
<
node ID
="
1000
"
TYPE
="
20
">
<
properties
>
<
property ID
="
CustomerText
">
<
item
VAL
="
Folder
" />
</
property
>
<
property ID
="
TechText
">
<
item
VAL
="
Video Inputs Folder
" />
</
property
>
</
properties
>
<
node ID
="
1001
"
TYPE
="
21
">
<
properties
>
<
property ID
="
CustomerText
">
<
item
VAL
="
Input 1
" />
</
property
>
<
property ID
="
TechText
">
See below an example
of resulting string.
Summary of Contents for MM8000
Page 23: ......