From 3f1d96b68d672c9c3ee5234390b705f3c7f013ce Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 12 Oct 2016 14:22:33 +0200 Subject: [PATCH] phaser: tweak dac_setup --- artiq/examples/phaser/repository/dac_setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/examples/phaser/repository/dac_setup.py b/artiq/examples/phaser/repository/dac_setup.py index de7d7a6da..f9f9b5721 100644 --- a/artiq/examples/phaser/repository/dac_setup.py +++ b/artiq/examples/phaser/repository/dac_setup.py @@ -37,11 +37,14 @@ class DACSetup(EnvExperiment): self.core.break_realtime() self.ad9154.jesd_enable(0) self.ad9154.jesd_prbs(0) + self.busywait_us(10000) self.ad9154.init() self.dac_setup() + self.busywait_us(10000) self.ad9154.jesd_enable(1) while not self.ad9154.jesd_ready(): pass + self.monitor() if self.ad9154.dac_read(AD9154_CODEGRPSYNCFLG) != 0x0f: raise ValueError("no CODEGRPSYNCFLG") self.core.break_realtime() @@ -53,7 +56,6 @@ class DACSetup(EnvExperiment): raise ValueError("no GOODCHECKSUMFLG") if self.ad9154.dac_read(AD9154_INITLANESYNCFLG) != 0x0f: raise ValueError("no INITLANESYNCFLG") - self.monitor() @kernel def busywait_us(self, t):