Exemplo n.º 1
0
 public void Start(Radio.SamplesAvailableDelegate callback)
 {
     if (_HackRFDevice == null)
     {
         throw new ApplicationException("No device selected");
     }
     _callback = callback;
     try
     {
         _HackRFDevice.Start();
     }
     catch
     {
         Open();
         _HackRFDevice.Start();
     }
 }
Exemplo n.º 2
0
 public void Start(SDRSharp.Radio.SamplesAvailableDelegate callback)
 {
     if (this._device == null)
     {
         throw new ApplicationException("No device selected");
     }
     this._callback = callback;
     try
     {
         this._device.Start();
     }
     catch
     {
         this.Open();
         this._device.Start();
     }
 }
Exemplo n.º 3
0
        public void Start(Radio.SamplesAvailableDelegate callback)
        {
            if (_device == null)
            {
                throw new ApplicationException("No device selected");
            }
            _callback = callback;

            try
            {
                _device.Start();
            }
            catch
            {
                Open();
                _device.Start();
            }
        }
Exemplo n.º 4
0
        public void Start(Radio.SamplesAvailableDelegate callback)
        {
            if (this._LimeDev == null)
            {
                throw new ApplicationException("No device selected");
            }


            _callback = callback;

            try
            {
                _LimeDev.Start();
            }
            catch
            {
                this.Open();
                _LimeDev.Start();
            }
        }
Exemplo n.º 5
0
        public void Start(Radio.SamplesAvailableDelegate callback)
        {
            try
            {
                _gui.grpChannel.Enabled         = false;
                _gui.samplerateComboBox.Enabled = false;

                if (this._LimeDev == null)
                {
                    _LimeDev = new LimeSDRDevice(this);
                    _LimeDev.SamplesAvailable  += LimeDevice_SamplesAvailable;
                    _LimeDev.SampleRateChanged += LimeSDRDevice_SampleRateChanged;
                    _LimeDev.SampleRate         = _sampleRate;
                }

                _callback = callback;

                if (!_LimeDev.Open(RadioName))
                {
                    _LimeDev.Close();
                    _LimeDev.Open(RadioName);
                }

                _LimeDev.GFIR_BPF_Width = _gui._GFIR_BPF_Width;
                _LimeDev.LPBW           = _gui.LPBW;
                _LimeDev.SampleRate     = _sampleRate;
                _LimeDev.Start(_channel, _lpbw, _gain, _ant, _sampleRate, _specOffset);
                _LimeDev.LPBW = _gui.LPBW;

                _isStreaming = true;
                _gui.btnRadioInfo.Enabled    = true;
                _gui.btnRadioRefresh.Enabled = false;
            }
            catch (Exception ex)
            {
                _gui.grpChannel.Enabled         = true;
                _gui.samplerateComboBox.Enabled = true;
                Debug.Write(ex.ToString());
            }
        }
Exemplo n.º 6
0
 public void Start(Radio.SamplesAvailableDelegate callback)
 {
     _callback = callback;
     SDRplayDevice.SDRplay_Initalisation();
 }