Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfigurations Current value trend

Creates the complex graphic item PmiCanvas configured as trend of current value.

This item renders a simple "trend" (time progression) of a value. The progression is rendered continuously, i.e. in a specific time a portion of the image is rendered according to the current value. It is not necessary to save the historical values (PmTrend object is not needed). So keep in mind that in such case all data is lost once the panel is closed.

 
This preconfiguration can be activated when creating a new graphic item and is included in the group: " / Trend, functions, chart".
 
This graphic item contains embedded PmiCanvas item named Dynamic. The item has the variable Item1NewVal of the double type that can be connected to the measured value by binding.
 
In the PmiCanvas graphic item, there are variables minX, maxX, minY, maxY, spaceX and spaceY. These variables define the scale range in both x and y axes and also the offset of axes from left and bottom edge.
 
Additional configuration variables are located at the beginning of context itself, or at the beginning of the user method. The following items can be set:
- colorScale color of segments and scale descriptions
- nMajY number of main segments on y axis
- nMinY number of secondary segments (between two main segments) on y axis
- nDescPer defines the quantity of displayed descriptors of main segments (0 = no, 1 = every main, 2 = every second main)
- nMajX number of main segments on x axis
- nMinX number of secondary segments (between two main segments) on x axis
- colorArea background color of the graph rendering area
- colorGrid grid color
- nGridPer defines quantity of displayed horizontal/vertical grid lines (0 = no, 1 = every main, 2 = every second main)
- nTextSize scale description text size
The parent item contains variable TimeRangeSec where the time range of X axis is defined (in seconds).
These configurators can be set before the preconfiguration is created:
Number of trendsNumber of values in trend
1. trend
Measured valueConnection to measured value
Range from minimum (y)Lower limit of the y axis
Range to maximum (y)Upper limit of the y axis
Graph line colorGraph line color
Chart typeChart type
0=hidden
1=linear
2=stairs
2. trend
Measured valueConnection to measured value
Range from minimum (y)Lower limit of the y axis
Range to maximum (y)Upper limit of the y axis
Graph line colorGraph line color
Chart typeChart type
0=hidden
1=linear
2=stairs
Time axis range (s)Range of time axis (x) in seconds.
10
15
20
30
60
120
300
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice