Integrating a DVR
9
Building Technologies
048_DMS_DMS8000_Generic_DVR_Integration_Guide_MP4.50_A6V10331273_a_en
Fire Safety & Security Products
06.2012
Parameters can be defined as fixed or variable text. For instance, a parameter
such as
-Cnn
that indicates the camera number (for example “–C12”) can include
the fixed prefix
-C
and a variable part that defines the actual video input number
(see VIDEOIN_NO below) according to the selection in the runtime software.
Types of variable parameters
In the invocation line, variable parameters can be inserted using the
%%vari-
able%%
syntax. Three types of fields are foreseen:
Custom Variables, defined by the user in the XML file, e.g.:
%%MYVAR%%
System Variables, automatically provided by the system based on runtime con-
ditions, e.g.:
%%VIDEOIN_NO%%
System Conditions, or “if-clauses”, determined by the system based on runtime
conditions, e.g.:
%%IF_PTZ(…)%%
Custom Variables
The
Custom Variables
are created for user-defined configuration in Composer, for
example (
editable IP address with a default and a help note
):
<
variable
Name
="IP"
ScreenAttribute
="RW"
Description
="IP Ad-
dress"
DefaultValue
="192.168.1.1"
MinValue
=""
MaxValue
=""
Note
=" Please enter the DVR IP address" />
Custom variables with
ScreenAttribute
=RW (Read/Write) can be edited in Com-
poser starting from the
DefaultValue
, within the limits defined by
MinValue
and
MaxValue
, and using
Description
and
Note
information as user help.
System Variables
The list of
System Variables
includes:
– VIDEOIN_NO – video input number (e.g. “1” or “112”)
– DATE_TIME – date and time (CTime structure: “%d/%m/%Y - %H:%M”)
See
http://msdn.microsoft.com/en-us/library/fe06s4ak(v=VS.71).aspx
.
(e.g.: “DATE_TIME”
“16/03/2011 – 13:52”)
– DATE_TIME[CustomFormatString] – customized date and time
See
http://msdn.microsoft.com/en-us/library/fe06s4ak(v=VS.71).aspx
.
(e.g.: “DATE_TIME[%m/%d/%Y - %H:%M]”
“03/16/2011 – 13:52”)
For all formats: in the event treatment, dates refer to the event’s timestamp,
whereas in the plant browser, the current date & time is used.
– PARENT_HND – parent handle window
– POS_X – screen position top left
– POS_Y – screen position top left
– SIZE_X – window size width
– SIZE_Y – window size height
System Variables names cannot be used for Custom Variables.
System Conditions
The list of valid
System Conditions
includes:
– IF_PB(…) – If Plant Browser is active, then …
– IF_ET(…) – If Event Treatment is active, then …
Summary of Contents for MM8000
Page 23: ......