Difference between revisions of "Extensions.Measure.DeviceEventSource"
Jump to navigation
Jump to search
(Created page with "Category:Measure == Classification == {{ClassificationActivity | DeviceEventSource | Measuring device used as a source for events | Term | Measure|OTX Measure extens...") |
|||
Line 3: | Line 3: | ||
{{ClassificationActivity | DeviceEventSource | Measuring device used as a source for events | [[Term]] | [[Measure|OTX Measure extension]] | [[Event related terms]] | - | [[MeasureChk001|Measure_Chk001]] }} | {{ClassificationActivity | DeviceEventSource | Measuring device used as a source for events | [[Term]] | [[Measure|OTX Measure extension]] | [[Event related terms]] | - | [[MeasureChk001|Measure_Chk001]] }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | EventSourceTerm = Measure.DeviceEventSource(Device); | |
</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;"> | ||
− | EventSource | + | package Measure.DeviceSignature TestDocument |
+ | { | ||
+ | DeviceServiceSignature Addition(in Integer a, in Integer b, out Measure.Measurement OutValue); | ||
+ | } | ||
+ | |||
+ | public procedure DeviceEventSource() | ||
+ | { | ||
+ | EventHandling.EventSource EventSource; | ||
+ | |||
+ | EventSource = Measure.DeviceEventSource(TestDocument); | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:27, 10 February 2015
Contents
Classification
Name | DeviceEventSource |
Short Description | Measuring device used as a source for events |
Class | Term |
Extension | OTX Measure extension |
Group | Event related terms |
Exceptions | - |
Checker Rules | Measure_Chk001 |
Standard Compliant | Yes |
OTL Syntax
EventSourceTerm = Measure.DeviceEventSource(Device);
Description
The DeviceEventSource term is a link to a DeviceSignature, a device that is made to an event source. This term provides a sequence of OTX using a measuring as a source for the events related to the OTX EventHandling library. A measurement will trigger an event when a new output parameters from one of its services has arrived.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
EventSource | EventSource from a measurement. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Device | - | OtxLink | - | [1] | The attribute represents a reference that refers to a device that is monitored. |
OTL Examples
package Measure.DeviceSignature TestDocument
{
DeviceServiceSignature Addition(in Integer a, in Integer b, out Measure.Measurement OutValue);
}
public procedure DeviceEventSource()
{
EventHandling.EventSource EventSource;
EventSource = Measure.DeviceEventSource(TestDocument);
}