예제 #1
0
        public static NoiseMeasurementDetailResults NoiseMeasurementDetailResultSingle(SerialPort port, string command, string fweight, string tweight, string metric)
        {
            XL2.NoiseMeasurementDetailResults R1 = new XL2.NoiseMeasurementDetailResults();
            List <string> result1 = XL2.GetXL2String(port, command);

            //foreach (var x in result1)
            //    Console.WriteLine("full results = {0}" ,x);
            R1.FreqWeight         = fweight;
            R1.TimeWeight         = tweight;
            R1.Metric             = metric;
            R1.Overall            = result1[0];
            R1.MeasurementQuality = result1[1];
            return(R1);
        }
예제 #2
0
        public static NoiseMeasurementDetailResults NoiseMeasurementDetailResultThird(SerialPort port, string command, string fweight, string tweight, string metric)
        {
            XL2.NoiseMeasurementDetailResults R1 = new XL2.NoiseMeasurementDetailResults();
            List <string> result1 = XL2.GetXL2String(port, command);

            //foreach (var x in result1)
            //    Console.WriteLine("full results = {0}" ,x);
            R1.FreqWeight         = fweight;
            R1.TimeWeight         = tweight;
            R1.Metric             = metric;
            R1.Hz6                = result1[0];
            R1.Hz8                = result1[1];
            R1.Hz10               = result1[2];
            R1.Hz12               = result1[3];
            R1.Hz16               = result1[4];
            R1.Hz20               = result1[5];
            R1.Hz25               = result1[6];
            R1.Hz31               = result1[7];
            R1.Hz40               = result1[8];
            R1.Hz50               = result1[9];
            R1.Hz63               = result1[10];
            R1.Hz80               = result1[11];
            R1.Hz100              = result1[12];
            R1.Hz125              = result1[13];
            R1.Hz160              = result1[14];
            R1.Hz200              = result1[15];
            R1.Hz250              = result1[16];
            R1.Hz315              = result1[17];
            R1.Hz400              = result1[18];
            R1.Hz500              = result1[19];
            R1.Hz630              = result1[20];
            R1.Hz800              = result1[21];
            R1.Hz1000             = result1[22];
            R1.Hz1250             = result1[23];
            R1.Hz1600             = result1[24];
            R1.Hz2000             = result1[25];
            R1.Hz2500             = result1[26];
            R1.Hz3150             = result1[27];
            R1.Hz4000             = result1[28];
            R1.Hz5000             = result1[29];
            R1.Hz6300             = result1[30];
            R1.Hz8000             = result1[31];
            R1.Hz10000            = result1[32];
            R1.Hz12500            = result1[33];
            R1.Hz16000            = result1[34];
            R1.Hz20000            = result1[35];
            R1.MeasurementQuality = result1[36];
            return(R1);
        }