Radio Control  Control Software and GUI for the Panoradio SDR, by DC9ST 2016
dialogdebugmonitor.h
1 #ifndef DIALOGDEBUGMONITOR_H
2 #define DIALOGDEBUGMONITOR_H
3 
4 #include <fft/fft_avg_complex.h>
5 #include <fft/fft_avg_real.h>
6 #include "stipcores.h"
7 #include <qwt_plot_curve.h>
8 #include <QDialog>
9 #include <QTimer>
10 
11 #include <fstream>
12 
13 using namespace std;
14 
15 namespace Ui {
16 class DialogDebugMonitor;
17 }
18 
22 class DialogDebugMonitor : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
28  explicit DialogDebugMonitor(int debug_data_size, QWidget *parent = 0);
29 
32 
34  void init();
35 
36 private slots:
37  void run();
38 
39  void on_comboBox_cic_select_currentIndexChanged(int index);
40 
41  void on_lo_frequency_lineEdit_editingFinished();
42 
43 
44  void on_impulse_pushButton_clicked();
45 
46  void on_step_pushButton_clicked();
47 
48  void on_write2file_pushButton_clicked();
49 
50 private:
51  void set_cic(int decimation_rate);
52 
53  Ui::DialogDebugMonitor *ui;
54 
55  DDS *local_oscillator_;
56  CIC *cic_filter_;
57  IP_Driver *cic_bypass_;
58 
59  Data_Capture *capture_rf_;
60  Data_Capture_Dual *capture_iq_;
61  Data_Capture_Dual *debug_capture_after_mixer_;
62  Data_Capture_Dual *debug_capture_after_cic_;
63  Data_Capture_Dual *debug_capture_audio_after_ddc_;
64  Data_Capture_Dual *debug_capture_audio_after_scaling_;
65  Data_Capture_Dual *debug_capture_audio_after_asrc_;
66  Data_Capture *debug_capture_audio_after_weaver_;
67 
68  Data_Capture_Dual *debug_capture_debug_dual_;
69  Data_Capture *debug_capture_debug_;
70 
71  IP_Driver *impulse_stimulator_;
72 
73  QwtPlotCurve *debug_time_curve_i_; // Debug Curves
74  QwtPlotCurve *debug_time_curve_q_;
75  QwtPlotCurve *debug_freq_curve_;
76 
77  int debug_data_size_ ; // block size for debug cores
78 
79  bool debug_log2file_request_;
80 
81  fft_avg_real *debug_fft_real_; // fft modules
82  fft_avg_complex *debug_fft_complex_;
83 
84 };
85 
86 #endif // DIALOGDEBUGMONITOR_H
Definition: dialogdebugmonitor.h:15
FFT Class for averaging over multiple FFTs with complex time domain input values. ...
Definition: fft_avg_complex.h:7
Qt Dialog GUI with debug functionalities.
Definition: dialogdebugmonitor.h:22
FFT Class for averaging over multiple FFTs with real time domain input values.
Definition: fft_avg_real.h:7