From 4d3f76386502557c7e783b87dda134b6da684266 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 28 May 2018 11:02:44 +0800 Subject: [PATCH] move kasli_opticlock to kasli_basic --- .../device_db_opticlock.py} | 0 .../idle_kernel.py | 0 .../kasli_opticlock/repository/urukul.py | 49 ------------------- 3 files changed, 49 deletions(-) rename artiq/examples/{kasli_opticlock/device_db.py => kasli_basic/device_db_opticlock.py} (100%) rename artiq/examples/{kasli_opticlock => kasli_basic}/idle_kernel.py (100%) delete mode 100644 artiq/examples/kasli_opticlock/repository/urukul.py diff --git a/artiq/examples/kasli_opticlock/device_db.py b/artiq/examples/kasli_basic/device_db_opticlock.py similarity index 100% rename from artiq/examples/kasli_opticlock/device_db.py rename to artiq/examples/kasli_basic/device_db_opticlock.py diff --git a/artiq/examples/kasli_opticlock/idle_kernel.py b/artiq/examples/kasli_basic/idle_kernel.py similarity index 100% rename from artiq/examples/kasli_opticlock/idle_kernel.py rename to artiq/examples/kasli_basic/idle_kernel.py diff --git a/artiq/examples/kasli_opticlock/repository/urukul.py b/artiq/examples/kasli_opticlock/repository/urukul.py deleted file mode 100644 index 39b8ea3c2..000000000 --- a/artiq/examples/kasli_opticlock/repository/urukul.py +++ /dev/null @@ -1,49 +0,0 @@ -from artiq.experiment import * - - -class UrukulTest(EnvExperiment): - def build(self): - self.setattr_device("core") - self.setattr_device("urukul0_cpld") - self.setattr_device("urukul0_ch0") - self.setattr_device("urukul0_ch1") - self.setattr_device("urukul0_ch2") - self.setattr_device("urukul0_ch3") - self.setattr_device("led0") - - @kernel - def run(self): - self.core.reset() - self.led0.on() - delay(5*ms) - self.led0.off() - - self.urukul0_cpld.init() - self.urukul0_ch0.init() - self.urukul0_ch1.init() - self.urukul0_ch2.init() - self.urukul0_ch3.init() - - delay(1000*us) - self.urukul0_ch0.set(100*MHz) - self.urukul0_ch0.sw.on() - self.urukul0_ch0.set_att(10.) - - delay(1000*us) - self.urukul0_ch1.set(10*MHz, 0.5) - self.urukul0_ch1.sw.on() - self.urukul0_ch1.set_att(0.) - - delay(1000*us) - self.urukul0_ch2.set(400*MHz) - self.urukul0_ch2.sw.on() - self.urukul0_ch2.set_att(0.) - - delay(1000*us) - self.urukul0_ch3.set(1*MHz) - self.urukul0_ch3.sw.on() - self.urukul0_ch3.set_att(20.) - - while True: - self.urukul0_ch0.sw.pulse(5*ms) - delay(5*ms)