The trends configuration file
is a file on the disk with the extension tg
) in which the configuration of the trends viewer
is stored. It goes about the text file in the XML syntax that can be edited by any ASCII
, etc.). The content of the file forms a list of variables (with addresses to the specific trend servers) that have to be viewed in the trends viewer (the viewer can read this file and display trends of variables). Each variable can contain, except the address of the server, even other data that determine their appearance (line color, line width, fill, ...).
The file is created, for example, by calling the TrendsView.SaveCfg
method of the trends viewer. Such created file can be read back into the viewer anytime by means of the TrendsView.LoadCfg
method. It can also, for example, be modified in the ASCII
editor, add or remove trends. By copying and editing it is possible to create new configuration files, in each of them to associate trends of variables that have to be viewed as a whole and then to view (by calling the LoadCfg
method or pressing the Load CFG
button) individual configuration files alternatively by the trends viewer.
If the trend server offers its data into the Internet, then the preset configuration files can be copied into the folder defined in the configurator PmRoot > Trends > Path to configuration groups
. For viewing data on the server
, HTML pages supplied with the PROMOTIC system in the Web folder can be used in this case. These can be called, for example, on any computer in the network by entering the address http://computer
, where computer
is the name of the computer, followed by selecting the trends component
from all offered component. Except the selection of individual variables it is possible to select from the list of configuration files on the preset HTML pages (if any pages were found on the above mentioned address).
In the configuration file for tvTrend
object (located in the section beginning with <trend id="...
) it is possible to assign value $default
for name, unit, color, valuemin, valuemax
attributes (in the file see for example <name>$default</name>
). Assigning the $default
value means that if such configuration file is loaded into the trend viewer the corresponding item will obtain the value from the server (for example for the <name>$default</name>
item, the trend name will be transferred from the server (from the PmTrend
object) set in the name for displaying