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