Work in progress: Diverter calibration

This commit is contained in:
Milan Hanajik
2015-03-24 02:45:36 +01:00
parent 1c46002aaa
commit 2902f36332
4 changed files with 308 additions and 8 deletions
@@ -13,7 +13,9 @@ namespace TBF.BenchControl.Elde.Diverter
///
/// Serialized parameters
///
public int BitPosition;
public int BitPosition; /// 0..63
public int StartingEdge; /// 0..100 in %, threshold for the ADC value to start the test
public int StoppingEdge; /// 0..100 in %, threshold for the ADC value to start the test
/// Private parameterless constructor invoked by all other (public) constructors
DiverterCfg()
@@ -21,7 +23,9 @@ namespace TBF.BenchControl.Elde.Diverter
Name = "Div";
ParentName = "CB";
BitPosition = 0;
}
StartingEdge = 50;
StoppingEdge = 50;
}
public DiverterCfg(IComponentFactory factory)
: this()
@@ -31,10 +35,12 @@ namespace TBF.BenchControl.Elde.Diverter
public string ToString(int i)
{
return string.Format("Name={0}, Parent={1}, Bit={2}",
return string.Format("Name={0}, Parent={1}, Bit={2}, StartEdge={3}%, StopEdge={4}%",
Name,
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
BitPosition);
BitPosition,
StartingEdge,
StoppingEdge);
}
}
}