Unit - property of the ExtTrend object
Description:
Physical unit of the variable.
Note:
Property access
for read and write.
The preset value of this property is defined in the "
Unit" configurator of this object.
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.
Example1:
Examples of obtaining this property in the script.
JavaScriptVBScriptSelect and copy to clipboard
sUnit = pMe.Pm("/data/#vars/Temperature/#ext/trend").Unit;
// or
sUnit = pMe.Pm("/data/#vars/Temperature").Extension("trend").Unit;
// or
sUnit = pMe.Pm("/data").Item("Temperature").Extension("trend").Unit;
sUnit = pMe.Pm("/data/#vars/Temperature/#ext/trend").Unit
' or
sUnit = pMe.Pm("/data/#vars/Temperature").Extension("trend").Unit
' or
sUnit = pMe.Pm("/data").Item("Temperature").Extension("trend").Unit
Example2:
The example of obtaining this property by
Macro expression from another data extension via
pVar variable.