示例#1
0
 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;
     }
 }
示例#2
0
        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;
            }
        }
示例#3
0
        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);
        }
示例#4
0
 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));
     }
 }
示例#5
0
        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);
        }
示例#6
0
 public MeasureGraph(CommonOptions commonOpts, params double[] coeffs)
     : base(commonOpts, coeffs)
 {
 }
示例#7
0
        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);
        }
示例#8
0
 public sendSVoltage(ushort step)
 {
     SVoltage = CommonOptions.scanVoltage(step);
 }
示例#9
0
 public PreciseSpectrum(CommonOptions cd)
     : this()
 {
     // better to clone here?
     myCommonOptions = cd;
 }
示例#10
0
 public MeasureGraph(CommonOptions commonOpts, params double[] coeffs)
     : base(commonOpts, coeffs)
 {
 }