forked from M-Labs/artiq
test/coredevice: use ttl_out for PulseRate (loop is less available)
This commit is contained in:
parent
c40ae9dbd3
commit
b548d50a2f
|
@ -76,7 +76,7 @@ class ClockGeneratorLoopback(EnvExperiment):
|
||||||
class PulseRate(EnvExperiment):
|
class PulseRate(EnvExperiment):
|
||||||
def build(self):
|
def build(self):
|
||||||
self.attr_device("core")
|
self.attr_device("core")
|
||||||
self.attr_device("loop_out")
|
self.attr_device("ttl_out")
|
||||||
|
|
||||||
def set_pulse_rate(self, pulse_rate):
|
def set_pulse_rate(self, pulse_rate):
|
||||||
self.set_result("pulse_rate", pulse_rate)
|
self.set_result("pulse_rate", pulse_rate)
|
||||||
|
@ -87,7 +87,7 @@ class PulseRate(EnvExperiment):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
for i in range(1000):
|
for i in range(1000):
|
||||||
self.loop_out.pulse_mu(dt)
|
self.ttl_out.pulse_mu(dt)
|
||||||
delay_mu(dt)
|
delay_mu(dt)
|
||||||
except RTIOUnderflow:
|
except RTIOUnderflow:
|
||||||
dt += 1
|
dt += 1
|
||||||
|
|
Loading…
Reference in New Issue