Difference between revisions of "Extensions.Measure.GetMeasurementFloatValue"
Jump to navigation
Jump to search
(Created page with "Category:Measure == Classification == {{ClassificationActivity | GetMeasurementFloatValue | Gets the float value of a measurement | Term | Measure|OTX Measure extens...") |
|||
Line 3: | Line 3: | ||
{{ClassificationActivity | GetMeasurementFloatValue | Gets the float value of a measurement | [[Term]] | [[Measure|OTX Measure extension]] | [[Measurement related terms]] | [[InvalidMeasurementException]] | - }} | {{ClassificationActivity | GetMeasurementFloatValue | Gets the float value of 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;"> | ||
− | + | FloatTerm = Measure.GetMeasurementFloatValue(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;"> | ||
− | Float | + | package Measure.DeviceSignature TestDocument |
+ | { | ||
+ | DeviceServiceSignature Addition(in Integer a, in Integer b, out Measure.Measurement OutValue); | ||
+ | } | ||
+ | |||
+ | public procedure GetMeasurementFloatValue() | ||
+ | { | ||
+ | Measure.Measurement Return; | ||
+ | Float Float; | ||
+ | Float a = 12; | ||
+ | |||
+ | Measure.ExecuteDeviceService(TestDocument, Addition, {in a = 2, in b = 3, out OutValue = Return}, false, false); | ||
+ | Float = Measure.GetMeasurementFloatValue(Return); | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:11, 10 February 2015
Contents
Classification
Name | GetMeasurementFloatValue |
Short Description | Gets the float value of a measurement |
Class | Term |
Extension | OTX Measure extension |
Group | Measurement related terms |
Exceptions | InvalidMeasurementException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
FloatTerm = Measure.GetMeasurementFloatValue(Measurement);
Description
This term brings the float value of a measurement that is independent of a physical device information.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Float | The float value of a measurement. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Measurement | Measurement | Term | - | [1] | The measurement whose float value is acquired. |
OTL Examples
package Measure.DeviceSignature TestDocument
{
DeviceServiceSignature Addition(in Integer a, in Integer b, out Measure.Measurement OutValue);
}
public procedure GetMeasurementFloatValue()
{
Measure.Measurement Return;
Float Float;
Float a = 12;
Measure.ExecuteDeviceService(TestDocument, Addition, {in a = 2, in b = 3, out OutValue = Return}, false, false);
Float = Measure.GetMeasurementFloatValue(Return);
}
See also
GetMeasurementTimestamp
GetMeasurementStatus
GetMeasurementQuantity
IsValidMeasurement