OTX Reference  
OpenTestSystem.Otx.Extensions.Quantities.Terms.GetDisplayValue Class Reference

Returns the value (Float) of a Quantity More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.Quantities.Terms.GetDisplayValue:
Inheritance graph

Public Attributes

QuantityTerm quantity
 Cardinality [1]
Numerical size (numeric quantity) of what the value should be determined. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Returns the value (Float) of a Quantity

The GetDisplayValue term returns the dimensionless Float value of a Quantity according to the Quantity's display unit. Compare the ToFloat term which, when applied to a Quantity, will result in the Quantity's value in normalized SI unit representation.

Syntax
FloatTerm = Quantities.GetDisplayValue(QuantityTerm quantity);
QuantityTerm quantity
Cardinality [1] Numerical size (numeric quantity) of what the value should be determined.
Definition: Quantities.cs:865
Examples
// Local Declarations
Quantities.Quantity Quantity1 = 12.44 [@Unit, "BL_DataLibraMIB.odx", "km/h"];
Float Float1;
// Flow
Float1 = Quantities.GetDisplayValue(Quantity1);

Member Data Documentation

◆ quantity

QuantityTerm OpenTestSystem.Otx.Extensions.Quantities.Terms.GetDisplayValue.quantity

Cardinality [1]
Numerical size (numeric quantity) of what the value should be determined.