From 13fb4d80dc69fb1fc275bd342aa8d3e503947574 Mon Sep 17 00:00:00 2001 From: jupfi Date: Thu, 27 Jul 2023 18:45:28 +0200 Subject: [PATCH] Updated TX port. --- src/nqrduck_spectrometer_limenqr/controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nqrduck_spectrometer_limenqr/controller.py b/src/nqrduck_spectrometer_limenqr/controller.py index d87aa9f..a53d920 100644 --- a/src/nqrduck_spectrometer_limenqr/controller.py +++ b/src/nqrduck_spectrometer_limenqr/controller.py @@ -26,7 +26,7 @@ class LimeNQRController(BaseSpectrometerController): from .contrib.limr import limr self_path = Path(__file__).parent - driver_path = str(self_path / "contrib/pulseN_test_USB_TX2.cpp") + driver_path = str(self_path / "contrib/pulseN_test_USB.cpp") lime = limr(driver_path) except ImportError as e: logger.error("Error while importing limr. %s", e) @@ -79,13 +79,13 @@ class LimeNQRController(BaseSpectrometerController): # time domain x and y data tdx = lime.HDF.tdx[evidx] - lime.HDF.tdx[evidx][0] - tdy = lime.HDF.tdy[evidx] / lime.nav + tdy = np.abs(lime.HDF.tdy[evidx] / lime.nav) measurement_data = Measurement( tdx, tdy, self.module.model.target_frequency, - frequency_shift=self.module.model.if_frequency, + #frequency_shift=self.module.model.if_frequency, ) # Emit the data to the nqrduck core