Difference between revisions of "Extensions.Measure.GetMeasurementQuantity"
Jump to navigation
Jump to search
(Created page with "Category:Measure == Classification == {{ClassificationActivity | GetMeasurementQuantity | Gets the measured NumericQuantity from a measurement | Term | Measure|OTX M...") |
|||
Line 3: | Line 3: | ||
{{ClassificationActivity | GetMeasurementQuantity | Gets the measured NumericQuantity from a measurement | [[Term]] | [[Measure|OTX Measure extension]] | [[Measurement related terms]] | [[InvalidMeasurementException]] | - }} | {{ClassificationActivity | GetMeasurementQuantity | Gets the measured NumericQuantity from a measurement | [[Term]] | [[Measure|OTX Measure extension]] | [[Measurement related terms]] | [[InvalidMeasurementException]] | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | QuantityTerm = Measure.GetMeasurementQuantity(Measurement); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 19: | Line 19: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Quantity | + | package Measure.DeviceSignature TestDocument |
+ | { | ||
+ | DeviceServiceSignature Addition(in Integer a, in Integer b, out Measure.Measurement OutValue); | ||
+ | } | ||
+ | |||
+ | public procedure GetMeasurementQuantity() | ||
+ | { | ||
+ | Measure.Measurement Return; | ||
+ | Float a = 12; | ||
+ | Quantities.Quantity Quantity; | ||
+ | |||
+ | Measure.ExecuteDeviceService(TestDocument, Addition, {in a = 2, in b = 3, out OutValue = Return}, false, false); | ||
+ | Quantity = Measure.GetMeasurementQuantity(Return); | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:08, 10 February 2015
Contents
Classification
Name | GetMeasurementQuantity |
Short Description | Gets the measured NumericQuantity 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 NumericQuantity 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 NumericQuantity of a measurement. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Measurement | Measurement | Term | - | [1] | The measurement whose quantity value is acquired. |
OTL Examples
package Measure.DeviceSignature TestDocument
{
DeviceServiceSignature Addition(in Integer a, in Integer b, out Measure.Measurement OutValue);
}
public procedure GetMeasurementQuantity()
{
Measure.Measurement Return;
Float a = 12;
Quantities.Quantity Quantity;
Measure.ExecuteDeviceService(TestDocument, Addition, {in a = 2, in b = 3, out OutValue = Return}, false, false);
Quantity = Measure.GetMeasurementQuantity(Return);
}
See also
GetMeasurementTimestamp
GetMeasurementStatus
GetMeasurementFloatValue
IsValidMeasurement