Add - StandingStart method - Store and log default PumpPower for dynamic test repetitions - Read PumpPower from the current pump before starting dynamic tests.
- Store the value as the default PumpPower for subsequent test instances in the cycle. - Add logging when PumpPower is initialized from the pump. - Add logging at test start including test name, repetition number, last repetition flag, and PumpPower to improve diagnostics.
This commit is contained in:
parent
be0525a319
commit
dbe424b17a
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("3.9.3134.101")]
|
||||
[assembly: AssemblyFileVersion("3.9.3134.101")]
|
||||
[assembly: AssemblyVersion("3.9.3134.102")]
|
||||
[assembly: AssemblyFileVersion("3.9.3134.102")]
|
||||
|
||||
@ -123,8 +123,16 @@ namespace TBF.Rig.TestMethods.StandingStart
|
||||
|
||||
int totalPulses = Convert.ToInt32(test.Volume / outPath.FlowMeter.LtrPerPulse);
|
||||
|
||||
log.InfoFormat(
|
||||
"{0}({1}) : Test starting... (Repetition {2}, LastRepetition={3}, PumpPower={4})",
|
||||
test.Method,
|
||||
test.Name,
|
||||
repetitionNr,
|
||||
isLastRepetition,
|
||||
test.PumpPower);
|
||||
|
||||
///============================================================================================
|
||||
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -376,6 +384,18 @@ namespace TBF.Rig.TestMethods.StandingStart
|
||||
/// Temperature is withing required range at this point
|
||||
///
|
||||
|
||||
///
|
||||
/// reading pump power for dynamic using as default test.PumpPower for next test instances in cycle
|
||||
///
|
||||
if (inPath.Pump is IPump)
|
||||
{
|
||||
test.PumpPower = (float)(inPath.Pump as IPump).Power;
|
||||
|
||||
log.InfoFormat(
|
||||
"PumpPower initialized from operator to '{0}'%",
|
||||
test.PumpPower);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Stopping_flow_for_the_fixed_start);
|
||||
//-----------------------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user