public Graph(CommonOptions commonOpts, params double[] coeffs) { Collectors = new Spectrum(commonOpts, coeffs); int length = coeffs.Length; _all = new int[length]; for (int i = 0; i < length; ++i) { _all[i] = i + 1; } }
public Graph(CommonOptions commonOpts, params double[] coeffs) { Collectors = new Spectrum(commonOpts, coeffs); int length = coeffs.Length; _all = new int[length]; for (int i = 0; i < length; ++i) { _all[i] = i + 1; } }
public virtual bool setScalingCoeff(byte col, ushort pnt, double mass) { // this graph CommonOptions used double value = mass * CommonOptions.scanVoltageRealNew(pnt); bool result = Collectors.RecomputeMassRows(col, value); if (result && axisMode == ScalableDataList.DisplayValue.Mass) { OnGraphDataModified(col); } return(result); }
public Spectrum(CommonOptions cd, params double[] coeffs) : base(coeffs.Length) { // better to clone here? CommonOptions = cd; if (coeffs.Length == 0) { throw new ArgumentOutOfRangeException("coeffs"); } foreach (double coeff in coeffs) { Add(new Collector(coeff, cd.scanVoltageRealNew)); } }
void loadCommonData(CommonOptions co) { // TODO: remove hard-coded numbers here (use constants in Config) setupNumericUpDown(expTimeNumericUpDown, 1, uint.MaxValue, co.eTimeReal); //setupNumericUpDown(idleTimeNumericUpDown, 10, 100, co.iTimeReal); setupNumericUpDown(d1VoltageNumericUpDown, 0, 3000, co.d1VReal, CommonOptions.dVConvert, CommonOptions.dVConvert); setupNumericUpDown(d2VoltageNumericUpDown, 0, 3000, co.d2VReal, CommonOptions.dVConvert, CommonOptions.dVConvert); setupNumericUpDown(d3VoltageNumericUpDown, 0, 3000, co.d3VReal, CommonOptions.dVConvert, CommonOptions.dVConvert); setupNumericUpDown(iVoltageNumericUpDown, 50, 100, co.iVoltageReal, CommonOptions.iVoltageConvert, CommonOptions.iVoltageConvert); setupNumericUpDown(eCurrentNumericUpDown, 0, 20, co.eCurrentReal, CommonOptions.eCurrentConvert, CommonOptions.eCurrentConvert); setupNumericUpDown(fV1NumericUpDown, 50, 100, co.fV1Real, CommonOptions.fV1Convert, CommonOptions.fV1Convert); setupNumericUpDown(fV2NumericUpDown, 50, 100, co.fV2Real, CommonOptions.fV2Convert, CommonOptions.fV2Convert); setupNumericUpDown(CPNumericUpDown, (decimal)0.01, (decimal)0.2, co.C); setupNumericUpDown(kNumericUpDown, (decimal)0.6, (decimal)0.9, co.K); }
public MeasureGraph(CommonOptions commonOpts, params double[] coeffs) : base(commonOpts, coeffs) { }
void loadCommonData(CommonOptions co) { // TODO: remove hard-coded numbers here (use constants in Config) setupNumericUpDown(expTimeNumericUpDown, 1, uint.MaxValue, co.eTimeReal); //setupNumericUpDown(idleTimeNumericUpDown, 10, 100, co.iTimeReal); setupNumericUpDown(d1VoltageNumericUpDown, 0, 3000, co.d1VReal, CommonOptions.dVConvert, CommonOptions.dVConvert); setupNumericUpDown(d2VoltageNumericUpDown, 0, 3000, co.d2VReal, CommonOptions.dVConvert, CommonOptions.dVConvert); setupNumericUpDown(d3VoltageNumericUpDown, 0, 3000, co.d3VReal, CommonOptions.dVConvert, CommonOptions.dVConvert); setupNumericUpDown(iVoltageNumericUpDown, 50, 100, co.iVoltageReal, CommonOptions.iVoltageConvert, CommonOptions.iVoltageConvert); setupNumericUpDown(eCurrentNumericUpDown, 0, 20, co.eCurrentReal, CommonOptions.eCurrentConvert, CommonOptions.eCurrentConvert); setupNumericUpDown(fV1NumericUpDown, 50, 100, co.fV1Real, CommonOptions.fV1Convert, CommonOptions.fV1Convert); setupNumericUpDown(fV2NumericUpDown, 50, 100, co.fV2Real, CommonOptions.fV2Convert, CommonOptions.fV2Convert); setupNumericUpDown(CPNumericUpDown, (decimal)0.01, (decimal)0.09, co.C); setupNumericUpDown(kNumericUpDown, (decimal)0.6, (decimal)0.9, co.K); }
public sendSVoltage(ushort step) { SVoltage = CommonOptions.scanVoltage(step); }
public PreciseSpectrum(CommonOptions cd) : this() { // better to clone here? myCommonOptions = cd; }
public MeasureGraph(CommonOptions commonOpts, params double[] coeffs) : base(commonOpts, coeffs) { }