event handling library
The event library provides OTX to a system for the detailed control of events to interact with the outside world. We distinguish between events that are outside of the diagnostic sequence - for example, click the user or a timer has expired - and that occur within the process - such as changing a variable. The event handling in OTX is always in sync and never asynchronously. This means that a mechanism is used, which waits for the occurrence of these events and sequentially processed.
In the event library the following elements are provided:
-
event source
Production of events
-
Event
generated by event source and encapsulates all the information about the event.
-
WaitForEvent
Synchronization point - a current diagnosis sequence will stop and wait for specific events.
| close EventSourceCreationData | Stop the event processing of all specified event sources | |
| Event | Event that was generated by an event source | |
| event source | Event Source, which generates events | |
| Event_Chk001 | Incorrect data type (ThresholdExceededEventSource) | |
| Event_Chk002 | Incorrect data type (MonitorChangedEvent) | |
| GetNewValue | Den Wert zurückgeben, der im gegebenen Ereignis gespeichert wurde | |
| IsMonitorChangeEvent | Prüft ob ein Ereignis aus MonitorChangeEventSource oder ThresholdExceededEventSource stammt | |
| IsTimerExpiredEvent | Prüft ob ein Ereignis aus TimerExpiredEventSource stammt | |
| IsTresholdExceededEvent | Prüft ob ein Ereignis aus ThresholdExceededEventSource stammt | |
| MonitorChangeEventSource | Erstellung einer EventSource für Change-Ereignis | |
| ThresholdExceededEventSource | Erstellung einer EventSource für Änderungen außerhalb Bereichs | |
| TimerExpiredEventSource | Erstellung einer EventSource für Zeitablauf | |
| WaitForEvent | Wait, is triggered by an event and then continues the execution |