Unit - property of the PmVar object
Physical unit of the variable.
This property is accessible only for the variables of the object: PmaData and PmaTrendGroup.
Property access for read only
. The value of this property is defined in the "Unit
" configurator of this object.
Although the property is read-only it is possible to enter initial value into it by script (if it si empty). After that it is not possible to modify the value (until the application is restarted).
Note for the PmaTrendGroup
The value entered here is used as initialization value for trend viewer (for the PmgTrendViewer object). The value is entered in the following property: tvTrend.Unit.
var oData = pMe.Pm("/Data");
var sUnit = oData.Item(2).Unit;
: The property can now be writen only once