Promotic

Unit - property of the tvTrend object

Description:
Unit of the trend variable.
Syntax:
String Unit
Note:
Property access for read and write. The default value of this property is defined in the "tvTrend > Basic settings > Unit" configurator of this object.
 
This property is also functional in Web panels.
 
If the tvTrend object is connected to the trends server (e.g. by means of calling the Connect method), then it can be set the property to the value of "$default". In this case the value of the property is read from the PmaTrendGroup object from the "Unit" configurator.
See also:
- tvTrend.ID (property)
- tvTrend.Name (property)
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends(0);
var sUnit = oTrend.Unit;
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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