Fixed units of phase measurement.

This commit is contained in:
jupfi 2023-08-23 08:54:57 +02:00
parent a6df6da1d5
commit b6676f709f
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ class S11Data:
# Conversion factors - the data is generally sent and received in mV # Conversion factors - the data is generally sent and received in mV
# These values are used to convert the data to dB and degrees # These values are used to convert the data to dB and degrees
CENTER_POINT_MAGNITUDE = 900 # mV CENTER_POINT_MAGNITUDE = 900 # mV
CENTER_POINT_PHASE = 900 # mV CENTER_POINT_PHASE = 0 # mV
MAGNITUDE_SLOPE = 30 # dB/mV MAGNITUDE_SLOPE = 30 # dB/mV
PHASE_SLOPE = 10 # deg/mV PHASE_SLOPE = 10 # deg/mV

View file

@ -231,7 +231,7 @@ class AutoTMView(ModuleView):
self.phase_ax.set_ylabel("|Phase (deg)|") self.phase_ax.set_ylabel("|Phase (deg)|")
self.phase_ax.plot(frequency, phase, color="orange", linestyle="--") self.phase_ax.plot(frequency, phase, color="orange", linestyle="--")
self.phase_ax.set_ylim(-180, 180) self.phase_ax.set_ylim(0, 180)
self.phase_ax.invert_yaxis() self.phase_ax.invert_yaxis()
magnitude_ax.set_xlabel("Frequency (MHz)") magnitude_ax.set_xlabel("Frequency (MHz)")