cBrd.StopPreviousOp( ) ---> cBrd.Stop( ) in FlyingStart.... test sequences, etc., ver. 3.1.1604
This commit is contained in:
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
|
|||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
[assembly: AssemblyVersion("3.1.1603.0")]
|
[assembly: AssemblyVersion("3.1.1604.0")]
|
||||||
[assembly: AssemblyFileVersion("3.1.1603.0")]
|
[assembly: AssemblyFileVersion("3.1.1604.0")]
|
||||||
|
|||||||
@@ -539,18 +539,12 @@ namespace TBF.Rig.TestMethods.Adjustment
|
|||||||
///
|
///
|
||||||
/// Quit this sequence
|
/// Quit this sequence
|
||||||
///
|
///
|
||||||
if (isLastRepetition || retVal == Event.UiCmdStop || retVal == Event.OpArgumentError
|
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||||
|| retVal == Event.Error || retVal == Event.ConfigurationError)
|
|| retVal == Event.OpArgumentError
|
||||||
|
|| retVal == Event.Error
|
||||||
|
|| retVal == Event.ConfigurationError)
|
||||||
{
|
{
|
||||||
State.Create(string.Format("{0}({1}) : Stopping diverter, gate, etc.", test.Method, test.Name))
|
cBrd.Stop(false);
|
||||||
.AddOperation(checkUiOp)
|
|
||||||
.AddOperation(cBrd.StopPreviousOp())
|
|
||||||
.EnterState();
|
|
||||||
do {
|
|
||||||
e = StateMachine.WaitRunDevsRunOps();
|
|
||||||
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; break; }
|
|
||||||
}
|
|
||||||
while (!e.Contains(Event.PreviousStopped));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new List<Event> { retVal };
|
return new List<Event> { retVal };
|
||||||
|
|||||||
@@ -919,19 +919,12 @@ namespace TBF.Rig.TestMethods.DiverterTest
|
|||||||
///
|
///
|
||||||
/// Quit this sequence
|
/// Quit this sequence
|
||||||
///
|
///
|
||||||
if (isLastRepetition || retVal == Event.UiCmdStop || retVal == Event.OpArgumentError
|
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||||
|| retVal == Event.Error || retVal == Event.ConfigurationError)
|
|| retVal == Event.OpArgumentError
|
||||||
|
|| retVal == Event.Error
|
||||||
|
|| retVal == Event.ConfigurationError)
|
||||||
{
|
{
|
||||||
State.Create(string.Format("{0}({1}) : Stopping diverter, gate, etc.", test.Method, test.Name))
|
cBrd.Stop(false);
|
||||||
.AddOperation(checkUiOp)
|
|
||||||
.AddOperation(cBrd.StopPreviousOp())
|
|
||||||
.EnterState();
|
|
||||||
do
|
|
||||||
{
|
|
||||||
e = StateMachine.WaitRunDevsRunOps();
|
|
||||||
if (TestAndLogUiCmdStop(test, e)) break;
|
|
||||||
}
|
|
||||||
while (!e.Contains(Event.PreviousStopped));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stopTestWOStoppingDivGateEtc:
|
stopTestWOStoppingDivGateEtc:
|
||||||
|
|||||||
@@ -732,8 +732,10 @@ namespace TBF.Rig.TestMethods.FlyingStart
|
|||||||
///
|
///
|
||||||
/// Quit this sequence
|
/// Quit this sequence
|
||||||
///
|
///
|
||||||
if (isLastRepetition || retVal == Event.UiCmdStop || retVal == Event.OpArgumentError
|
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||||
|| retVal == Event.Error || retVal == Event.ConfigurationError)
|
|| retVal == Event.OpArgumentError
|
||||||
|
|| retVal == Event.Error
|
||||||
|
|| retVal == Event.ConfigurationError)
|
||||||
{
|
{
|
||||||
cBrd.Stop(false);
|
cBrd.Stop(false);
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-11
@@ -1086,18 +1086,12 @@ namespace TBF.Rig.TestMethods.FlyingStartFirstRepetWithMassColl
|
|||||||
///
|
///
|
||||||
/// Quit this sequence
|
/// Quit this sequence
|
||||||
///
|
///
|
||||||
if (isLastRepetition || retVal == Event.UiCmdStop || retVal == Event.OpArgumentError
|
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||||
|| retVal == Event.Error || retVal == Event.ConfigurationError)
|
|| retVal == Event.OpArgumentError
|
||||||
|
|| retVal == Event.Error
|
||||||
|
|| retVal == Event.ConfigurationError)
|
||||||
{
|
{
|
||||||
State.Create(string.Format("{0}({1}) : Stopping diverter, gate, etc.", test.Method, test.Name))
|
cBrd.Stop(false);
|
||||||
.AddOperation(checkUiOp)
|
|
||||||
.AddOperation(cBrd.StopPreviousOp())
|
|
||||||
.EnterState();
|
|
||||||
do {
|
|
||||||
e = StateMachine.WaitRunDevsRunOps();
|
|
||||||
if (TestAndLogUiCmdStop(test, e)) { if (retVal == Event.Done) retVal = Event.UiCmdStop; break; }
|
|
||||||
}
|
|
||||||
while (!e.Contains(Event.PreviousStopped));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new List<Event> { retVal };
|
return new List<Event> { retVal };
|
||||||
|
|||||||
+5
-12
@@ -1193,19 +1193,12 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollComparative
|
|||||||
///
|
///
|
||||||
/// Quit this sequence
|
/// Quit this sequence
|
||||||
///
|
///
|
||||||
if (isLastRepetition || retVal == Event.UiCmdStop || retVal == Event.OpArgumentError
|
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||||
|| retVal == Event.Error || retVal == Event.ConfigurationError)
|
|| retVal == Event.OpArgumentError
|
||||||
|
|| retVal == Event.Error
|
||||||
|
|| retVal == Event.ConfigurationError)
|
||||||
{
|
{
|
||||||
State.Create(string.Format("{0}({1}) : Stopping diverter, gate, etc.", test.Method, test.Name))
|
cBrd.Stop(false);
|
||||||
.AddOperation(checkUiOp)
|
|
||||||
.AddOperation(cBrd.StopPreviousOp())
|
|
||||||
.EnterState();
|
|
||||||
do
|
|
||||||
{
|
|
||||||
e = StateMachine.WaitRunDevsRunOps();
|
|
||||||
if (TestAndLogUiCmdStop(test, e)) break;
|
|
||||||
}
|
|
||||||
while (!e.Contains(Event.PreviousStopped));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new List<Event> { retVal };
|
return new List<Event> { retVal };
|
||||||
|
|||||||
+5
-12
@@ -1011,19 +1011,12 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollProlonged
|
|||||||
///
|
///
|
||||||
/// Quit this sequence
|
/// Quit this sequence
|
||||||
///
|
///
|
||||||
if (isLastRepetition || retVal == Event.UiCmdStop || retVal == Event.OpArgumentError
|
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||||
|| retVal == Event.Error || retVal == Event.ConfigurationError)
|
|| retVal == Event.OpArgumentError
|
||||||
|
|| retVal == Event.Error
|
||||||
|
|| retVal == Event.ConfigurationError)
|
||||||
{
|
{
|
||||||
State.Create(string.Format("{0}({1}) : Stopping diverter, gate, etc.", test.Method, test.Name))
|
cBrd.Stop(false);
|
||||||
.AddOperation(checkUiOp)
|
|
||||||
.AddOperation(cBrd.StopPreviousOp())
|
|
||||||
.EnterState();
|
|
||||||
do
|
|
||||||
{
|
|
||||||
e = StateMachine.WaitRunDevsRunOps();
|
|
||||||
if (TestAndLogUiCmdStop(test, e)) break;
|
|
||||||
}
|
|
||||||
while (!e.Contains(Event.PreviousStopped));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stopTestWOStoppingDivGateEtc:
|
stopTestWOStoppingDivGateEtc:
|
||||||
|
|||||||
@@ -1064,8 +1064,10 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollection
|
|||||||
///
|
///
|
||||||
/// Quit this sequence
|
/// Quit this sequence
|
||||||
///
|
///
|
||||||
if (isLastRepetition || retVal == Event.UiCmdStop || retVal == Event.OpArgumentError
|
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||||
|| retVal == Event.Error || retVal == Event.ConfigurationError)
|
|| retVal == Event.OpArgumentError
|
||||||
|
|| retVal == Event.Error
|
||||||
|
|| retVal == Event.ConfigurationError)
|
||||||
{
|
{
|
||||||
cBrd.Stop(false);
|
cBrd.Stop(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -756,19 +756,12 @@ namespace TBF.Rig.TestMethods.FlyingStartTankCollection
|
|||||||
///
|
///
|
||||||
/// Quit this sequence
|
/// Quit this sequence
|
||||||
///
|
///
|
||||||
if (isLastRepetition || retVal == Event.UiCmdStop || retVal == Event.OpArgumentError
|
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||||
|| retVal == Event.Error || retVal == Event.ConfigurationError)
|
|| retVal == Event.OpArgumentError
|
||||||
|
|| retVal == Event.Error
|
||||||
|
|| retVal == Event.ConfigurationError)
|
||||||
{
|
{
|
||||||
State.Create(string.Format("{0}({1}) : Stopping diverter, gate, etc.", test.Method, test.Name))
|
cBrd.Stop(false);
|
||||||
.AddOperation(checkUiOp)
|
|
||||||
.AddOperation(cBrd.StopPreviousOp())
|
|
||||||
.EnterState();
|
|
||||||
do
|
|
||||||
{
|
|
||||||
e = StateMachine.WaitRunDevsRunOps();
|
|
||||||
if (TestAndLogUiCmdStop(test, e)) break;
|
|
||||||
}
|
|
||||||
while (!e.Contains(Event.PreviousStopped));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new List<Event> { retVal };
|
return new List<Event> { retVal };
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace TBF.Rig.TestMethods.PulsesTest
|
|||||||
|
|
||||||
IList<Event> e; /// Events from currently running operations
|
IList<Event> e; /// Events from currently running operations
|
||||||
Event retVal = Event.Done;
|
Event retVal = Event.Done;
|
||||||
TBF.Rig.ControlBoard.IControlBoard cBrd = StateMachine.ControlBoard;
|
TBF.Rig.ControlBoard.Uni.UniCB cBrd = StateMachine.ControlBoard as TBF.Rig.ControlBoard.Uni.UniCB;
|
||||||
checkUiOp = new Operations.CheckUIOp(true); /// Runs in more then one state
|
checkUiOp = new Operations.CheckUIOp(true); /// Runs in more then one state
|
||||||
processDataLoggingOp = new TBF.Rig.Operations.ProcessDataLoggingOp(processDataLogger, this, false);
|
processDataLoggingOp = new TBF.Rig.Operations.ProcessDataLoggingOp(processDataLogger, this, false);
|
||||||
|
|
||||||
@@ -508,18 +508,12 @@ namespace TBF.Rig.TestMethods.PulsesTest
|
|||||||
///
|
///
|
||||||
/// Quit this sequence
|
/// Quit this sequence
|
||||||
///
|
///
|
||||||
if (isLastRepetition || retVal == Event.UiCmdStop || retVal == Event.OpArgumentError
|
if (isLastRepetition || retVal == Event.UiCmdStop
|
||||||
|| retVal == Event.Error || retVal == Event.ConfigurationError)
|
|| retVal == Event.OpArgumentError
|
||||||
|
|| retVal == Event.Error
|
||||||
|
|| retVal == Event.ConfigurationError)
|
||||||
{
|
{
|
||||||
State.Create(string.Format("{0}({1}) : Stopping diverter, gate, etc.", test.Method, test.Name))
|
cBrd.Stop(false);
|
||||||
.AddOperation(checkUiOp)
|
|
||||||
.AddOperation(cBrd.StopPreviousOp())
|
|
||||||
.EnterState();
|
|
||||||
do {
|
|
||||||
e = StateMachine.WaitRunDevsRunOps();
|
|
||||||
if (TestAndLogUiCmdStop(test, e)) { retVal = Event.UiCmdStop; break; }
|
|
||||||
}
|
|
||||||
while (!e.Contains(Event.PreviousStopped));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new List<Event> { retVal };
|
return new List<Event> { retVal };
|
||||||
|
|||||||
Reference in New Issue
Block a user