diff --git a/charon_vna/gui.py b/charon_vna/gui.py index 653f53c..a7c5d8c 100644 --- a/charon_vna/gui.py +++ b/charon_vna/gui.py @@ -23,12 +23,11 @@ from PySide6.QtWidgets import ( QWidget, ) from skrf import plotting as rf_plt +from vna import Charon from charon_vna.gui_helpers import FlowLayout from charon_vna.util import db20, s2vswr -# from vna import Charon - # %% DEFAULT_CONFIG = dict( frequency=np.arange(1e9, 2e9, 11), # Hz diff --git a/charon_vna/vna.py b/charon_vna/vna.py index d23022b..82c8dc0 100644 --- a/charon_vna/vna.py +++ b/charon_vna/vna.py @@ -141,8 +141,9 @@ class Charon: self.set_output_power(power) self.sdr.tx_lo = int(frequency - self.FREQUENCY_OFFSET) self.sdr.tx_cyclic_buffer = True - # self.sdr.tx(generate_tone(f=self.FREQUENCY_OFFSET, fs=self.sdr.sample_rate)) - self.sdr.dds_single_tone(self.FREQUENCY_OFFSET, scale=0.9, channel=0) + # For some reason the pluto's DDS has truly horrendous phase noise to the point where it looks modulated + self.sdr.tx(generate_tone(f=self.FREQUENCY_OFFSET, fs=self.sdr.sample_rate)) + # self.sdr.dds_single_tone(self.FREQUENCY_OFFSET, scale=0.9, channel=0) def _rx(self, count: int = 1, fc: float | None = None) -> npt.ArrayLike: if count < 1: