mirror of
https://github.com/nqrduck/nqrduck-measurement.git
synced 2024-11-09 11:50:01 +00:00
Added measurements error.
This commit is contained in:
parent
ec9f40dad4
commit
58257ba469
2 changed files with 6 additions and 0 deletions
|
@ -32,3 +32,7 @@ class MeasurementController(ModuleController):
|
|||
self.module.model.displayed_measurement = value
|
||||
self.module.model.add_measurement(value)
|
||||
self.module.view.measurement_dialog.hide()
|
||||
|
||||
elif key == "measurement_error" and self.module.view.measurement_dialog.isVisible():
|
||||
logger.debug("Received measurement error.")
|
||||
self.module.view.measurement_dialog.hide()
|
||||
|
|
|
@ -64,6 +64,7 @@ class MeasurementView(ModuleView):
|
|||
|
||||
def change_to_time_view(self):
|
||||
plotter = self._ui_form.plotter
|
||||
self._ui_form.fftButton.setText("FFT")
|
||||
plotter.canvas.ax.clear()
|
||||
plotter.canvas.ax.set_xlabel("Time (µs)")
|
||||
plotter.canvas.ax.set_ylabel("Amplitude (a.u.)")
|
||||
|
@ -72,6 +73,7 @@ class MeasurementView(ModuleView):
|
|||
|
||||
def change_to_fft_view(self):
|
||||
plotter = self._ui_form.plotter
|
||||
self._ui_form.fftButton.setText("iFFT")
|
||||
plotter.canvas.ax.clear()
|
||||
plotter.canvas.ax.set_xlabel("Frequency (MHz)")
|
||||
plotter.canvas.ax.set_ylabel("Amplitude (a.u.)")
|
||||
|
|
Loading…
Reference in a new issue