Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Special functions of trends

The following points won't be practiced in the application. We mention the possibilities of using the above described objects only for information purposes only.
 
PmaTrendGroup – ReadOnly:

We come back to the PmaTrendGroup object in the editor of Pma objects. Any PmaTrendGroup object can read and evaluate the data either from databases created by the PROMOTIC system or from databases created by any other system, by the 3rd party in the "read only" mode. This possibility can be configured by setting the option PmaTrendGroup > Trend > Read only (new records cannot be written).

 
Viewing as function f(x):

The PmgTrendViewer object can be used even as a common stand-alone viewer of 2-dimensional function f(x) (i.e. there needn't be presented only the process of the time on the x-axis).

This view type can be set by the PmgTrendViewer.TimeType property, then all methods of the tvPoints object take real values instead of time parameters and they return real values instead of time values, for example the tvPoints.AddPoints method in the vTimes parameter takes the real value array instead of the time array.

See also: Example for displaying mathematical functions by means of a trends viewer.

 
Editing trend points by mouse events:

By the PmgTrendViewer object it is possible, by clicking the mouse, to define a trend process (i.e. add new points or delete existing ones) or a graph of 2-dimensional function f(x) (according to setting the PmgTrendViewer.TimeType property), namely by definition in the script in the PmgTrendViewer.onMouseArea event. By the methods tvPoints.AddPoints, tvPoints.RemovePoints it is possible to place a new point on the position where the mouse was clicked, or to remove the point(s)from it, see the example in the onMouseArea event.

PROMOTIC 9.0.14 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