Difference between revisions of "Extensions.Measure.GetMeasurementTimestamp"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:'''GetMeasurementTimestamp '''}}[[Category:Measure]] | {{DISPLAYTITLE:'''GetMeasurementTimestamp '''}}[[Category:Measure]] | ||
== Classification == | == Classification == | ||
| − | {{ClassificationActivity | GetMeasurementTimestamp | Gets the timestamp of a measurement | [[Term]] | [[Extensions.Measure|OTX Measure extension]] | [[Measurement related terms]] | [[ | + | {{ClassificationActivity | GetMeasurementTimestamp | Gets the timestamp of a measurement | [[Term]] | [[Extensions.Measure|OTX Measure extension]] | [[Measurement related terms]] | [[Core.Actions.Throw.Exception.InvalidMeasurementException|InvalidMeasurementException]] | - }} |
== OTL Syntax == | == OTL Syntax == | ||
Revision as of 06:57, 16 February 2016
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