From 9ba6be879605dd40e56d6041ffd53ce76cd103b8 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Fri, 14 Oct 2016 13:23:14 +0200 Subject: [PATCH] phaser: speed up ad9154_test_status --- artiq/examples/phaser/repository/test_ad9154_status.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/examples/phaser/repository/test_ad9154_status.py b/artiq/examples/phaser/repository/test_ad9154_status.py index 6c401155c..0f047a8c7 100644 --- a/artiq/examples/phaser/repository/test_ad9154_status.py +++ b/artiq/examples/phaser/repository/test_ad9154_status.py @@ -7,6 +7,7 @@ class Test(EnvExperiment): self.setattr_device("core") self.setattr_device("ad9154") + @kernel def run(self): self.print_status() self.print_temp() @@ -14,6 +15,7 @@ class Test(EnvExperiment): def p(self, f, *a): print(f % a) + @kernel def print_temp(self): self.ad9154.dac_write(AD9154_DIE_TEMP_CTRL0, AD9154_AUXADC_RESERVED_SET(0x10) | AD9154_AUXADC_ENABLE_SET(1)) @@ -23,6 +25,7 @@ class Test(EnvExperiment): self.ad9154.dac_write(AD9154_DIE_TEMP_CTRL0, AD9154_AUXADC_RESERVED_SET(0x10) | AD9154_AUXADC_ENABLE_SET(0)) + @kernel def print_status(self): x = self.ad9154.dac_read(AD9154_IRQ_STATUS0) self.p("LANEFIFOERR: %d, SERPLLLOCK: %d, SERPLLLOST: %d, "