Classification
OTL Syntax
UnitTerm = Quantities.GetBaseUnit(QuantityTerm);
Description
The GetDisplayUnitName term return the base unit of a Quantity value, according to its physical dimension (e.g. "m", "m/s","s"etc.).
Return Value
The Term returns the value, see table below.
|
|
In OTX, Terms are categorized according to its return data type!
|
Data Type |
Description
|
Unit |
The base unit of a Quantity value
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
Quantity |
Quantity |
Term |
- |
[1] |
Represents the Quantity from which the base unit should be extracted.
|
OTL Examples
Quantities.Quantity Quantity1 = 0 [@Unit, "ODX_RS_UNIT_LIB.odx", "%/ms"];
Quantities.Unit Unit1;
Unit1 = Quantities.GetBaseUnit(Quantity1);
See also
CreateQuantity
GetDisplayValue
GetDisplayUnit