Appendix B Calculation using C# Calculation File Variable Sections for Calculations
2PAA107563-600 B 151
{
p
ublic override void Initialize()
{
//Your Initializations comes here. Example below is for
current h
istory.
DefaultCvhHistory = hCurrentHistory;
}
pu
blic override void Calculate()
{
//Your Calculation Equations Comes here
}
}
}
5. The variables are accessed using following:
• If Variable Section is used then the v
ariables are accessed with following
syntax:sSectionName.vVariableName
• When Variable Section is not used: vVariableName
6. Use standard C# syntax to define calculation equations.
7. Build your calculation solution.
8. Define Calculation Module as shown in Table 18.
Tabl e 18. Calculation Module
Column Description
Name The unique name of the calculation module.
Assembly A full path to the assembly (or assemblies) or C#
sou
rce file(s) that contain the calculation modules.
When defining more than one assembly or source
file they are separated with pipes "|". Mixing
assemblies and source files is not supported.
References External assembly references needed in the
co
mpilation.
9. Define Calculation Task as shown in Table 19.