Promotic

Preconfiguration "Wind direction chart (compass-card)"

Creates the PmgCanvas object configured as wind direction chart.

This preconfiguration can be activated when creating a new Pmg object and is included in the group: "/ Chart, functions".

This object contains embedded PmgCanvas object named "Dynamic". The item has the variable values of the String type containing values separated by semicolon. It is possible to connect it to the measured value of the same data structure by data binding. The variables of the parent object are accessible in the onDraw event using the pEvent.GetParentVar().

In order to draw the chart correctly the average values of wind strenght in corresponding times are stored in values variable. These are 8 or 16 values separated by semicolon where the first value is north and further directions follow clockwise.

Additional configuration variables are located at the beginning of context itself, or at the beginning of designer's method. The following items can be set:
nScaleCount - The number of scale rasters
nFontSize - Descriptor font size
colorScale - Scale circle(s) color
colorText - Descriptor color
sColorLine - Chart line color
sColorFill - Chart area color
These configurators can be set before the preconfiguration is created:
The name of created objectName (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 the first character must not be a number.
Range from minimumStart of the meter range
Range to maximumEnd of the meter range
Direction measurement precisionDescription of directions.
8 directions - north, northeast, east, ..
16 directions - north, north northeast, northeast, ..
Value of the sTitle variable on the "Draw" tab of the "DrawScale" method.
to 8 directions
to 16 directions
ValuesBase values (values)
Data emulation in control variable bindingEmulated data will be generated in the control variable

History:
Pm8.03.06: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.