L-VIS User Manual
295
LOYTEC
Version 6.2
LOYTEC electronics GmbH
Using the sub-menus
Export XML
and
Import XML
from the
File
menu, it is also
possible to read or write only parts of the project in XML format. The following parts may
be imported and exported separately:
Project:
As explained above, reads or writes an entire project.
Font Set:
Reads or writes the current set of user loaded fonts. This can be used to
save a standard font set in XML format and import it as a starting point when a
new project is started. If the font set is imported while there are already controls in
the project referencing user fonts, care should be taken that the changed font set is
suitable for the existing controls. User fonts are referenced by index number, so
that the changed font set may cause controls to be drawn in a font of different size
as before. Check the project for problem areas if such a switch is done.
Project Settings:
Reads or writes the current project settings, as configured in the
project settings dialog. This can also be used to store a default project setup in
XML format and import it when a new project is started.
Data Point Setup:
Reads or writes the data point configuration, as configured in
the data point selection and management dialog. Note that all controls and other
objects reference data points through their unique ID. If the data point
configuration is replaced while some of the old data points are used by objects in
the project, these references may be broken or point to wrong data points. This
function should therefore be used with care, for example if both a data point
configuration and suitable project pages are imported together.
Calendar Config:
Configuration data for a local calendar. Only available if the
project contains a local calendar point.
Scheduler Config:
Configuration data for all local scheduler units. Only available
if the project contains at least one local scheduler.
The main use of XML import and export is to enable external tools to automatically create
parts of a project or even a full project, based on XML templates prepared using the export
functions. Such a tool could for example browse a network or a database, pick out some
devices which should be visualized in an L-VIS project, select suitable templates from an
XML template database, create the required data point configuration to allow
communication with the desired devices and complete the templates by linking the data
point references to the automatically created data points. The resulting XML file could
represent an entire L-VIS project, which can be loaded into the configuration software and
written to the L-VIS device.
The complete XML schema specification for the individual parts of the configuration,
which is required to develop external tools, may be obtained from LOYTEC on request.
15.7 Format strings
This chapter describes the various types of format strings, as well as regular expressions,
which are used by the configuration software.
15.7.1 Number format strings
The format string used in text controls and non-localized numeric controls is equivalent to
the format strings used by the ANSI-C printf function. L-VIS will always use the given
format string to format exactly
one argument
, which will be a string, an integer, or a
double precision floating point number, depending on the type of control and its
configuration. Therefore, there should always be exactly
one conversion specifier
in an L-
VIS format string and its type needs to match the argument provided by the control. For