3 Theoretical backgrounds
3.3 Pesticides
3.3.1 Organochlorine pesticides
4 EVENT EVENT LOGGING LOGGING APPLICATIOAPPLICATIONN
The following is based on version 1.6 of the Event Logging application.
The following is based on version 1.6 of the Event Logging application.
A
A Windows aWindows application runs pplication runs on on the the HMI HMI processprocessor or for for sequensequentially tially logging and logging and time time stampingstamping PMS. This application creates a daily log file for analysis as required and is independent of the PMS. This application creates a daily log file for analysis as required and is independent of the HMI software
HMI software
4.1 Introduction
4.1 Introduction
The event logger has the following features:
The event logger has the following features:
•
• A graphical Windows based front-end.A graphical Windows based front-end.
•
• Three types of PRISMIC event are displayed by tThree types of PRISMIC event are displayed by t he logger - digital input changeshe logger - digital input changes, digital, digital output changes and text messages.
output changes and text messages.
•
• Events are displayed as they occur.Events are displayed as they occur.
•
• Previous logs can be viewed from the logger.Previous logs can be viewed from the logger.
•
• Events can be filtered by type and/or by register number.Events can be filtered by type and/or by register number.
•
• Events can be sorted.Events can be sorted.
•
• The logger can run as a standalone application or can run as a server - broadcastingThe logger can run as a standalone application or can run as a server - broadcasting events over a network, or can run as a client - receiving events over a network.
events over a network, or can run as a client - receiving events over a network.
•
• The logger can be set to be always on top of other windows - the logger is also fullyThe logger can be set to be always on top of other windows - the logger is also fully sizeable, and scrollable - allowing it to be flexibly positioned.
sizeable, and scrollable - allowing it to be flexibly positioned.
•
• The contents of a log can be exported to a CSV file.The contents of a log can be exported to a CSV file.
The rest of this document explains these features in more detail The rest of this document explains these features in more detail 4.2
4.2 Online/Offline Online/Offline OptionOption
Click on the ‘Online’ checkbox to toggle between online and offline mode.
Click on the ‘Online’ checkbox to toggle between online and offline mode.
When the application is online - events will be displayed as and when they occur. Events cannot When the application is online - events will be displayed as and when they occur. Events cannot be sorted or exported when the application is online. Historical logs cannot be viewed when the be sorted or exported when the application is online. Historical logs cannot be viewed when the application is online. All event filtering is active whether the application is online or offline.
application is online. All event filtering is active whether the application is online or offline.
When the application is offline, you can select to view or delete historical logs. A new log is When the application is offline, you can select to view or delete historical logs. A new log is created each time the event logger is started, or when the PC clock passes midnight. Unlike the created each time the event logger is started, or when the PC clock passes midnight. Unlike the online log, a historical log can be sorted or exported. There is an entry titled ‘[Online snapshot]’
online log, a historical log can be sorted or exported. There is an entry titled ‘[Online snapshot]’
in the historical log selection list. Select this to view a copy of the online log just before the log in the historical log selection list. Select this to view a copy of the online log just before the log was taken offline. The online snapshot can be sorted or exported in the same manner as other was taken offline. The online snapshot can be sorted or exported in the same manner as other historical logs.
historical logs.
4.3 Sorting
4.3 Sorting
The entries in a log can be sorted by clicking on the various column headings. Click once on a The entries in a log can be sorted by clicking on the various column headings. Click once on a heading to sort the entries in an
heading to sort the entries in an ascending orderascending order. Cli. Click again to sort tck again to sort t he entries in a he entries in a descendingdescending order. To sort the log entries using more than one column, click on the ‘Advanced Sort’ button order. To sort the log entries using more than one column, click on the ‘Advanced Sort’ button -and then select the columns to sort by. For example, if you wanted to view log entries sorted and then select the columns to sort by. For example, if you wanted to view log entries sorted primarily by register, and then by date stamp for entries with the same register number - select primarily by register, and then by date stamp for entries with the same register number - select Register in the top selection box, select ‘event time stamp’ in the second selection box - then Register in the top selection box, select ‘event time stamp’ in the second selection box - then click button ‘Do Sort’.
click button ‘Do Sort’.
Sorting is only available when the logger is offline - although an online snapshot can be sorted.
Sorting is only available when the logger is offline - although an online snapshot can be sorted.
4.4 Filtering
4.4 Filtering
Event log entries can be filtered to exclude unwanted log entries. The filtering works whether or Event log entries can be filtered to exclude unwanted log entries. The filtering works whether or not the log is online or offline. To select filter options, click on button ‘Select Event Log Filters’.
not the log is online or offline. To select filter options, click on button ‘Select Event Log Filters’.
Records can be filtered by type, and/or by register range. For example, to filter out all text Records can be filtered by type, and/or by register range. For example, to filter out all text messages, and all event log messages relating to register 100 and registers 110 to 120 do the messages, and all event log messages relating to register 100 and registers 110 to 120 do the following:
following:
•
• Untick the ‘Include text mUntick the ‘Include text messagessages’ checkbox.es’ checkbox.
•
• Enter 100 in the leftmost edit box and click add.Enter 100 in the leftmost edit box and click add.
•
• Enter 110 in the leftmost edit box, and 120 in the rightmost edit box and click add.Enter 110 in the leftmost edit box, and 120 in the rightmost edit box and click add.
•
• Click the ‘Do Click the ‘Do Filter’ button.Filter’ button.
This will immediately filter the list of log entries. If a different list of log entries is selected - the This will immediately filter the list of log entries. If a different list of log entries is selected - the filter acts on these as well. The filtering information is saved between log sessions - so if the filter acts on these as well. The filtering information is saved between log sessions - so if the event logger is restarted - the filters from the previous session will still be in force.
event logger is restarted - the filters from the previous session will still be in force.
Notes:
Notes:
1)
1) You can You can filtfilter er unrecognised log unrecognised log messages. These are messages. These are messages that messages that cannot be cannot be recognisedrecognised as text, or digital input/output events due to some corruption.
as text, or digital input/output events due to some corruption.
2)
2) The filtering The filtering process dprocess does not does not discard the filtered log iscard the filtered log entries - if all entries - if all filtering is turnefiltering is turned off - alld off - all entries will reappear in the list.
entries will reappear in the list.
4.5 Exporting
4.5 Exporting
The content of the log list can be exported to a comma separated variable (csv) file. To do this, The content of the log list can be exported to a comma separated variable (csv) file. To do this, click the ‘export’ button - and select a file to store the export file in. This file can be read by most click the ‘export’ button - and select a file to store the export file in. This file can be read by most spreadsheet packages. The exported file also contains details of the filters that were in effect spreadsheet packages. The exported file also contains details of the filters that were in effect when the log was exported. You cannot export when the log is online, although you can take the when the log was exported. You cannot export when the log is online, although you can take the application offline and export the online snapshot.
application offline and export the online snapshot.
4.6
4.6 View View optionsoptions
Click on the ‘always on top’ check box - to position the event logger window on top of all other Click on the ‘always on top’ check box - to position the event logger window on top of all other windows. The event logger is fully sizeable and scrollable. The view options can be used to application can run in one of 3 modes:
application can run in one of 3 modes:
1) receives and displays the events that it broadcast. For this reason, the event logger will not receives and displays the events that it broadcast. For this reason, the event logger will not work in server mode if it is not networked - in this case use Standalone mode.
work in server mode if it is not networked - in this case use Standalone mode.
3)3) Client ModeClient Mode: The application receives events broadcast across a network from an event: The application receives events broadcast across a network from an event logger in server mode. The event logger locates the server using the server connection logger in server mode. The event logger locates the server using the server connection string as specified in the settings dialog. The
string as specified in the settings dialog. The application has beapplication has been tested as a en tested as a client acrossclient across a network - the connection string used in this case is the computer name. In theory, the a network - the connection string used in this case is the computer name. In theory, the event logger could connect across the internet. The logs are saved to files exclusively on event logger could connect across the internet. The logs are saved to files exclusively on the server. To be able to view these logs in the historical file list from a client application, the server. To be able to view these logs in the historical file list from a client application, you need to specify the server event log directory in the settings dialog box. If this is not you need to specify the server event log directory in the settings dialog box. If this is not specified, you will not be able to view historical logs from the client application. It may be the specified, you will not be able to view historical logs from the client application. It may be the case that the server event log directory is not visible from the client - hence specifying this case that the server event log directory is not visible from the client - hence specifying this path is optional.
path is optional.
Changes to settings do not take effect until the application is restarted.
Changes to settings do not take effect until the application is restarted.
4.8
4.8 ConfiguratioConfiguration n InformationInformation
The application reads configuration information from the directory specified by registry entry The application reads configuration information from the directory specified by registry entry
‘HKEY_LOCAL_MACHINES\SOFTWARE\Brush Electrical Machines Ltd.\Config Path. The
‘HKEY_LOCAL_MACHINES\SOFTWARE\Brush Electrical Machines Ltd.\Config Path. The PRISMIC HMI also gets its configuration information from this directory. This information PRISMIC HMI also gets its configuration information from this directory. This information includes serial port settings and digital register texts. The event logs are stored in directory
1) If nothing If nothing appears appears in the in the log - log - check the check the following:following:
Are the filters t
Are the filters t hat you have defined filtering out all log entries?hat you have defined filtering out all log entries?
•
• Is the application running in server mode on a non-networked PC?Is the application running in server mode on a non-networked PC?
•
• Is the application running in client mode without a running server?Is the application running in client mode without a running server?
•
• Is the application running in client mode with an incorrect server connection string?Is the application running in client mode with an incorrect server connection string?
2)
2) If nothing If nothing appears appears in the in the historical log historical log selection list, cheselection list, check the ck the following:following:
•
• Is the application running in client mode with an incorrect path to the server logIs the application running in client mode with an incorrect path to the server log directory?
directory?