public SettingsControl(ISharpControl settingsControl, FrontEndControl frontEndControl, BasicProcessor basicProcessor) { InitializeComponent(); _settingsControl = settingsControl; _basicProcessor = basicProcessor; _frontEndControl = frontEndControl; }
public ScannerPanel(ISharpControl control) { InitializeComponent(); _controlInterface = control; if (LicenseManager.UsageMode==LicenseUsageMode.Runtime) { _settingsPersister = new SettingsPersister(); _entries = _settingsPersister.ReadStoredFrequencies(); _groups = GetGroupsFromEntries(); ProcessGroups(null); } /* foreach (DataGridViewColumn column in frequencyDataGridView.Columns) { column.SortMode = DataGridViewColumnSortMode.NotSortable; }*/ _scanner = new Scanner(_controlInterface, ScanNextFrequencyCallback, ScanNextFrequencyTimeLeftCallback); _scanner.SetScanStateChangedCallback = ScanStateChanged; _controlInterface.PropertyChanged += PropertyChangedEventHandler; memoryEntryBindingSource.DataSource = _displayedEntries; #if(DEBUG) SetupDebugSession("BOS"); #endif }
public LevelMeterPanel(ISharpControl control) { InitializeComponent(); _controlInterface = control; ToolWin = new LevelMeterTool(); ToolWin = new LevelMeterTool(); ToolWin.Show(); ToolWin.Visible = false; OnLevelUpdateEvent = new OnLevelUpdate(ToolWin.OnLevelUpdate); _fft_buffer = new byte[_controlInterface.FFTResolution]; _smaTunedFrequecy = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedPeakPowerBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); trackBar1.Value = 100; UpdateTimer = new Timer(); UpdateTimer.Interval = _UPDATE_TIMER_INTERVALL; UpdateTimer.Tick += new EventHandler(UpdateTimer_Tick); MeasureTimer = new Timer(); MeasureTimer.Interval = _MEASURE_TIMER_INTERVALL; MeasureTimer.Tick += new EventHandler(MeasureTimer_Tick); Init(); }
public IFProcessor(ISharpControl control) { this._control = control; this._control.PropertyChanged += new PropertyChangedEventHandler(this.NotifyPropertyChangedHandler); this._fftTimer = new System.Windows.Forms.Timer(); this._fftTimer.Tick += new EventHandler(this.fftTimer_Tick); this._fftTimer.Interval = 40; this._fftBins = 8192; this.InitFFTBuffers(); this.BuildFFTWindow(); this._spectrumAnalyzer = new SpectrumAnalyzer(); this._spectrumAnalyzer.Dock = DockStyle.Fill; this._spectrumAnalyzer.Margin = new Padding(0, 0, 0, 0); this._spectrumAnalyzer.DisplayRange = 130; this._spectrumAnalyzer.EnableFilter = false; this._spectrumAnalyzer.EnableHotTracking = false; this._spectrumAnalyzer.EnableSideFilterResize = true; this._spectrumAnalyzer.EnableFilterMove = false; this._spectrumAnalyzer.BandType = BandType.Center; this._spectrumAnalyzer.StepSize = 1000; this._spectrumAnalyzer.UseSmoothing = true; this._spectrumAnalyzer.Attack = 0.9f; this._spectrumAnalyzer.Decay = 0.6f; this._spectrumAnalyzer.StatusText = "IF Spectrum"; this._spectrumAnalyzer.FrequencyChanged += new ManualFrequencyChangeEventHandler(this.spectrumAnalyzer_FrequencyChanged); this._spectrumAnalyzer.CenterFrequencyChanged += new ManualFrequencyChangeEventHandler(this.spectrumAnalyzer_CenterFrequencyChanged); this._spectrumAnalyzer.BandwidthChanged += new ManualBandwidthChangeEventHandler(this.spectrumAnalyzer_BandwidthChanged); this._spectrumAnalyzer.VisibleChanged += new EventHandler(this.spectrumAnalyzer_VisibleChanged); this._control.RegisterStreamHook((object) this, ProcessorType.DecimatedAndFilteredIQ); this._control.RegisterFrontControl((UserControl) this._spectrumAnalyzer, (PluginPosition) Utils.GetIntSetting("zoomPosition", 1)); }
public Parser(ISharpControl control) { _control = control; METHODS.Add("audiogain", CmdAudioGain); METHODS.Add("audioismuted", CmdAudioIsMuted); METHODS.Add("centrefrequency", CmdCentreFrequency); METHODS.Add("frequency", CmdFrequency); METHODS.Add("detectortype", CmdDetectorType); METHODS.Add("isplaying", CmdIsPlaying); METHODS.Add("sourceistunable", CmdSourceIsTunable); METHODS.Add("squelchenabled", CmdSquelchEnabled); METHODS.Add("squelchthreshold", CmdSquelchThreshold); METHODS.Add("fmstereo", CmdFmStereo); METHODS.Add("filtertype", CmdFilterType); METHODS.Add("filterbandwidth", CmdFilterBandwidth); METHODS.Add("filterorder", CmdFilterOrder); METHODS.Add("start", CmdAudioGain); METHODS.Add("stop", CmdAudioGain); METHODS.Add("close", CmdAudioGain); }
public LevelMeterPanel(ISharpControl control) { InitializeComponent(); _controlInterface = control; ToolWin = new LevelMeterTool(); ToolWin = new LevelMeterTool(); ToolWin.Show(); ToolWin.Visible = false; OnLevelUpdateEvent = new OnLevelUpdate(ToolWin.OnLevelUpdate); _fft_buffer = new byte[_controlInterface.FFTResolution]; _smaTunedFrequecy = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedPeakPowerBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); trackBar1.Value = 100; UpdateTimer = new Timer(); UpdateTimer.Interval = _UPDATE_TIMER_INTERVALL; UpdateTimer.Tick += new EventHandler(UpdateTimer_Tick); MeasureTimer = new Timer(); MeasureTimer.Interval = _MEASURE_TIMER_INTERVALL; MeasureTimer.Tick += new EventHandler(MeasureTimer_Tick); Init(); }
public ControlPanel(ISharpControl control) { InitializeComponent(); _parser = new Parser(control); _control = control; checkNetwork.Checked = Utils.GetBooleanSetting(_settingServerEn, true); numPort.Value = Utils.GetIntSetting(_settingServerPort, PORT); numPort.Enabled = !checkNetwork.Checked; checkSerial.Checked = Utils.GetBooleanSetting(_settingSerialEn, true); string[] ports = Serial.GetPorts(); if (ports.Length > 0) { comboSerial.Enabled = !checkSerial.Checked; comboSerial.Items.AddRange(Serial.GetPorts()); comboSerial.SelectedIndex = 0; comboSerial.SelectedItem = Utils.GetStringSetting(_settingSerialPort, ""); } else { checkSerial.Checked = false; checkSerial.Enabled = false; comboSerial.Enabled = false; } ServerControl(); SerialControl(); }
public void Initialize(ISharpControl control) { _control = control; _gui = new SpectrumAnalyzerPanel(); _gui.OnScanning += OnScanning; _drawing = new SpectrumAnalyzerDrawing(); _drawing.SetRanges(_gui.StartFreq, _gui.EndFreq, _gui.Step); if (_gui.ShowSpectrum == false) { _drawing.Hide(); } _timer = new System.Threading.Timer(state => OnScanning(), null, System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite); _gui.OnShowSpectrum += (show) => { if (show) { _drawing.Show(); } else { _drawing.Hide(); } }; _gui.OnExport += Export; _gui.OnAutoScan += AutoScan; _control.RegisterFrontControl(_drawing, PluginPosition.Bottom); _control.RegisterStreamHook(this, ProcessorType.RawIQ); AutoScan(); }
public void Initialize(ISharpControl control) { _processor = new SignalFinderProcessor(control); _processor.Enabled = false; _controlPanel = new SignalFinderPanel(_processor); }
public ScannerPanel(ISharpControl control) { InitializeComponent(); _controlInterface = control; if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) { _settingsPersister = new SettingsPersister(); _entries = _settingsPersister.ReadStoredFrequencies(); _groups = GetGroupsFromEntries(); ProcessGroups(null); } /* * foreach (DataGridViewColumn column in frequencyDataGridView.Columns) * { * column.SortMode = DataGridViewColumnSortMode.NotSortable; * }*/ _scanner = new Scanner(_controlInterface, ScanNextFrequencyCallback, ScanNextFrequencyTimeLeftCallback); _scanner.SetScanStateChangedCallback = ScanStateChanged; _controlInterface.PropertyChanged += PropertyChangedEventHandler; memoryEntryBindingSource.DataSource = _displayedEntries; #if (DEBUG) SetupDebugSession("BOS"); #endif }
public MPXProcessor(ISharpControl control) { this._control = control; this._control.PropertyChanged += new PropertyChangedEventHandler(this.NotifyPropertyChangedHandler); this._fftTimer = new System.Windows.Forms.Timer(); this._fftTimer.Tick += new EventHandler(this.fftTimer_Tick); this._fftTimer.Interval = 40; this._fftBins = 4096; this.InitFFTBuffers(); this.BuildFFTWindow(); this._spectrumAnalyzer = new SpectrumAnalyzer(); this._spectrumAnalyzer.Dock = DockStyle.Fill; this._spectrumAnalyzer.Margin = new Padding(0, 0, 0, 0); this._spectrumAnalyzer.DisplayRange = 90; this._spectrumAnalyzer.EnableFilter = false; this._spectrumAnalyzer.EnableHotTracking = false; this._spectrumAnalyzer.EnableFrequencyMarker = false; this._spectrumAnalyzer.StepSize = 19000; this._spectrumAnalyzer.UseSmoothing = true; this._spectrumAnalyzer.SpectrumWidth = 100000; this._spectrumAnalyzer.Frequency = (long) (this._spectrumAnalyzer.SpectrumWidth / 2); this._spectrumAnalyzer.CenterFrequency = (long) (this._spectrumAnalyzer.SpectrumWidth / 2); this._spectrumAnalyzer.Attack = 0.9f; this._spectrumAnalyzer.Decay = 0.6f; this._spectrumAnalyzer.StatusText = "FM MPX Spectrum"; this._spectrumAnalyzer.FrequencyChanged += new ManualFrequencyChangeEventHandler(this.spectrumAnalyzer_FrequencyChanged); this._spectrumAnalyzer.CenterFrequencyChanged += new ManualFrequencyChangeEventHandler(this.spectrumAnalyzer_CenterFrequencyChanged); this._spectrumAnalyzer.VisibleChanged += new EventHandler(this.spectrumAnalyzer_VisibleChanged); this._control.RegisterStreamHook((object) this, ProcessorType.FMMPX); this._control.RegisterFrontControl((UserControl) this._spectrumAnalyzer, (PluginPosition) Utils.GetIntSetting("zoomPosition", 1)); }
public void SetControl(object control) { this._control = (ISharpControl)control; if (this._control != null) { this._control.PropertyChanged += this.Control_PropertyChanged; } }
public void Initialize(ISharpControl control) { _control = control; _serialPort = new SerialPortCtrl(); _serialPort.OnFrequencyChange += UpdateFrequency; _controlPanel = new SerialControllerPanel(_serialPort); _controlPanel.readSettings(); }
public void Initialize(ISharpControl control) { this._control = control; this._processor = new NoiseBlankerProcessor(); this._processor.Enabled = Utils.GetBooleanSetting("NBEnabled"); this._processor.NoiseThreshold = Utils.GetIntSetting("NBThreshold", 80); this._processor.PulseWidth = Utils.GetDoubleSetting("NBPulseWidth", 10.0); this._guiControl = new ProcessorPanel(this._processor); this._control.RegisterStreamHook((object) this._processor, ProcessorType.RawIQ); }
public void Initialize(ISharpControl control) { gui = new ControlPanel(control); gui.FrequencyDial.AllowStepChanges = true; gui.FilterBandwidthDial.AllowStepChanges = true; gui.ZoomDial.AllowStepChanges = false; gui.VolumeDial.AllowStepChanges = false; gui.SquelchDial.AllowStepChanges = false; }
public void Initialize(ISharpControl control) { this._control = control; this._processor = new NoiseBlankerProcessor(); this._processor.Enabled = Utils.GetBooleanSetting("NBEnabled"); this._processor.NoiseThreshold = Utils.GetIntSetting("NBThreshold", 80); this._processor.PulseWidth = Utils.GetDoubleSetting("NBPulseWidth", 10.0); this._guiControl = new ProcessorPanel(this._processor); this._control.RegisterStreamHook(this._processor, ProcessorType.RawIQ); }
public SignalFinderProcessor(ISharpControl control) { _control = control; _display = new SignalFinderDisplay(); _control.RegisterStreamHook(this, Radio.ProcessorType.RawIQ); _control.RegisterFrontControl(_display, PluginPosition.Bottom); _display.Visible = true; }
public void Initialize(ISharpControl control) { _control = control; _frontPanel = new FrontPanel(_control); _controlPanel = new ControlPanel(_frontPanel); _netServer = new SdrNetServer(); _netServer.Start(); _control.RegisterFrontControl(_frontPanel, PluginPosition.Top); _control.RegisterStreamHook(this, ProcessorType.FilteredAudioOutput); }
public Scanner(ISharpControl controlInterface, ScanNextFrequency Callback, ScanNextFrequencyTimeLeft CallbackTimeLeft) { _controlInterface = controlInterface; _scanNextFrequencyCallBack = Callback; _scanNextFrequencyTimeLeftCallBack = CallbackTimeLeft; _timerLevelInspect.Elapsed += new System.Timers.ElapsedEventHandler(_timerLevelInspect_Elapsed); _timerLevelInspect.Enabled = false; InitAverager(); _fft_buffer = new byte[_controlInterface.FFTResolution]; _timerLevelInspect.Interval = _SCAN_TIMER_INTERVALL; }
public void Initialize(ISharpControl control) { this._ifProcessor = new IFProcessor(control); this._ifProcessor.EnableFilter = Utils.GetBooleanSetting("enableZoomFFTFilter"); this._ifProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomIF"); this._mpxProcessor = new MPXProcessor(control); this._mpxProcessor.ControlEnabled = Utils.GetBooleanSetting("enableZoomMPX"); this._afProcessor = new AFProcessor(control); this._afProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomAF"); this._controlPanel = new ZoomPanel(this._ifProcessor, this._mpxProcessor, this._afProcessor); }
public void Initialize(ISharpControl control) { Console.WriteLine("Initialize Plugin\r\n"); control_ = control; _UDPaudioProcessor.Enabled = false; control_.RegisterStreamHook(_UDPaudioProcessor, ProcessorType.FilteredAudioOutput); _UDPaudioStreamer = new SimpleStreamer(_UDPaudioProcessor, "127.0.0.1", 7355); _controlpanel = new Controlpanel(); _controlpanel.StartStreamingAF += SDRSharp_StreamerChanged; }
public BasicRecorder(ISharpControl control, RecordingMode mode, WavSampleFormat format, BasicRecorderOutput outputType) : base(control, mode, format) { //Set this.outputType = outputType; //Create output CreateNewOutput(); //Create output.Open(this); }
public void Initialize(ISharpControl control) { try { this.control = control; } catch (Exception exception) { Log.LogException(exception); } }
public void Initialize(ISharpControl control) { _control = control; _control.PropertyChanged += PropertyChangedHandler; _LastRadioFrequency = _control.Frequency; _LastRadioMode = _control.DetectorType; _Protocol = new Protocol_TS50(this); _serialPort = new SerialPortCtrl(_Protocol); _controlPanel = new SerialControllerPanel(_serialPort); _controlPanel.readSettings(); }
public void Initialize(ISharpControl control) { _frontEndControl = new FrontEndControl(control); _basicProcessor = new BasicProcessor(control, _frontEndControl); _settingsControl = new SettingsControl(control, _basicProcessor); control.RegisterStreamHook(_basicProcessor, Radio.ProcessorType.FilteredAudioOutput); control.RegisterFrontControl(_frontEndControl, PluginPosition.Bottom); _basicProcessor.Enabled = true; }
public void Initialize(ISharpControl control) { _frontEndControl = new FrontEndControl(control); _basicProcessor = new BasicProcessor(control, _frontEndControl); _settingsControl = new SettingsControl(control, _frontEndControl, _basicProcessor); control.RegisterStreamHook(_basicProcessor, SDRSharp.Radio.ProcessorType.FilteredAudioOutput); control.RegisterFrontControl(_frontEndControl, PluginPosition.Bottom); _basicProcessor.Enabled = true; }
public Scanner(ISharpControl controlInterface, ScanNextFrequency Callback, ScanNextFrequencyTimeLeft CallbackTimeLeft) { _controlInterface = controlInterface; _scanNextFrequencyCallBack = Callback; _scanNextFrequencyTimeLeftCallBack = CallbackTimeLeft; _timerLevelInspect.Elapsed += new System.Timers.ElapsedEventHandler(_timerLevelInspect_Elapsed); _timerLevelInspect.Enabled = false; InitAverager(); _fft_buffer = new byte[_controlInterface.FFTResolution]; _timerLevelInspect.Interval = _SCAN_TIMER_INTERVALL; }
public void Initialize(ISharpControl control) { _control = control; _control.PropertyChanged += new PropertyChangedEventHandler(PropertyChangedHandler); _audioProcessor = new AudioProcessor(); _control.RegisterStreamHook(_audioProcessor); _guiControl = new AudioProcessorPanel(_audioProcessor); }
public void Initialize(ISharpControl control) { _control = control; _control.PropertyChanged += new PropertyChangedEventHandler(PropertyChangedHandler); _audioProcessor = new AudioProcessor(); _control.RegisterStreamHook(_audioProcessor); _guiControl = new AudioProcessorPanel(_audioProcessor); }
public FrequencyManagerPanel(ISharpControl control) { this.InitializeComponent(); this._controlInterface = control; if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) { this._settingsPersister = new SettingsPersister(); this._entries = this._settingsPersister.ReadStoredFrequencies(); this._groups = this.GetGroupsFromEntries(); this.ProcessGroups(null); } this.memoryEntryBindingSource.DataSource = this._displayedEntries; }
public void Initialize(ISharpControl control) { this._control = control; this._audioProcessor = new AudioProcessor(); this._control.RegisterStreamHook((object) this._audioProcessor, ProcessorType.FilteredAudioOutput); this._ifProcessor = new IFProcessor(); this._control.RegisterStreamHook((object) this._ifProcessor, ProcessorType.DecimatedAndFilteredIQ); this._ifProcessor.NoiseThreshold = Utils.GetIntSetting("DNRIThreshold", -30); this._ifProcessor.Enabled = Utils.GetBooleanSetting("DNRIEnabled"); this._audioProcessor.NoiseThreshold = Utils.GetIntSetting("DNRAThreshold", -70); this._audioProcessor.Enabled = Utils.GetBooleanSetting("DNRAEnabled"); this._guiControl = new ProcessorPanel((INoiseProcessor) this._ifProcessor, (INoiseProcessor) this._audioProcessor); }
public void Initialize(ISharpControl control) { this._control = control; this._audioProcessor = new AudioProcessor(); this._control.RegisterStreamHook(this._audioProcessor, ProcessorType.FilteredAudioOutput); this._ifProcessor = new IFProcessor(); this._control.RegisterStreamHook(this._ifProcessor, ProcessorType.DecimatedAndFilteredIQ); this._ifProcessor.NoiseThreshold = Utils.GetIntSetting("DNRIThreshold", -30); this._ifProcessor.Enabled = Utils.GetBooleanSetting("DNRIEnabled"); this._audioProcessor.NoiseThreshold = Utils.GetIntSetting("DNRAThreshold", -70); this._audioProcessor.Enabled = Utils.GetBooleanSetting("DNRAEnabled"); this._guiControl = new ProcessorPanel(this._ifProcessor, this._audioProcessor); }
public RDSOutputPanel(ISharpControl control) { try { this.InitializeComponent(); this._controlInterface = control; } catch (Exception ex) { string text = string.Format("Error {0}", ex.Message); MessageBox.Show(text, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); } }
public EqualizerPanel(ISharpControl control, EqualizerProcessor audioProcessor) { this.InitializeComponent(); this._control = control; this._audioProcessor = audioProcessor; this.tbHighGain.Value = (int)(this._audioProcessor.HighGain * 8f); this.tbMedGain.Value = (int)(this._audioProcessor.MidGain * 8f); this.tbLowGain.Value = (int)(this._audioProcessor.LowGain * 8f); this.numHighCutoff.Value = (int)this._audioProcessor.HighCutoff; this.numLowCutoff.Value = (int)this._audioProcessor.LowCutoff; this.enableButton.Checked = this._audioProcessor.Enabled; this.bassButton.Checked = this._audioProcessor.BassBoost; }
public void Initialize(ISharpControl control) { _ifProcessor = new IFProcessor(control); _ifProcessor.EnableFilter = Utils.GetBooleanSetting("enableZoomFFTFilter"); _ifProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomIF"); _mpxProcessor = new MPXProcessor(control); _mpxProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomMPX"); _afProcessor = new AFProcessor(control); _afProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomAF"); _controlPanel = new ZoomPanel(_ifProcessor, _mpxProcessor, _afProcessor); }
public void Initialize(ISharpControl control) { _guiControl = new AutoStartPanel(); _control = control; Timer timer = new Timer(); timer.Interval = DEFAULT_INTERVAL; timer.Tick += (sender, e) => { timer.Enabled = false; StartRadio(); }; timer.Enabled = true; }
public RecordingPanel(ISharpControl control) { this.InitializeComponent(); this._control = control; this._audioProcessor.Enabled = false; this._iqProcessor.Enabled = false; this._control.RegisterStreamHook((object) this._iqProcessor, ProcessorType.RawIQ); this._control.RegisterStreamHook((object) this._audioProcessor, ProcessorType.FilteredAudioOutput); this._audioRecorder = new SimpleRecorder(this._audioProcessor); this._basebandRecorder = new SimpleRecorder(this._iqProcessor); this._control.PropertyChanged += new PropertyChangedEventHandler(this.PropertyChangedHandler); this.InitializeGUI(); this.ConfigureGUI(); }
public RecordingPanel(ISharpControl control) { this.InitializeComponent(); this._control = control; this._audioProcessor.Enabled = false; this._iqObserver.Enabled = false; this._control.RegisterStreamHook(this._iqObserver, ProcessorType.RawIQ); this._control.RegisterStreamHook(this._audioProcessor, ProcessorType.FilteredAudioOutput); this._audioRecorder = new SimpleRecorder(this._audioProcessor); this._basebandRecorder = new SimpleRecorder(this._iqObserver); this._control.PropertyChanged += this.PropertyChangedHandler; this.InitializeGUI(); this.ConfigureGUI(); }
public void Initialize(ISharpControl control) { _ifProcessor = new IFProcessor(control); _ifProcessor.EnableFilter = Utils.GetBooleanSetting("enableZoomFFTFilter"); //TODO: change the following key names (inside of the "") to something that doesn't conflict with zoomFFT in file called SDRsharp.exe (XML file) _ifProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomIF"); _mpxProcessor = new MPXProcessor(control); _mpxProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomMPX"); _afProcessor = new AFProcessor(control); _afProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomAF"); _controlPanel = new waveletPWRPanel(_ifProcessor, _mpxProcessor, _afProcessor); }
public void Initialize(ISharpControl control) { _ifProcessor = new IFProcessor(control); _ifProcessor.EnableFilter = Utils.GetBooleanSetting("enableZoomFFTFilter"); //TODO: change the following key names (inside of the "") to something that doesn't conflict with zoomFFT in file called SDRsharp.exe (XML file) _ifProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomIF"); _mpxProcessor = new MPXProcessor(control); _mpxProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomMPX"); _afProcessor = new AFProcessor(control); _afProcessor.Control.Visible = Utils.GetBooleanSetting("enableZoomAF"); _controlPanel = new waveletPWRPanel(_ifProcessor, _mpxProcessor, _afProcessor); }
public void Initialize(ISharpControl control) { MainControl = control; control.PropertyChanged += ControlOnPropertyChanged; _controlPanel = new SignalRecorderPanel(); _controlPanel.PowerMonitorChanged += OnPowerMonitorChanged; _powerSpectrumPanel = new PowerSpectrumPanel(_controlPanel); OnPowerMonitorChanged(); control.RegisterFrontControl(_powerSpectrumPanel, PluginPosition.Bottom); control.RegisterStreamHook(this, ProcessorType.RawIQ); }
public ControlPanel(ISharpControl control) { sharpControl = control; InitializeComponent(); this.DoubleBuffered = true; this.SetStyle(ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true); FrequencyEncoder.DirectionChanged += FrequencyEncoder_DirectionChanged; //Frequency AudioGainEncoder.DirectionChanged += AudioGainEncoder_DirectionChanged; //Volume SquelchEncoder.DirectionChanged += SquelchEncoder_DirectionChanged; //Squelch ZoomEncoder.DirectionChanged += ZoomEncoder_DirectionChanged; //Zoom FilterBandWidthEncoder.DirectionChanged += FilterBandWidthEncoder_DirectionChanged; //Filter Bandwidth }
public IFProcessor(ISharpControl control) { _control = control; _control.PropertyChanged += NotifyPropertyChangedHandler; Enabled = true; #region FFT Timer _fftTimer = new System.Windows.Forms.Timer(); _fftTimer.Tick += fftTimer_Tick; _fftTimer.Interval = FFTTimerInterval; _fftBins = FFTBins; #endregion #region FFT Buffers / Window InitFFTBuffers(); BuildFFTWindow(); #endregion #region Display component _spectrumAnalyzer = new SpectrumAnalyzer(); _spectrumAnalyzer.Dock = DockStyle.Fill; _spectrumAnalyzer.Margin = new Padding(0, 0, 0, 0); _spectrumAnalyzer.DisplayRange = 130; _spectrumAnalyzer.EnableFilter = false; _spectrumAnalyzer.EnableHotTracking = false; _spectrumAnalyzer.EnableSideFilterResize = true; _spectrumAnalyzer.EnableFilterMove = false; _spectrumAnalyzer.BandType = BandType.Center; _spectrumAnalyzer.StepSize = 1000; _spectrumAnalyzer.UseSmoothing = true; _spectrumAnalyzer.Attack = 0.9f; _spectrumAnalyzer.Decay = 0.6f; _spectrumAnalyzer.StatusText = "Haar Basis Function"; //EDIT: changed spectrum alanyzer window title to match wavelet fn _spectrumAnalyzer.FrequencyChanged += spectrumAnalyzer_FrequencyChanged; _spectrumAnalyzer.CenterFrequencyChanged += spectrumAnalyzer_CenterFrequencyChanged; _spectrumAnalyzer.BandwidthChanged += spectrumAnalyzer_BandwidthChanged; _spectrumAnalyzer.VisibleChanged += spectrumAnalyzer_VisibleChanged; #endregion _control.RegisterStreamHook(this, ProcessorType.DecimatedAndFilteredIQ); _control.RegisterFrontControl(_spectrumAnalyzer, (PluginPosition) Utils.GetIntSetting("zoomPosition", (int) PluginPosition.Bottom)); }
public MPXProcessor(ISharpControl control) { _control = control; _control.PropertyChanged += NotifyPropertyChangedHandler; Enabled = true; #region FFT Timer _fftTimer = new System.Windows.Forms.Timer(); _fftTimer.Tick += fftTimer_Tick; _fftTimer.Interval = FFTTimerInterval; _fftBins = FFTBins; #endregion #region FFT Buffers / Window InitFFTBuffers(); BuildFFTWindow(); #endregion #region Display component _spectrumAnalyzer = new SpectrumAnalyzer(); _spectrumAnalyzer.Dock = DockStyle.Fill; _spectrumAnalyzer.Margin = new Padding(0, 0, 0, 0); _spectrumAnalyzer.DisplayRange = 90; _spectrumAnalyzer.EnableFilter = false; _spectrumAnalyzer.EnableHotTracking = false; _spectrumAnalyzer.EnableFrequencyMarker = false; _spectrumAnalyzer.StepSize = 19000; _spectrumAnalyzer.UseSmoothing = true; _spectrumAnalyzer.SpectrumWidth = 100000;//Utils.GetIntSetting("minOutputSampleRate", 32000) / 2; _spectrumAnalyzer.Frequency = _spectrumAnalyzer.SpectrumWidth / 2; _spectrumAnalyzer.CenterFrequency = _spectrumAnalyzer.SpectrumWidth / 2; _spectrumAnalyzer.Attack = 0.9f; _spectrumAnalyzer.Decay = 0.6f; _spectrumAnalyzer.StatusText = "FM MPX Spectrum"; _spectrumAnalyzer.FrequencyChanged += spectrumAnalyzer_FrequencyChanged; _spectrumAnalyzer.CenterFrequencyChanged += spectrumAnalyzer_CenterFrequencyChanged; _spectrumAnalyzer.VisibleChanged += spectrumAnalyzer_VisibleChanged; #endregion _control.RegisterStreamHook(this, ProcessorType.FMMPX); _control.RegisterFrontControl(_spectrumAnalyzer, (PluginPosition) Utils.GetIntSetting("zoomPosition", (int) PluginPosition.Bottom)); }
public FrequencyManagerPanel(ISharpControl control) { this.InitializeComponent(); this._controlInterface = control; this._controlInterface.SpectrumAnalyzerCustomPaint += new CustomPaintEventHandler(this.controlInterface_SpectrumAnalyzerCustomPaint); this._controlInterface.PropertyChanged += new PropertyChangedEventHandler(this.controlInterface_PropertyChanged); if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) { this._settingsPersister = new SettingsPersister(); this._entries = this._settingsPersister.ReadStoredFrequencies(); this._groups = this.GetGroupsFromEntries(); this.ProcessGroups((string) null); } this.memoryEntryBindingSource.DataSource = (object) this._displayedEntries; this.showBookmarksCheckBox.Checked = Utils.GetBooleanSetting("showBookmarks"); }
public FrequencyManagerPanel(ISharpControl control) { InitializeComponent(); _controlInterface = control; if (LicenseManager.UsageMode==LicenseUsageMode.Runtime) { _settingsPersister = new SettingsPersister(); _entries = _settingsPersister.ReadStoredFrequencies(); _groups = GetGroupsFromEntries(); ProcessGroups(null); } memoryEntryBindingSource.DataSource = _displayedEntries; }
public RecordingPanel(ISharpControl control) { InitializeComponent(); _control = control; _audioProcessor.Bypass = true; _iqObserver.Enabled = false; _control.RegisterStreamHook(_iqObserver); _control.RegisterStreamHook(_audioProcessor); _audioRecorder = new SimpleRecorder(_audioProcessor); _basebandRecorder = new SimpleRecorder(_iqObserver); _control.PropertyChanged += PropertyChangedHandler; InitializeGUI(); ConfigureGUI(); }
public RecordingPanel(ISharpControl control) { InitializeComponent(); _control = control; _audioProcessor.Enabled = false; _iqProcessor.Enabled = false; _control.RegisterStreamHook(_iqProcessor, ProcessorType.RawIQ); _control.RegisterStreamHook(_audioProcessor, ProcessorType.FilteredAudioOutput); _audioRecorder = new SimpleRecorder(_audioProcessor); _basebandRecorder = new SimpleRecorder(_iqProcessor); _control.PropertyChanged += PropertyChangedHandler; InitializeGUI(); ConfigureGUI(); }
public LevelMeterPanel(ISharpControl control) { InitializeComponent(); _controlInterface = control; InitToolWindow(); LoadOptions(); _fft_buffer = new float[_controlInterface.FFTResolution]; _smaTunedFrequecy = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); _smaTunedPeakPowerBandwidth = new Simova(_SIMPLE_AVERAGE_SAMPLE_CNT, _SIMPLE_AVERAGE_MIN); UpdateTimerInit(); MeasureTimerInit(); GuiInit(); }
public ControlPanel(ISharpControl control) { InitializeComponent(); _parser = new Parser(control); _control = control; if (!Utils.GetBooleanSetting(_settingNotFirstRun)) { checkNetwork.Checked = true; checkSerial.Checked = true; } else { checkNetwork.Checked = Utils.GetBooleanSetting(_settingServerEn); checkSerial.Checked = Utils.GetBooleanSetting(_settingSerialEn); } string[] ports = Serial.GetPorts(); if (ports.Length > 0) { comboSerial.Enabled = !checkSerial.Checked; comboSerial.Items.AddRange(Serial.GetPorts()); comboSerial.SelectedIndex = 0; comboSerial.SelectedItem = Utils.GetStringSetting(_settingSerialPort, ""); } else { checkSerial.Checked = false; checkSerial.Enabled = false; comboSerial.Enabled = false; } ServerControl(); SerialControl(); }
public void Initialize(ISharpControl control) { _controlInterface = control; _frequencyManagerPanel = new ScannerPanel(_controlInterface); }
public void Initialize(ISharpControl control) { this._control = control; this._guiControl = new RecordingPanel(this._control); }
public FrontEndControl(ISharpControl control) { InitializeComponent(); }
public void Initialize(ISharpControl control) { _control = control; _guiControl = new RecordingPanel(_control); }
public MyPlugLib(ISharpControl ControlInterface) { _controlInterface = ControlInterface; _fft_buffer = new float[_controlInterface.FFTResolution]; }
public SettingsControl(ISharpControl control, BasicProcessor processor) { InitializeComponent(); // processor can be used to update its parameters according to user changes on this control }
public void Initialize(ISharpControl control) { this._controlInterface = control; this._frequencyManagerPanel = new FrequencyManagerPanel(this._controlInterface); }
public void Initialize(ISharpControl control) { _controlInterface = control; _controlInterface.PropertyChanged += new PropertyChangedEventHandler(PropertyChangedHandler); _levelmeterpanel = new LevelMeterPanel(_controlInterface); }