102 lines
2.4 KiB
C#
102 lines
2.4 KiB
C#
namespace TBF.BenchControl
|
|
{
|
|
/// <summary>
|
|
/// Lower level measurement event provided by devices and polled by operations
|
|
/// </summary>
|
|
public enum MsrmntState
|
|
{
|
|
Valid,
|
|
Overload,
|
|
Failed,
|
|
Busy,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Flags returned by each device configuration control Verify(...) function.
|
|
/// </summary>
|
|
public enum CfgVerifyFlags
|
|
{
|
|
None = 0,
|
|
Error = 0x1, /// Some settings in the user control are invalid and cannot be set
|
|
Warning = 0x02, /// Some settings in the user control are suspicious, can be set after user confirmation
|
|
}
|
|
|
|
/// <summary>
|
|
/// StateMachine events (issued by operations, IOperation derived classes)
|
|
/// </summary>
|
|
public enum Event
|
|
{
|
|
None = 0,
|
|
Done,
|
|
ModelessFormClosed,
|
|
ValvesSet,
|
|
AmbientDone,
|
|
BalanceDone,
|
|
BalanceOverload,
|
|
PressureDone,
|
|
PressureInDone,
|
|
PressureOutDone,
|
|
TempDone,
|
|
TempInDone,
|
|
TempOutDone,
|
|
TempDivDone,
|
|
FlowMeasurementDone,
|
|
FlowReached,
|
|
PositionReached,
|
|
RegulValveTimeOut, /// Maximum allowed flow setting time has elapsed
|
|
ReadRegisterDone,
|
|
ReadReferenceDone,
|
|
AllPositionsReached, /// Used in SetAllRegulValvesOp
|
|
TurnPumpOnOffDone,
|
|
|
|
/// CheckUi events
|
|
UiCmdStartTest,
|
|
UiCmdStartQ1,
|
|
UiCmdStartQ2,
|
|
UiCmdStartQ3,
|
|
UiCmdStartCycle,
|
|
UiCmdStop,
|
|
UiCmdPurgeBegin,
|
|
UiCmdPurgeEnd,
|
|
UiCmdEmptyTank1,
|
|
UiCmdEmptyTank2,
|
|
UiCmdEmptyTank3,
|
|
UiCmdTestOpticalHeads,
|
|
UiCmdResetResults,
|
|
UiCmdAcceptResults,
|
|
UiCmdCalibration,
|
|
UiCmdCameraTest,
|
|
UiCmdSensitivityTest,
|
|
UiCmdB1,
|
|
UiCmdB2,
|
|
UiCmdB3,
|
|
|
|
/// Process/Test oriented
|
|
PreviousStopped,
|
|
Wait,
|
|
ProcedureLoaded,
|
|
MeasurementStarted,
|
|
ReadAllRegistersDone,
|
|
MeasurementCompleted,
|
|
ResultsPrinted,
|
|
ResultsWritten,
|
|
|
|
/// Timer events
|
|
TimerExpired,
|
|
|
|
/// IDC camera events
|
|
CameraBusy,
|
|
CameraOpCompleted,
|
|
CameraOpFailed,
|
|
|
|
/// Generic
|
|
Error, /// Many ops.: Fatal error occurred
|
|
OpArgumentError,
|
|
ConfigurationError,
|
|
Yes,
|
|
No,
|
|
Next, /// To move to the next state when debugging
|
|
OK,
|
|
}
|
|
}
|