Back

Topic

[KB263]Automatic restart of Dream Report

Tags: Dream Report

14 years ago
By RM
Options
Print
Applies to:Dream report

Summary:By default Dream Report restarts automatically every day at 2AM.

Details:This periodic reboot is to free memory in case of leakage. It is not recommended to deactivate it, but if you really need you can do it as follows.

Go to system folder and open dreamreport.ini file

Find the entry:

every=2:0

Remove the 2:0

Result:

every=

Save the file and shut DRT and start it again.

It is also possible to restart DreamReport from a command line, so technically speaking you can easily restart DreamReport from a PcVue project. Using the example from DreamReport help;

Dream Report® Version 5.0

“<path to RTM>\rtm.exe” -control -startproject “full project path”

Example:”C:\ODS\Dream Report\System\RTM.exe” -control – startproject  “C:\ODS\Dream Report\Project\Demo\Demo.drpj”

Simply create a batch file, ie RestartDR.bat and fill in the following line:

“C:\ODS\Dream Report\System\rtm.exe” -control -startproject “C:\ODS\Dream Report\Project\Demo\Demo.drpj”

Copy this file into the directory TP of your PcVue project and create a scada basic function like this one:

SUB main ()
Dim ret as integer;
Dim Command as str;

Command = “RestartDR.bat”; ‘Located in TP folder of the project
print(command);
ret = Application(“LOAD”, Command,””,5); ‘Minimised, inactive (window in background).

print(ret);

END SUB

Add a button to start this function or a scheduled action:

RestartDR

Download attachments: Example PcVue project made with version 11.2


Created on: 10 Dec 2010 Last update: 26 Aug 2024