forked from M-Labs/artiq
sawg: adapt basic example
This commit is contained in:
parent
c73b1af7ab
commit
b3e4a1df03
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user