From 3c817be213053e69043adbde1b7bf10a359e4eb2 Mon Sep 17 00:00:00 2001 From: dhslichter Date: Fri, 3 Jun 2016 23:01:59 -0400 Subject: [PATCH] dds: fix asf_to_amplitude --- artiq/coredevice/dds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/dds.py b/artiq/coredevice/dds.py index dbe749e08..e90032b1c 100644 --- a/artiq/coredevice/dds.py +++ b/artiq/coredevice/dds.py @@ -134,7 +134,7 @@ class _DDSGeneric: def asf_to_amplitude(self, asf): """Returns the amplitude corresponding to the given amplitude scale factor.""" - return round(amplitude*0x0fff) + return asf/0x0fff @kernel def init(self):