Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfiguration "Two value bars (PmgCanvas)"

Creates object configured as bar displaying value of variable.
 
The created compound object contains two PmgCanvas subobjects. The outer Pmg object renders the scale and uses variables textSize, max, min, space and posAxis. Variable textSize defines the font size of description text. Variable min and max reprezent scale range. Variable space defines margin of scale edge (and bar) from Pmg object edges. Variable posAxis defines the margin of scale from the bar.

Additional parameters of scale rendering can be modified at the beginning of DrawScale method script.

 
The inner object Bar uses the variable val. This variable controls the movement of the bar and can be connected with the measured value by data binding.

This Pmg object can use single-color bar or bar with gradient. Colors are defined at the beginning of DrawBar method script.

These configurators can be set before the preconfiguration is created:
Object nameName (identifier) of the Pmg object. It is used to obtain the Pmg object by the PmgObject.Items method.

This configurator sets the initial value of the property Name.

This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.

Measured valueConnection to measured value0
Measured valueConnection to measured value0
Range from minimumStart of range
Range to maximumEnd of range
Bar colorBar color
Bar colorBar color

History:
Pm8.03.13: Two value bars
PROMOTIC 9.0.7 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice