Event HMI Classes The TcEventViewer provides just one class to the outside: TcEventView Client Server The TcEventLogger provides a client server architecture. The TcEventLogger is the server that contains all informations about active an logged events. The TcEventViewer is a client of the TcEventLogger. When the EventViewer is started it first gets the list of active or logged events, displays them and synchronizes the list by the events fired to the ITcEventLoggEvents [ } 144] interface. The TcEventViewer can be used in 3 different Client Server scenarios. 1. One TcEventViewer displays the events of one TcEventLogger.
In this scenario the HMI with the TcEventViewer and the TcEventLogger are located on the same machine. 2. One TcEventViewer displays the alarms of several TcEventLoggers located on several machines. The remote connection is done by using *DCOM. 3. Several TcEventViewers display the events of one TcEventLogger. The remote connection is es- tabished using *DCOM. *DCOM DCOM has to be configured correctly on the client and server machine by using dcomcnfg.exe. For more information about DCOM configuration see MSDN library. Due to DCOM has very long timeouts DCOM should only be used on a very stable network connection.
Another problem is that the EventLogger is not multithreaded; the TcEventViewer may block the TcEventLogger. Also see about this 2 TcEventLog [ } 128] 7.1 Classes 7.1.1 TcEventView The main class of the TcEventViewer. Provides interfaces to the COM Client like the HMI. This class displays the alarm in a list view. The class can be controlled through the following interfaces. 7.2 Interfaces 7.2.1 ITcEventView The interface ITcEventView is used to control the apperance of the TcEventVierwer ActiveX control. The interface derives from IDispatch so that it can be used by all languages that support COM automation interfaces. IDispatch itself derives from IUnknown. TcEventLogger 68 Version:
1.1 Interface Description ITcEventView [} 68] Main interface of the TcEventViewer to COM clients like the HMI. Main features are to control the appearances of the ActiveX control. ITcEventLogEvents [} 144] The Event interface provided to the TcEventLogger. When the TcEventViewer is started it gets a list of logged or active events by calling the methods ITcEventLog [} 129]::EnumActiveEvents [} 132] or ITcEventLog [} 129]::EnumLoggedEvents [} 133]. After that the TcEventLogger will notify the TcEventViewer through ITcEventLogEvents interface. This notification is used to keep the list of displayed events in sync with the server.