123456789101112131415161718192021222324252627282930313233 |
- 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
- /// <summary>
- /// 时频差信号文件仿真
- /// </summary>
- /// <param name="file1">输出文件1</param>
- /// <param name="file2">输出文件2</param>
- /// <param name="fsHz">采样率Hz</param>
- /// <param name="sigLenMs">信号时长秒</param>
- /// <param name="dt">时差秒</param>
- /// <param name="df">频差Hz</param>
- public static void GenSignalsWithDtDf(string file1,string file2,long fsHz,int sigLenMs,double dt,double df)
- {
- GenSignalsWithDtDfCore(file1, file2, fsHz, sigLenMs, dt, df);
- }
- }
- }
|