private static void dumpIQToWaveFile(string input, string output, CancellationTokenSource cts) { var loader = new IQFromCSV(); loader.Chain(new IQ2Wave(Frequency, SampleRate)) .Chain(new SaveToFilePipeline <float>(output, x => { return($"{x}"); }, "data") { AutoFlush = true }) ; loader.Start(new string[] { input }, cts.Token); Console.WriteLine("done"); }
private static void downSameTest(string input, string output, CancellationTokenSource cts) { var loader = new IQFromCSV(); loader.Chain(new SkipSample <Complex>(1000)) .Chain(new SaveToFilePipeline <Complex>(output, x => { return($"{x.Image},{x.Real}"); }, "I,Q") { AutoFlush = true }) ; loader.Start(new string[] { input }, cts.Token); Console.WriteLine("done"); }
private static void dumpIQToLPF_Wave_MA_SQFile(string input, string output, float threshhold, CancellationTokenSource cts) { var loader = new IQFromCSV(); loader.Chain(new IQ2Wave(Frequency, SampleRate)) .Chain(new LPF(Frequency, SampleRate, 1000)) .Chain(new MoveAverage()) .Chain(new SignalCompare(threshhold)) .Chain(new SaveToFilePipeline <int>(output, x => { return($"{x}"); }, "data") { AutoFlush = false }) ; loader.Start(new string[] { input }, cts.Token); }