Modifications for Torun
This commit is contained in:
@@ -34,11 +34,13 @@ namespace ResultsBrowser
|
|||||||
|
|
||||||
#if (DN100 || MUNICH)
|
#if (DN100 || MUNICH)
|
||||||
public const int WMsCount = 3;
|
public const int WMsCount = 3;
|
||||||
#else // if FUZHOU300|| FUZHOU150 || PT200IL || TORINO50 || BADGER_MALA_TRAT
|
#elif FUZHOU300 || FUZHOU150 || PT200IL || TORINO50 || BADGER_MALA_TRAT
|
||||||
public const int WMsCount = 6;
|
public const int WMsCount = 6;
|
||||||
|
#elif TORUN_PT50_2015
|
||||||
|
public const int WMsCount = 20;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Selected procedure data
|
/// Selected procedure data
|
||||||
/// - before the main program window is open, objects referenced by this variable
|
/// - before the main program window is open, objects referenced by this variable
|
||||||
/// are loaded from the database.
|
/// are loaded from the database.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace TBF.BenchControl.Elde
|
|||||||
Stop = 2, /// Stop the measurement
|
Stop = 2, /// Stop the measurement
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FUZHOU300 || PT200IL || TORINO50 || BADGER_MALA_TRAT
|
#if FUZHOU300 || PT200IL || TORINO50 || BADGER_MALA_TRAT || TORUN_PT50_2015
|
||||||
public enum StatusP : ulong
|
public enum StatusP : ulong
|
||||||
{
|
{
|
||||||
RefFlowMeterMask = 0x7,
|
RefFlowMeterMask = 0x7,
|
||||||
@@ -38,7 +38,7 @@ namespace TBF.BenchControl.Elde
|
|||||||
ErrorPressMeter4 = 0x8000000000000,
|
ErrorPressMeter4 = 0x8000000000000,
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
public enum StatusP : ulong
|
public enum StatusP : ulong
|
||||||
{
|
{
|
||||||
RefFlowMeterMask = 0x7,
|
RefFlowMeterMask = 0x7,
|
||||||
TestInProgress = 0x8,
|
TestInProgress = 0x8,
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace TBF.BenchControl.Elde
|
|||||||
// Array length is the reference flowmeters count plus one
|
// Array length is the reference flowmeters count plus one
|
||||||
#if DN100
|
#if DN100
|
||||||
public float[] EtCalib = new float[6] { 1, 1, 1, 1, 1, 1 };
|
public float[] EtCalib = new float[6] { 1, 1, 1, 1, 1, 1 };
|
||||||
#elif MUNICH || TORINO50 || BADGER_MALA_TRAT
|
#elif MUNICH || TORINO50 || BADGER_MALA_TRAT || TORUN_PT50_2015
|
||||||
public float[] EtCalib = new float[5] { 1, 1, 1, 1, 1 };
|
public float[] EtCalib = new float[5] { 1, 1, 1, 1, 1 };
|
||||||
#elif FUZHOU150 || FUZHOU300 || PT200IL
|
#elif FUZHOU150 || FUZHOU300 || PT200IL
|
||||||
public float[] EtCalib = new float[6] { 1, 1, 1, 1, 1, 1 };
|
public float[] EtCalib = new float[6] { 1, 1, 1, 1, 1, 1 };
|
||||||
@@ -175,8 +175,10 @@ namespace TBF.BenchControl.Elde
|
|||||||
ControlComponent_Torino2015.UserControl1 ctrlBrdComponent,
|
ControlComponent_Torino2015.UserControl1 ctrlBrdComponent,
|
||||||
#elif BADGER_MALA_TRAT
|
#elif BADGER_MALA_TRAT
|
||||||
ControlComponent_Torino2015.UserControl1 ctrlBrdComponent,
|
ControlComponent_Torino2015.UserControl1 ctrlBrdComponent,
|
||||||
|
#elif TORUN_PT50_2015
|
||||||
|
ControlComponent_Torino2015.UserControl1 ctrlBrdComponent,
|
||||||
#endif
|
#endif
|
||||||
ulong valvesToInvert,
|
ulong valvesToInvert,
|
||||||
float[] tankCapacities)
|
float[] tankCapacities)
|
||||||
{
|
{
|
||||||
this.valvesToInvert = valvesToInvert;
|
this.valvesToInvert = valvesToInvert;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace TBF.BenchControl.Elde
|
|||||||
/// Properties
|
/// Properties
|
||||||
///
|
///
|
||||||
public StatusP StatusP { get { return (StatusP)ctrlBrdComponent.StatusP; } }
|
public StatusP StatusP { get { return (StatusP)ctrlBrdComponent.StatusP; } }
|
||||||
#if FUZHOU300 || PT200IL || TORINO50 || BADGER_MALA_TRAT
|
#if FUZHOU300 || PT200IL || TORINO50 || BADGER_MALA_TRAT || TORUN_PT50_2015
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// In case of I11, I12
|
/// In case of I11, I12
|
||||||
/// referenceFreq[0] = I11 + I12
|
/// referenceFreq[0] = I11 + I12
|
||||||
@@ -43,7 +43,7 @@ namespace TBF.BenchControl.Elde
|
|||||||
public ulong RRoute { get { return ctrlBrdComponent.rRoute; } }
|
public ulong RRoute { get { return ctrlBrdComponent.rRoute; } }
|
||||||
public uint DivTime { get { return ctrlBrdComponent.divTime; } }
|
public uint DivTime { get { return ctrlBrdComponent.divTime; } }
|
||||||
public float TTime { get { return ctrlBrdComponent.Ttime; } }
|
public float TTime { get { return ctrlBrdComponent.Ttime; } }
|
||||||
#if FUZHOU300 || PT200IL || TORINO50 || BADGER_MALA_TRAT
|
#if FUZHOU300 || PT200IL || TORINO50 || BADGER_MALA_TRAT || TORUN_PT50_2015
|
||||||
public uint FmState { get { return ctrlBrdComponent.fMState[0]; } } /// TODO: index
|
public uint FmState { get { return ctrlBrdComponent.fMState[0]; } } /// TODO: index
|
||||||
#else
|
#else
|
||||||
public uint FmState { get { return ctrlBrdComponent.fMState; } }
|
public uint FmState { get { return ctrlBrdComponent.fMState; } }
|
||||||
@@ -82,6 +82,8 @@ namespace TBF.BenchControl.Elde
|
|||||||
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
||||||
#elif BADGER_MALA_TRAT
|
#elif BADGER_MALA_TRAT
|
||||||
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
||||||
|
#elif TORUN_PT50_2015
|
||||||
|
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -102,6 +104,8 @@ namespace TBF.BenchControl.Elde
|
|||||||
public ControlComWrap(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
public ControlComWrap(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
||||||
#elif BADGER_MALA_TRAT
|
#elif BADGER_MALA_TRAT
|
||||||
public ControlComWrap(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
public ControlComWrap(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
||||||
|
#elif TORUN_PT50_2015
|
||||||
|
public ControlComWrap(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
this.ctrlBrdComponent = ctrlBrdComponent;
|
this.ctrlBrdComponent = ctrlBrdComponent;
|
||||||
@@ -185,7 +189,7 @@ namespace TBF.BenchControl.Elde
|
|||||||
// valveValue[0],
|
// valveValue[0],
|
||||||
// valveValue[1]));
|
// valveValue[1]));
|
||||||
log.InfoFormat("ValveMove(#={0}, md={1}, [{2}, {3}])", valveNo, valveMode, valveValue[0], valveValue[1]);
|
log.InfoFormat("ValveMove(#={0}, md={1}, [{2}, {3}])", valveNo, valveMode, valveValue[0], valveValue[1]);
|
||||||
#if FUZHOU300 || PT200IL || TORINO50 || BADGER_MALA_TRAT
|
#if FUZHOU300 || PT200IL || TORINO50 || BADGER_MALA_TRAT || TORUN_PT50_2015
|
||||||
ctrlBrdComponent.ValveMove((byte)valveNo, (byte)valveMode, valveValue, stableTime);
|
ctrlBrdComponent.ValveMove((byte)valveNo, (byte)valveMode, valveValue, stableTime);
|
||||||
#else
|
#else
|
||||||
ctrlBrdComponent.ValveMove((byte)valveNo, (byte)valveMode, valveValue);
|
ctrlBrdComponent.ValveMove((byte)valveNo, (byte)valveMode, valveValue);
|
||||||
|
|||||||
@@ -194,6 +194,8 @@ namespace TBF.BenchControl
|
|||||||
public static void InitializeBoardEtc(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
public static void InitializeBoardEtc(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
||||||
#elif BADGER_MALA_TRAT
|
#elif BADGER_MALA_TRAT
|
||||||
public static void InitializeBoardEtc(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
public static void InitializeBoardEtc(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
||||||
|
#elif TORUN_PT50_2015
|
||||||
|
public static void InitializeBoardEtc(ControlComponent_Torino2015.UserControl1 ctrlBrdComponent)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/// Load the list of components (entities) from the database.
|
/// Load the list of components (entities) from the database.
|
||||||
|
|||||||
Generated
+2
@@ -587,6 +587,8 @@ namespace TBF
|
|||||||
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
||||||
#elif BADGER_MALA_TRAT
|
#elif BADGER_MALA_TRAT
|
||||||
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
||||||
|
#elif TORUN_PT50_2015
|
||||||
|
private ControlComponent_Torino2015.UserControl1 ctrlBrdComponent;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private System.Windows.Forms.ToolStripMenuItem benchTSMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem benchTSMenuItem;
|
||||||
|
|||||||
@@ -38,8 +38,10 @@ namespace TBF
|
|||||||
|
|
||||||
#if DN100 || MUNICH
|
#if DN100 || MUNICH
|
||||||
public const int WMsCount = 3;
|
public const int WMsCount = 3;
|
||||||
#else // if FUZHOU300 || FUZHOU150 || PT200IL || TORINO50 || BADGER_MALA_TRAT
|
#elif FUZHOU300 || FUZHOU150 || PT200IL || TORINO50 || BADGER_MALA_TRAT
|
||||||
public const int WMsCount = 6;
|
public const int WMsCount = 6;
|
||||||
|
#elif TORUN_PT50_2015
|
||||||
|
public const int WMsCount = 20;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user