(1) Component wrapper modified for endurance tests (uint CyclePar[]), (2) Warsaw-END line size.
This commit is contained in:
@@ -7,13 +7,16 @@ namespace TBF.BenchControl.Elde
|
||||
{
|
||||
public enum Command
|
||||
{
|
||||
None = 0, /// Do nothing, just transfer data (route, etc.)
|
||||
Start = 1, /// Start the measurement
|
||||
Stop = 2, /// Stop the measurement
|
||||
None = 0, /// Do nothing, just transfer data (route, etc.)
|
||||
Start = 1, /// Start the measurement
|
||||
Stop = 2, /// Stop the measurement
|
||||
ReadDivTransition = 4,
|
||||
ReadExtremasOfPulses = 6,
|
||||
ReadShapesOfPulses = 7,
|
||||
ResetShapesOfPulses = 8,
|
||||
EnduranceCycleParamsUpload = 11,
|
||||
EnduranceCycleStart = 12,
|
||||
EnduranceCycleStop = 13,
|
||||
}
|
||||
|
||||
#if FUZHOU300 || PT200IL || TORINO50 || BADGER_MALA_TRAT || IPERLST || IPERLST_SPECIAL || BADGER_VELKA_TRAT || PUCHONG_PT200 || SLM_50 || GENESIS || MALTA_WSD25 || SLM_END || WARSAW_END
|
||||
|
||||
@@ -62,6 +62,8 @@ namespace TBF.BenchControl.Elde
|
||||
public uint AnalogInputRaw(int adcNr0, int bank) { return controlCom.AnalogInputRaw(adcNr0, bank); } /// adcNr0: 0=RV1, 1=RV2,... bank: 0=RV, 1=Temp
|
||||
public float ReferenceVolume { get { return controlCom.TotalRefVolume; } }
|
||||
public float VyslExt(int wmNr0, int what) { return controlCom.VyslExt(wmNr0, what); }
|
||||
public uint GetCyclePar(int ix) { return controlCom.GetCyclePar(ix); }
|
||||
public void SetCyclePar(int ix, uint val) { controlCom.SetCyclePar(ix, val); return; }
|
||||
|
||||
/// <summary> Extracted from the StatusP in RunDeviceBefore </summary>
|
||||
public bool EmergencyStop { get { return emergencyStop; } }
|
||||
|
||||
@@ -67,7 +67,10 @@ namespace TBF.BenchControl.Elde
|
||||
public uint AnalogInputRaw(int adcNr0, int bank) { return 0; } /// bank0=RV, bank1=Temp
|
||||
public float TotalRefVolume { get { return 0; } }
|
||||
public float VyslExt(int wmNr0, int what) { return 0; }
|
||||
public void SetWeight(int pos, double mass) { return; } /// not available in sim. mode
|
||||
public void SetWeight(int pos, double mass) { return; } /// not available in sim. mode
|
||||
|
||||
public uint GetCyclePar(int ix) { return 0; } /// dummy
|
||||
public void SetCyclePar(int ix, uint value) { return; } /// dummy
|
||||
|
||||
///
|
||||
/// Private initialization data updated by contructors of children components
|
||||
|
||||
@@ -66,6 +66,14 @@ namespace TBF.BenchControl.Elde
|
||||
public float MassRefVolume { get { return ctrlBrdComponent.ReferenceVolume[1]; } }
|
||||
#endif
|
||||
|
||||
#if SLM_END || WARSAW_END
|
||||
public uint GetCyclePar(int ix) { return ctrlBrdComponent.CyclePar[ix]; }
|
||||
public void SetCyclePar(int ix, uint val) { ctrlBrdComponent.CyclePar[ix] = val; }
|
||||
#else
|
||||
public uint GetCyclePar(int ix) { return 0; } /// Dummy
|
||||
public void SetCyclePar(int ix, uint val) { return; } /// Dummy
|
||||
#endif
|
||||
|
||||
public float VyslExt(int wmNr0, int what) { return ctrlBrdComponent.VyslExt[wmNr0, what]; }
|
||||
public void SetWeight(int pos, double mass)
|
||||
{
|
||||
|
||||
@@ -31,6 +31,8 @@ namespace TBF.BenchControl.Elde
|
||||
float TotalRefVolume { get; }
|
||||
float VyslExt(int wmNr0, int what);
|
||||
void SetWeight(int pos, double mass);
|
||||
uint GetCyclePar(int ix);
|
||||
void SetCyclePar(int ix, uint value);
|
||||
|
||||
/// <summary>
|
||||
/// Sends calibration and configuration data to the control board.
|
||||
|
||||
Reference in New Issue
Block a user