Creating Simple Calculation Appendix B Calculation using C# Calculation File
134 2PAA107563-600 B
Creating Simple Calculation
Installing RTDB-CalcScheduler
By default, RTDB-CalcScheduler is not installed with History. This is installed by
running the bat file:
%APP_ROOT%\Calculations\install\APP_Install_CalcScheduler_Calc.bat from
the command line.
A new service RTDB-CalcScheduler will be visible in the Windows services
(services.msc). The setup also installs the service to startup along with other RTDB
services. RTDB main service starts up the RTDB-CalcScheduler within a minute
and runs as a Windows service.
Creating Calculation Module and Task Definitions
Calculation tasks can be created by using Vtrin user interface or ODBC connection
and SQL scripts. Here both alternatives are presented as Vtrin, which is more
intuitive to use but SQL is suggested when a bulk load that can be automatized is
preferred. This also allows skipping phases by just running associated bat files.
To create calculation module, do the following:
1. Create a list of calculation task.
For example, in Figure 80, under User’s Definitions > Calculation examples
folder is created followed with Calculations tasks creation. When Calculation
tasks list is created, right click the actual list view to select the associated class
where the Vtrin loads the data.