Difference between revisions of "Extensions.EventPlus.DeepMonitorChangeEventSource"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
EventHandling.EventSource EventSource1; | EventHandling.EventSource EventSource1; | ||
EventHandling.Event Event1; | EventHandling.Event Event1; | ||
− | ByteField ByteField1; | + | ByteField ByteField1 = &012345; |
/// Flow | /// Flow | ||
Line 34: | Line 34: | ||
lane | lane | ||
{ | { | ||
− | ByteField1 | + | ShiftRight(ByteField1, 2); |
} | } | ||
lane | lane |
Revision as of 10:47, 26 September 2018
Contents
Classification
Name | DeepMonitorChangeEventSource |
Short Description | Create an event source for change event |
Class | Term |
Extension | OTX EventPlus extension |
Group | Event source related terms |
Exceptions | - |
Checker Rules | Event_Chk002 |
Standard Compliant | Yes |
OTL Syntax
EventSourceTerm = EventPlus.DeepMonitorChangeEventSource(Variable);
Description
The OTX MonitorChangeEventSource is similar to event:MonitorChangeEventSource, but with additional deep change-monitoring for variables of complex datatypes like List, Map and ByteField. The deep change-monitoring shall detect changing, adding and removing of items in Lists, Maps and ByteFields in any depth. For variables of simple datatypes, this term shall behave like event:MonitorChangeEventSource. Because DeepMonitorChangeEventSource is derived from event:MonitorChangeEventSource, the term event:IsMonitorChangeEvent shall return TRUE when the Event originates from a DeepMonitorChangeEventSource.
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 | The EventSource, the changes in the value of a variable monitored. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Variable | - | Variable | - | [1..1] | The variable which has to be monitored. |
OTL Examples
EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
ByteField ByteField1 = &012345;
/// Flow
EventSource1 = EventPlus.DeepMonitorChangeEventSource(ByteField1);
parallel
{
lane
{
ShiftRight(ByteField1, 2);
}
lane
{
EventHandling.WaitForEvent({EventSource1}, Event1);
}
}