Integrating a DVR
9
Building Technologies
048_DMS_DMS8000_Generic_DVR_Integration_Guide_MP4.40_A6V10331273_a_en.doc
Fire Safety & Security Products
06.2011
Types of variable parameters
In the invocation line, variable parameters can be inserted using the %%variable%% 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 Composer 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 …
– IF_PTZ(…) – If camera supports PTZ commands and PTZ control is selected
on the user interface toolbar, then …
– IF_N_PTZ(…) – If camera does not support PTZ commands or PTZ control is
not selected on the user interface toolbar, then …
– IF_LIVE (…) – If the software is displaying live video, then …