forked from M-Labs/artiq
1
0
Fork 0

phaser/demo: update

This commit is contained in:
Robert Jördens 2016-11-29 15:11:18 +01:00
parent 7657cf1264
commit 7816078d6b
1 changed files with 19 additions and 19 deletions

View File

@ -18,33 +18,33 @@ class SAWGTest(EnvExperiment):
self.ttl_sma.output() self.ttl_sma.output()
while True: while True:
self.sawg0.set_amplitude(0.) self.sawg0.amplitude1.set(0.)
self.sawg0.set_frequency(0*MHz) self.sawg0.frequency0.set(0*MHz)
self.sawg1.set_amplitude(0.) self.sawg1.amplitude1.set(0.)
self.sawg1.set_frequency(0*MHz) self.sawg1.frequency0.set(0*MHz)
delay(20*ms) delay(20*ms)
self.sawg0.set_amplitude(.4) self.sawg0.amplitude1.set(.4)
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(.4) self.sawg1.amplitude1.set(.4)
self.sawg1.set_frequency(10*MHz) self.sawg1.frequency0.set(10*MHz)
self.sawg1.set_phase(0.) self.sawg1.phase0.set(0.)
self.ttl_sma.pulse(200*ns) self.ttl_sma.pulse(200*ns)
self.sawg1.set_amplitude(.1) self.sawg1.amplitude1.set(.1)
delay(200*ns) delay(200*ns)
self.sawg1.set_amplitude(-.4) self.sawg1.amplitude1.set(-.4)
self.ttl_sma.pulse(200*ns) self.ttl_sma.pulse(200*ns)
self.sawg1.set_amplitude(.4) self.sawg1.amplitude1.set(.4)
delay(200*ns) delay(200*ns)
self.sawg1.set_phase(.25) self.sawg1.phase0.set(.25)
self.ttl_sma.pulse(200*ns) self.ttl_sma.pulse(200*ns)
self.sawg1.set_phase(.5) self.sawg1.phase0.set(.5)
delay(200*ns) delay(200*ns)
self.sawg0.set_phase(.5) self.sawg0.phase0.set(.5)
self.ttl_sma.pulse(200*ns) self.ttl_sma.pulse(200*ns)
self.sawg1.set_frequency(30*MHz) self.sawg1.frequency0.set(30*MHz)
delay(200*ns) delay(200*ns)
self.sawg1.set_frequency(10*MHz) self.sawg1.frequency0.set(10*MHz)
self.sawg1.set_phase(0.) self.sawg1.phase0.set(0.)
self.ttl_sma.pulse(200*ns) self.ttl_sma.pulse(200*ns)