From 2a823486811c6c913971f02ae9bb42dd3a1d295a Mon Sep 17 00:00:00 2001 From: Dominik Vogel Date: Wed, 29 May 2019 10:35:43 +0200 Subject: [PATCH] Add `phasor` as demodulation type --- qdev_wrappers/alazar_controllers/ATSChannelController.py | 2 ++ qdev_wrappers/alazar_controllers/alazar_channel.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qdev_wrappers/alazar_controllers/ATSChannelController.py b/qdev_wrappers/alazar_controllers/ATSChannelController.py index e7391f1b..dddcd0c5 100644 --- a/qdev_wrappers/alazar_controllers/ATSChannelController.py +++ b/qdev_wrappers/alazar_controllers/ATSChannelController.py @@ -333,6 +333,8 @@ def handle_alazar_channel(channelData, mydata = Real_data elif demodtype == 'imag': mydata = Imag_data + elif demodtype == 'phasor': + mydata = Real_data + 1j*Imag_data else: raise RuntimeError(f"Unknown demodulator type {demodtype} supplied") data.append(mydata) diff --git a/qdev_wrappers/alazar_controllers/alazar_channel.py b/qdev_wrappers/alazar_controllers/alazar_channel.py index 214766fb..5120c6bc 100644 --- a/qdev_wrappers/alazar_controllers/alazar_channel.py +++ b/qdev_wrappers/alazar_controllers/alazar_channel.py @@ -52,7 +52,7 @@ def __init__(self, parent, name: str, demod: bool=False, alazar_channel: str='A' self.add_parameter('demod_type', label='demod type', initial_value='magnitude', - vals=vals.Enum('magnitude', 'phase', 'real', 'imag'), + vals=vals.Enum('magnitude', 'phase', 'real', 'imag', 'phasor'), get_cmd=None, set_cmd=None) self.add_parameter('alazar_channel',