Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Unit - property of object ExtSubVar

Description:
Physical unit of the variable This property is accessible only for the variables of the object: PmaData and PmaTrendGroup.
Syntax:
String Unit
Calling:
d = oData.Item(id).Extension("sv").Unit
Note:
Property access for read only. The value of this property is defined in the "Unit" configurator of this object.
Example1:
Examples of obtaining this property in script.
JavaScriptVBScriptSelect and copy to clipboard

value = pMe.Pm("/data/#vars/Temperature/#ext/sv").Unit;

//or
value = pMe.Pm("/data/#vars/Temperature").Extension("sv").Unit;

//or
value = pMe.Pm("/data").Item("Temperature").Extension("sv").Unit;
Example2:
The example of obtaining this property by Macro expression from another data extension via pDE variable.

History:
Pm8.03.11: Created
PROMOTIC 9.0.6 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice