using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace XdCxRhDW.DataEmulation { public static class DataEmulationHelper { private const string dll = @"AddIns\SignalEmulation.dll"; #region cpp dll Interop [DllImport(dll, EntryPoint = "genSignalsWithDtDf", CallingConvention = CallingConvention.Cdecl)] private extern static void GenSignalsWithDtDfCore(string file1, string file2, long fsHz, int sigLenMs, double dt, double df); #endregion /// /// 时频差信号文件仿真 /// /// 输出文件1 /// 输出文件2 /// 采样率Hz /// 信号时长秒 /// 时差秒 /// 频差Hz public static void GenSignalsWithDtDf(string file1,string file2,long fsHz,int sigLenMs,double dt,double df) { GenSignalsWithDtDfCore(file1, file2, fsHz, sigLenMs, dt, df); } } }