Пример #1
0
 public void CloseDemod()
 {
     if (Demodulator != null)
     {
         Demodulator = null;
     }
 }
Пример #2
0
        private void btnPpmDemod_Click(object sender, EventArgs e)
        {
            CloseDemod();

            if (SampleSource == null)
            {
                return;
            }

            PPMDemodulator ppm = new PPMDemodulator();

            ppm.Plot = new LibRXFFT.Components.DirectX.DirectXWaveformDisplay();
            ppm.Plot.SamplingRate = SampleSource.SamplingRate;
            ppm.Plot.Dock         = DockStyle.Fill;

            Form form = new Form();

            form.Controls.Add(ppm.Plot);
            form.Show();

            DigitalDemodulator demod = ppm;

            demod.SamplingRate = SampleSource.SamplingRate;
            demod.Init();
            Demodulator = demod;

            ManchesterBitSink dec = new ManchesterBitSink();

            dec.BitSink = new LogSink();

            demod.BitSink = dec.BitSink;
        }
Пример #3
0
        private void btnOpenASK_Click(object sender, EventArgs e)
        {
            CloseDemod();

            if (SampleSource == null)
            {
                return;
            }

            DigitalDemodulator demod = new ASKDemodulator();

            demod.SamplingRate = SampleSource.SamplingRate;
            demod.Init();
            Demodulator = demod;
        }
Пример #4
0
        private void btnPocsag_Click(object sender, EventArgs e)
        {
            CloseDemod();

            if (SampleSource == null)
            {
                return;
            }

            DigitalDemodulator demod = new PSKDemodulator();

            demod.BitSink = new POCSAGDecoder();

            demod.SamplingRate = SampleSource.SamplingRate;
            demod.Init();
            Demodulator = demod;
        }
Пример #5
0
 public void LuaSetDemod(DigitalDemodulator demod)
 {
     Demodulator         = demod;
     Demodulator.BitSink = this;
 }