예제 #1
0
        private void btnResmaple_Click(object sender, RoutedEventArgs e)
        {
            //double[] singalData= LFMSingnal();

            List <double> idatList  = new List <double>();
            List <double> qdataList = new List <double>();

            readIQFromCSV(idatList, qdataList);

            double[] singalIData = idatList.ToArray();
            double[] singalQData = qdataList.ToArray();

            Resmaple_Fir resmaple = new Resmaple_Fir();

            double[] idata = resmaple.uniformResample(singalIData, (Int64)(4 * 1e9), (Int64)(200 * 1e6));
            double[] qdata = resmaple.uniformResample(singalQData, (Int64)(4 * 1e9), (Int64)(200 * 1e6));

            downFreq(idata, qdata);

            string csvFile = "tempIQdata.csv";


            writeToCSV(csvFile, idata, qdata);



            freqDomi("UPresompe.csv", idata, qdata, 200 * 1e6);
        }
예제 #2
0
        /// <summary>
        /// 下变频数据
        /// </summary>
        /// <param name="singalIData"></param>
        /// <param name="singalQData"></param>
        private void downFreq(double[] singalIData, double[] singalQData)
        {
            Resmaple_Fir resmaple = new Resmaple_Fir();

            double[] idata = resmaple.uniformResample(singalIData, (Int64)(160 * 1e6), (Int64)(4 * 1e9));

            //double[] singalDataq = LFMSingnal(false);
            //  double[] singalDataqDouble = singalDataq.Select(a => (double)a).ToArray();
            double[] qdata = resmaple.uniformResample(singalQData, (Int64)(160 * 1e6), (Int64)(4 * 1e9));

            freqDomi("Downresompe.csv", idata, qdata, 160 * 1e6);
        }
예제 #3
0
        private void btnResmapleLFm_Click(object sender, RoutedEventArgs e)
        {
            double[] singalIData = LFMSingnal();;
            double[] singalQData = LFMSingnal(false);

            Resmaple_Fir resmaple = new Resmaple_Fir();

            double[] idata = resmaple.uniformResample(singalIData, (Int64)(4 * 1e9), (Int64)(200 * 1e6));
            double[] qdata = resmaple.uniformResample(singalQData, (Int64)(4 * 1e9), (Int64)(200 * 1e6));

            //downFreq(idata,qdata);

            string csvFile = "tempIQdata.csv";

            writeToCSV(csvFile, idata, qdata);

            freqDomi("UPresompe.csv", idata, qdata, 200 * 1e6);
        }