Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Unit - property of object ExtTrend

Description:
Physical unit of the variable..
Syntax:
Unit As String
Calling:
d = oData.Item(2).Unit
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 PmTrend object:

The value entered here is used as initialization value for trend viewer (for TrendsView object). The value is entered in the following property: tvTrend.Unit.

Example1:
Examples of obtaining this property in script.
value = pMe.Pm("/data/#vars/Temperature/#ext/trend").Unit
or
value = pMe.Pm("/data/#vars/Temperature").Extension("trend").Unit
or
value = pMe.Pm("/data").Item("Temperature").Extension("trend").Unit
Example2:
The example of obtaining this property by Macro expression from another data extension via pDE variable.
$.expr("pDE.Var.Extension('trend').Unit")
PROMOTIC 8.3.23 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