Exemple #1
0
        private void btnFormat_Click(object sender, EventArgs e)
        {
            DataFormatDialog dlg = new DataFormatDialog();

            dlg.SamplingRate = SamplingRate;
            dlg.SampleFormat = SampleFormat;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                SampleFormat = dlg.SampleFormat;

                _SampleSource.DataFormat = SampleFormat;
                _SampleSource.ForceInputRate(dlg.SamplingRate);
                NetShmemSink.Rate = dlg.SamplingRate * 2;
            }
        }
Exemple #2
0
        public HiQSDRDeviceControl()
        {
            InitializeComponent();

            NetShmemSink = new SharedMem(-2, 0, "Network Output Node");

            _SampleSource = new ShmemSampleSource("NetworkReader", NetShmemSink.DstChan, 1, 0);
            _SampleSource.InvertedSpectrum     = false;
            _SampleSource.SamplingRateChanged += new EventHandler(_SampleSource_SamplingRateChanged);
            _SampleSource.DataFormat           = DataFormat;
            _SampleSource.ForceInputRate(CurrentRate);

            Endpoint = new IPEndPoint(IPAddress.Any, 0);

            TransferThread = new Thread(TransferThreadMain);
            TransferThread.Start();

            radioAcqOff.Checked = true;
        }