From 64244b683cfc2ee7cb0abf1285c8cf079b349498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20M=C3=B6ller?= <Möller@institut2b.physik.rwth-aachen.de> Date: Fri, 12 Oct 2018 10:00:38 +0200 Subject: [PATCH] DecadacFit enabled channel 2&3 --- DecaDAC/DecaDACLabberDriver.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DecaDAC/DecaDACLabberDriver.py b/DecaDAC/DecaDACLabberDriver.py index a3445a8..2a67c37 100644 --- a/DecaDAC/DecaDACLabberDriver.py +++ b/DecaDAC/DecaDACLabberDriver.py @@ -11,7 +11,7 @@ class Driver(SerialDriver.SerialDriver): def performSetValue(self, quant, value, sweepRate=0.0, options={}): """Perform the Set Value instrument operation""" - + #Range settings are virtual if "range" in quant.section.lower(): if self.__captchaGenerator__("Switching ranges has to be done " @@ -22,8 +22,7 @@ class Driver(SerialDriver.SerialDriver): #Safety measures for output settings if "M<*>;" in quant.set_cmd: - self.log(str(quant.datatype)) - if quant.datatype == "BOOLEAN": + if quant.datatype == 1: value = 2 if value else 0 # Check if channels are all zero slot = quant.name.split(" - ")[0] -- GitLab