Preconfiguration "Meter"
Creates the
PmgCanvas object configured as meter.
This preconfiguration can be activated when
creating a new Pmg object.
This preconfiguration is included in the
"/ Meter" group.
This object contains embedded
PmgCanvas object named "
Dynamic". It controls the movement of the meter pointer by using the variable named "
val". It is possible to connect it to the measured value by
data binding.
In the parent
PmgCanvas object there are
variables min and
max that specify the value range of the meter. Then the variables
title,
unit for title and unit and
fontColor that sets the text color. The last variable is
technolLimit that can be used for setting the color of the rendered data progression based on defined limit. The number of limits is not limited and can be set ascending (from min. to max.) as a pair of values separated by semicolon that define
the starting value of validituy and corresponding
color value for displaying. Example
0;red;40;yellow;80;green;120;yellow;150;red
These configurators can be set before the preconfiguration is created:
The name of created object | Name (identifier) of the Pmg object. It is used for obtaining the Pmg object by the PmgObject.Items method.
This configurator sets the initial value of the Name property.
The maximum name length is 30 characters.
This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and first character must not be a number. |
Title | |
Measured value | Connection to measured value |
Range from minimum | Start of the meter range |
Range to maximum | End of the meter range |
Unit | |
Technological limits indicated by colors | Example: 0;red;40;yellow;80;green;120;yellow;150;red (0-40 red, 40-80 yellow, 80-120 green, 150-max red)
or: 0;#00ff00;60;#ffff00;80;#ff0000 (0-60 green, 60-80 yellow, 80-max red). |
---|