diff --git a/TBF/Rig/Sequences/MainSeq.cs b/TBF/Rig/Sequences/MainSeq.cs index cc20b161b..005170479 100644 --- a/TBF/Rig/Sequences/MainSeq.cs +++ b/TBF/Rig/Sequences/MainSeq.cs @@ -895,6 +895,10 @@ namespace TBF.Rig.Sequences /// if (selection == Selection.RestOfCycle) /// ... otherwise { + log.InfoFormat( + "RestOfCycle requested from selectedTestName={0}", + selectedTestName); + for (int i = 0; i < StateMachine.TestInstances.Length; i++) { if (selectedTestName == StateMachine.TestInstances[i].Name) @@ -1006,21 +1010,38 @@ namespace TBF.Rig.Sequences nextTransitionBefore = null; } - /// Fetch paths and transitions of this test + /// Fetch paths and transitions of this test TestInstance testInst = StateMachine.TestInstances[currentTestIx]; - TBF.Rig.Generic.IComponent testMethodComp = TbfComponents.FindComponent(testInst.Test.Method); + + /// Remember the current test so that "Continue in the cycle" + /// can restart from the interrupted test. + selectedTestName = testInst.Name; + log.InfoFormat( + "Cycle current test: index={0}, name={1}, selectedTestName updated", + currentTestIx, + selectedTestName); + + TBF.Rig.Generic.IComponent testMethodComp = + TbfComponents.FindComponent(testInst.Test.Method); + string errorMsg; - if (!StateMachine.GetPaths(testInst.Test, (StateMachine.Procedure.MetersKind == MetersKind.HeatMeter), - out inPath, out benchPath, out outPath, out sensPath, + if (!StateMachine.GetPaths(testInst.Test, + (StateMachine.Procedure.MetersKind == MetersKind.HeatMeter), + out inPath, + out benchPath, + out outPath, + out sensPath, out heatMetersPath, - out transitionBefore, out transitionBetween, out transitionAfter, + out transitionBefore, + out transitionBetween, + out transitionAfter, out errorMsg)) { - Bridge.OnError(this, errorMsg); - goto select_cycle_or_test; - } + Bridge.OnError(this, errorMsg); + goto select_cycle_or_test; + } - /// Update format for the water mass + /// Update format for the water mass if (outPath != null && outPath.Scale != null && !string.IsNullOrEmpty(outPath.Scale.Format)) { StartMass.Format = outPath.Scale.Format; diff --git a/TBF/Rig/TestMethods/StandingStart/StandingStartSeq.cs b/TBF/Rig/TestMethods/StandingStart/StandingStartSeq.cs index 6f4636d3a..439f94213 100644 --- a/TBF/Rig/TestMethods/StandingStart/StandingStartSeq.cs +++ b/TBF/Rig/TestMethods/StandingStart/StandingStartSeq.cs @@ -693,7 +693,7 @@ namespace TBF.Rig.TestMethods.StandingStart State.Create(string.Format("{0}({1}) : Closing the start/stop valve at the end of the standing start/stop test", test.Method, test.Name)) .AddOperation(checkUiOp) .AddOperations(readTempPressOps) - .AddOperation(testInProgress) + //.AddOperation(testInProgress) .AddOperation(cBrd.CloseStartValveOp(timeStampEnd, stopSwitchTime)) .AddOperation(processDataLoggingOp) .EnterState(); diff --git a/TBF/UI/MainWnd.resx b/TBF/UI/MainWnd.resx index 6fe90fc60..dfabf049a 100644 --- a/TBF/UI/MainWnd.resx +++ b/TBF/UI/MainWnd.resx @@ -739,7 +739,7 @@ processTabPageCtrl - TBF.UI.Process.ProcessTabPageCtrl, TBF, Version=3.9.3001.1, Culture=neutral, PublicKeyToken=null + TBF.UI.Process.ProcessTabPageCtrl, TBF, Version=3.9.3134.114, Culture=neutral, PublicKeyToken=null processTabPage @@ -817,7 +817,7 @@ resultsTabPageCtrl - TBF.UI.ResultsMI.ResultsTabPageCtrl, TBF, Version=3.9.3001.1, Culture=neutral, PublicKeyToken=null + TBF.UI.ResultsMI.ResultsTabPageCtrl, TBF, Version=3.9.3134.112, Culture=neutral, PublicKeyToken=null resultsTabPage @@ -871,7 +871,7 @@ graphsTabPageCtrl - TBF.UI.Graphs.GraphsTabPageCtrl, TBF, Version=3.9.3001.1, Culture=neutral, PublicKeyToken=null + TBF.UI.Graphs.GraphsTabPageCtrl, TBF, Version=3.9.3134.112, Culture=neutral, PublicKeyToken=null graphsTabPage @@ -925,7 +925,7 @@ eventLogsTabPageCtrl - TBF.UI.EventLogs.EventLogsTabPageCtrl, TBF, Version=3.9.3001.1, Culture=neutral, PublicKeyToken=null + TBF.UI.EventLogs.EventLogsTabPageCtrl, TBF, Version=3.9.3134.112, Culture=neutral, PublicKeyToken=null eventLogsTabPage @@ -979,7 +979,7 @@ calendarTabPageCtrl - TBF.UI.Calendar.CalendarTabPageCtrl, TBF, Version=3.9.3001.1, Culture=neutral, PublicKeyToken=null + TBF.UI.Calendar.CalendarTabPageCtrl, TBF, Version=3.9.3134.112, Culture=neutral, PublicKeyToken=null calendarTabPage @@ -1033,7 +1033,7 @@ picturesTabPageCtrl - TBF.UI.Camera.PicturesTabPageCtrl, TBF, Version=3.9.3001.1, Culture=neutral, PublicKeyToken=null + TBF.UI.Camera.PicturesTabPageCtrl, TBF, Version=3.9.3134.112, Culture=neutral, PublicKeyToken=null picturesTabPage