Difference between revisions of "Extensions.Measure.GetMeasurementQuantity"
Jump to navigation
Jump to search
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:Measure]] | + | {{DISPLAYTITLE:'''GetMeasurementQuantity '''}}[[Category:Measure]] |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | GetMeasurementQuantity | Gets the measured | + | {{ClassificationActivity | GetMeasurementQuantity | Gets the measured quantity value from a measurement | [[Term]] | [[Extensions.Measure|OTX Measure extension]] | [[Extensions.Measure#Terms|Measurement related terms]] | [[Extensions.Measure.InvalidMeasurementException|InvalidMeasurementException]] | - }} |
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | QuantityTerm | + | QuantityTerm Measure.GetMeasurementQuantity(measurement); |
</syntaxhighlight> | </syntaxhighlight> | ||
== Description == | == Description == | ||
− | This term gets the measured '' | + | This term gets the measured ''quantity value'' from a measurement. |
− | {{TermReturnValue| [[Quantity]] | The | + | {{TermReturnValue| [[Extensions.Quantities.Quantity|Quantity]] | The quantity value of a measurement. }} |
== Properties == | == Properties == | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{ | + | {{TableRowPropertie2| Measurement | [[Extensions.Measure.Measurement|Measurement]] | [[Term]] | - | [1] | The '''measurement''' whose quantity value will be acquired.}} |
|} | |} | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | package Measure.DeviceSignature | + | /// Signatures |
+ | |||
+ | package Measure.DeviceSignature DeviceSignature1 | ||
{ | { | ||
− | + | Measure.DeviceServiceSignature Add(in Integer a, out Measure.Measurement Measurement); | |
} | } | ||
− | public procedure | + | /// Global Declarations |
+ | |||
+ | public procedure main() | ||
{ | { | ||
− | + | /// Local Declarations | |
− | + | ||
− | + | Measure.Measurement Measurement1; | |
+ | Integer a1 = 10; | ||
+ | Quantities.Quantity Quantity1; | ||
+ | |||
+ | /// Flow | ||
− | + | Measure.ExecuteDeviceService(DeviceSignature1, Add, {a = a1, Measurement = Measurement1}, false, false); | |
− | + | Quantity1 = Measure.GetMeasurementQuantity(Measurement1); | |
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See also == | == See also == | ||
− | [[GetMeasurementTimestamp]] <br/> | + | [[Extensions.Measure.GetMeasurementTimestamp|GetMeasurementTimestamp]] <br/> |
− | [[GetMeasurementStatus]] <br/> | + | [[Extensions.Measure.GetMeasurementStatus|GetMeasurementStatus]] <br/> |
− | [[GetMeasurementFloatValue]] <br/> | + | [[Extensions.Measure.GetMeasurementFloatValue|GetMeasurementFloatValue]] <br/> |
− | [[IsValidMeasurement]] | + | [[Extensions.Measure.IsValidMeasurement|IsValidMeasurement]] |
Latest revision as of 02:51, 13 September 2019
Contents
Classification
Name | GetMeasurementQuantity |
Short Description | Gets the measured quantity value from a measurement |
Class | Term |
Extension | OTX Measure extension |
Group | Measurement related terms |
Exceptions | InvalidMeasurementException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
QuantityTerm Measure.GetMeasurementQuantity(measurement);
Description
This term gets the measured quantity value from a measurement.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Quantity | The quantity value of a measurement. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Measurement | Measurement | Term | - | [1] | The measurement whose quantity value will be acquired. |
OTL Examples
/// Signatures
package Measure.DeviceSignature DeviceSignature1
{
Measure.DeviceServiceSignature Add(in Integer a, out Measure.Measurement Measurement);
}
/// Global Declarations
public procedure main()
{
/// Local Declarations
Measure.Measurement Measurement1;
Integer a1 = 10;
Quantities.Quantity Quantity1;
/// Flow
Measure.ExecuteDeviceService(DeviceSignature1, Add, {a = a1, Measurement = Measurement1}, false, false);
Quantity1 = Measure.GetMeasurementQuantity(Measurement1);
}
See also
GetMeasurementTimestamp
GetMeasurementStatus
GetMeasurementFloatValue
IsValidMeasurement