Unit - property of the PmVar object
Description:
Physical unit of the variable.
This property is accessible only for the variables of the object:
PmaData and
PmaTrendGroup.
Note:
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 object:
The value entered here is used as initialization value for the trend viewer (for the
PmgTrendViewer object). This value is entered in the following property:
tvTrend.Unit.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oData = pMe.Pm("/Data");
var sUnit = oData.Item(2).Unit;
Dim oData, sUnit
Set oData = pMe.Pm("/Data")
sUnit = oData.Item(2).Unit
History:
Pm9.00.10: The property can now be writen only once