Promotic
WikipediaLinkedInYoutubeTwitterFacebook

TimeZoomMinForCompress - property of object TrendsView

Description:
Minimum range (length) for setting the range of the time axis of the viewer for displaying calculated values.
Syntax:
TimeZoomMinForCompress As Variant
Calling:
oTView.TimeZoomMinForCompress = n
Values:
number value - The length is set as a real number that means the number of days (e.g. 0.5 means a half day). The value -1 means that the calculation is not done, the trend server always returns all points, but PointsMaxVisibleCount as the maximum.
string value - The time span can be set in text form. In this case it is represented by a real number followed by the the time unit identifier (sec,min,hour,day). Example: "1.5sec", "1min30sec".
Note:
Property access for read and write. The preset value of this property is defined in the "TimeZoomMinForCompress" configurator of this object. It is used only if the graph mode is set. When reading from the property, the numeric value is always returned. Initial value is set to "90day".

If the current range of the time axis (TimeMax - TimeMin) exceeds the value TimeZoomMinForCompress and the number of points stored by the trend server (by the PmTrend object) exceeds the value PointsMaxVisibleCount in this range, then the trend server provides the evaluation of values, and only the PointsMaxVisibleCount points are returned to the viewer calculated according to CompressType. The trend server creates the data in the response to the query as follows: The range of the time axis is divided into the same time interval with the length (TimeMax - TimeMin)/PointsMaxVisibleCount and in each such interval a new point is calculated by the CompressType method and the set of such calculated points is returned to the viewer.

Example1:
oTView.TimeZoomMinForCompress = 1/24
Example2:
oTView.TimeZoomMinForCompress = "1.5hour"
Example3:
oTView.TimeZoomMinForCompress = "1hour30min"
PROMOTIC 8.3.21 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