From b3e4a1df03c05e16c24c4ba2b3d55db3e81f3aab Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Mon, 21 Nov 2016 13:17:01 +0100 Subject: [PATCH] sawg: adapt basic example --- artiq/examples/phaser/repository/sawg.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/artiq/examples/phaser/repository/sawg.py b/artiq/examples/phaser/repository/sawg.py index e6749ce7d..8710a34d2 100644 --- a/artiq/examples/phaser/repository/sawg.py +++ b/artiq/examples/phaser/repository/sawg.py @@ -15,18 +15,18 @@ class SAWGTest(EnvExperiment): def run(self): self.core.break_realtime() - self.sawg0.set_amplitude(.1) - self.sawg0.set_frequency(10*MHz) - self.sawg0.set_phase(0.) - self.sawg1.set_amplitude(-.9) - self.sawg1.set_frequency(20*MHz) - self.sawg1.set_phase(0.) - self.sawg2.set_amplitude(.5) - self.sawg2.set_frequency(30*MHz) - self.sawg2.set_phase(0.) - self.sawg3.set_amplitude(.5) - self.sawg3.set_frequency(30*MHz) - self.sawg3.set_phase(.5) + self.sawg0.amplitude1.set(.1) + self.sawg0.frequency0.set(10*MHz) + self.sawg0.phase0.set(0.) + self.sawg1.amplitude1.set(-.9) + self.sawg1.frequency0.set(20*MHz) + self.sawg1.phase0.set(0.) + self.sawg2.amplitude1.set(.5) + self.sawg2.frequency0.set(30*MHz) + self.sawg2.phase0.set(0.) + self.sawg3.amplitude1.set(.5) + self.sawg3.frequency0.set(30*MHz) + self.sawg3.phase0.set(.5) for i in range(10): self.led.pulse(100*ms)