forked from M-Labs/artiq
1
0
Fork 0

sawg: adapt basic example

This commit is contained in:
Robert Jördens 2016-11-21 13:17:01 +01:00
parent c73b1af7ab
commit b3e4a1df03
1 changed files with 12 additions and 12 deletions

View File

@ -15,18 +15,18 @@ class SAWGTest(EnvExperiment):
def run(self): def run(self):
self.core.break_realtime() self.core.break_realtime()
self.sawg0.set_amplitude(.1) self.sawg0.amplitude1.set(.1)
self.sawg0.set_frequency(10*MHz) self.sawg0.frequency0.set(10*MHz)
self.sawg0.set_phase(0.) self.sawg0.phase0.set(0.)
self.sawg1.set_amplitude(-.9) self.sawg1.amplitude1.set(-.9)
self.sawg1.set_frequency(20*MHz) self.sawg1.frequency0.set(20*MHz)
self.sawg1.set_phase(0.) self.sawg1.phase0.set(0.)
self.sawg2.set_amplitude(.5) self.sawg2.amplitude1.set(.5)
self.sawg2.set_frequency(30*MHz) self.sawg2.frequency0.set(30*MHz)
self.sawg2.set_phase(0.) self.sawg2.phase0.set(0.)
self.sawg3.set_amplitude(.5) self.sawg3.amplitude1.set(.5)
self.sawg3.set_frequency(30*MHz) self.sawg3.frequency0.set(30*MHz)
self.sawg3.set_phase(.5) self.sawg3.phase0.set(.5)
for i in range(10): for i in range(10):
self.led.pulse(100*ms) self.led.pulse(100*ms)