Beispiel #1
0
        public override string GetDigitalStats(int ADBits, double ADHighVoltage, double ADLowVoltage)
        {
            Converter converter = new Converter(ADBits, ADHighVoltage, ADLowVoltage);

            StringBuilder stats = new StringBuilder();

            stats.AppendFormat("{0}:\t\t{1:0}\n",
                               "High Peak", converter.AnalogToDigital(m_Peak.Y));

            stats.AppendFormat("{0}:\t\t{1:0}\n",
                               "Low Peak", converter.AnalogToDigital(m_LowPeak.Y));

            stats.Append(GetAreaString());

            return(stats.ToString());
        }
Beispiel #2
0
        public override string GetDigitalStats(int ADBits, double ADHighVoltage, double ADLowVoltage)
        {
            Converter converter = new Converter(ADBits, ADHighVoltage, ADLowVoltage);

            StringBuilder triangleString = new StringBuilder();

            triangleString.AppendFormat("{0}:\t{1:0} @ {2:0.00} ns\n",
                                        "High Peak", converter.AnalogToDigital(m_Peak.Y), m_Peak.X);

            triangleString.AppendFormat("{0}:\t{1:0} @ {2:0.00} ns\n",
                                        "Low Peak", converter.AnalogToDigital(m_LowPeak.Y), m_LowPeak.X);

            triangleString.Append(GetAreaString());

            return(triangleString.ToString());
        }
        public override string GetDigitalStats(int ADBits, double ADHighVoltage, double ADLowVoltage)
        {
            StringBuilder gaussianString = new StringBuilder();

            Converter converter = new Converter(ADBits, ADHighVoltage, ADLowVoltage);

            gaussianString.AppendFormat("{0}:\t\t{1:0} @ {2:0.00} ns\n",
                                        "Peak",
                                        converter.AnalogToDigital(m_Peak.Y), m_Peak.X);
            gaussianString.AppendFormat("{0}:\t{1:0} @ {2:0.00} ns\n",
                                        "T50 Raise",
                                        converter.AnalogToDigital(m_T50Raise.Y), m_T50Raise.X);
            gaussianString.AppendFormat("{0}:\t\t{1:0} @ {2:0.00} ns\n",
                                        "T50 Fall",
                                        converter.AnalogToDigital(m_T50Fall.Y), m_T50Fall.X);

            gaussianString.Append(GetTOFAndAreaStats());

            return(gaussianString.ToString());
        }