Classification
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);
}
See also
IsDeviceEvent
GetDeviceServiceNameFromEvent