示例#1
0
        /// <summary>
        /// 加载通道信息
        /// </summary>
        /// <param name="citfilePath"></param>
        private void LoadData(string citfilePath)
        {
            channelList = citHelper.GetDataChannelInfoHead(citfilePath);

            listView1.BeginUpdate();
            foreach (CitFileProcess.DataChannelInfo item in channelList)
            {
                listView1.Items.Add(item.sNameEn);

                listView1.Items[listView1.Items.Count - 1].SubItems.Add(item.sNameCh);
                listView1.Items[listView1.Items.Count - 1].SubItems.Add(item.fScale.ToString());
                listView1.Items[listView1.Items.Count - 1].SubItems.Add(item.fOffset.ToString());
                listView1.Items[listView1.Items.Count - 1].SubItems.Add(item.sUnit);
                Application.DoEvents();
            }
            listView1.EndUpdate();
        }
示例#2
0
        private void btnPower_Click(object sender, EventArgs e)
        {
            AccelerationOffLineCommon.PowerSpectrum power = new AccelerationOffLineCommon.PowerSpectrum();
            AccelerationOffLineCommon.Model.PowerSpectrumRequest request = new AccelerationOffLineCommon.Model.PowerSpectrumRequest();
            request.path        = @"H:\工作文件汇总\铁科院\程序\离线加速度\test\CitData_160612060534_CHSS_11.cit";
            request.channelName = "Fr_Vt_L_11";
            request.startMile   = 180;
            request.endMile     = 500;
            request.fourier     = 1024;
            request.timeLen     = 0.03;

            CitFileProcess.CitFileHelper citHelper = new CitFileProcess.CitFileHelper();
            var list = citHelper.GetDataChannelInfoHead(request.path);

            string json   = JsonConvert.SerializeObject(request);
            string result = power.Process(json);



            //PowerSpectrumProcess.Process process = new PowerSpectrumProcess.Process();
            //process.GetResult(request.path, request.channelName, request.startMile, request.endMile, request.fourier, request.timeLen);
        }