Auto Report Application
The Auto Report application is designed to automatically generate various reports, save them to disk and send by email. The schedule for generating reports is set using Automatic Control Module. Sending reports by email is provided by the corresponding KpEmail.dll driver, which is included in the standard Rapid SCADA installation.
The following types of reports are supported:
- Hourly data report;
- Event report;
- Minute data report;
- Elastic report.
Auto Report works as a service. It connects to the Server application and is permanently ready to receive commands. Automatic Control Module, which operates as part of Server, sends commands to execute tasks for generating reports at specified time. Due to a command, a set of reports is generated and saved to disk in a format of office files or archive. If the corresponding option is set, the Auto Report application passes a command to Server to send the generated reports by email.
- Unzip the application installation package.
- Copy all files from the SCADA folder of the installation package to the Rapid SCADA installation directory, the default is C:\SCADA, with the hierarchy of directories retained.
- Execute the file ScadaAutoReport\svc_install.bat as administrator to register the service.
- Execute the file ScadaAutoReport\svc_start.bat as administrator to run the service.
- Open the application ScadaAutoReport\ScadaAutoReportConfig.exe, go to the Registration tab and register the application.
The configuration of Auto Report is stored in the file C:\SCADA\ScadaAutoReport\Config\ScadaAutoReportConfig.xml. To edit the configuration, the ScadaAutoReportConfig.exe application is intended. Its user interface is shown in the following figures:
To make Auto Report work, it is necessary to perform certain settings in the project:
- Create a communication line, device, and output channel to send reports by email to the specified recipients.
- Create a device and an output channel to send and receive commands for generating reports.
- Add a new user, which is used to connect the application to Server.
- Configure Automatic Control Module to send commands on a schedule.
- Set up email sending in Communicator.
Actions 1, 2, and 3 are shown in the following figures:
The settings of Automatic Control Module (item 4) are shown below:
An example of Communicator settings for sending emails (item 5) is contained in the DemoProject.en-GB.rsproj project. The following figure shows the device properties:
After completing the configuration or changing the existing configuration, restart the Auto Report service. To do this, run the file ScadaAutoReport\svc_restart.bat as administrator or use the Windows management console. The service name is ScadaAutoReportService.
To perform a check, run a task of generating report by the Administrator application. Open the Generator form and send a standard command, specifying the control channel that is responsible for generating reports. In this example, the output channel number is 201. Use the task ID as the command value. Then check the log files located in the directory C:\SCADA\ScadaAutoReport\Log\
If the application works well, generated reports are saved in the directory specified in the general options, by default C:\SCADA\Reports\