Exemple #1
0
        private void btnPeak_Click(object sender, EventArgs e)
        {
            AccelerationOffLineCommon.Bat bat = new AccelerationOffLineCommon.Bat();
            AccelerationOffLineCommon.Model.PeakRequest peak = new AccelerationOffLineCommon.Model.PeakRequest();
            peak.path    = @"H:\\工作文件汇总\\铁科院\\程序\\离线加速度\\cit\\CitData_160612060534_CHSS_11_11_Rms.idf";
            peak.segavgs = new double[] { 0.673, 0.786, 0.819 };

            string json = JsonConvert.SerializeObject(peak);

            string result = bat.ProcessPeak(json);
        }