Added measurements error.

This commit is contained in:
jupfi 2023-07-18 13:50:59 +02:00
parent ec9f40dad4
commit 58257ba469
2 changed files with 6 additions and 0 deletions

View file

@ -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()

View file

@ -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.)")