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