Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA Enterprise SCADA

Current and last parameter values

  • Last UpdatedApr 24, 2025
  • 1 minute read

This example shows how the current and previous parameter values can be accessed through the arrays provided for each.

Two arrays are provided to examine values for the input and output parameters in the Application Calculation Engine (ACE).

 

Arrays for Output and Inputs in ACE

Parameter

Description

values

This parameter belongs to the ACE's Run method. It provides an array of the current value of all of the ACE Configuration (aceconfig) parameters.

LastValues

This property belongs to the ACEProcedure class. It provides an array of the previous value of all of the aceconfig parameters.

In the example below, messages are written to the %DNADataRoot%\RealTime\log\ACEEngine.log and %DNADataRoot%\Shared\log\oasErrLog.log files providing the values (both last and current) for the output and all inputs.

for (int i = 0; i < 19; i++)

{

double lastValue = LastValues[i];

double curValue = values[i];

string valueMessage = ":

LastValue(" + lastValue.ToString() + ") CurrentValue(" + curValue.ToString() +

")";

if (i == 0)

{

DNALog.WriteLog(DNALog.LogLevel.Always, "Output" +

valueMessage);

}

 

else

{

DNALog.WriteLog(DNALog.LogLevel.Always, "Input" +

i.ToString() + valueMessage);

}

}