forked from M-Labs/artiq
1
0
Fork 0

test_rtio: comments and correction

* add comments what is actually being measured in the two rate tests
* remove spurious factor of two
This commit is contained in:
Robert Jördens 2016-04-05 20:51:03 +08:00 committed by Sebastien Bourdeauducq
parent d6510083b7
commit 3d487d98b7
1 changed files with 6 additions and 3 deletions

View File

@ -131,7 +131,7 @@ class PulseRateDDS(EnvExperiment):
self.core.break_realtime() self.core.break_realtime()
break break
else: else:
self.set_dataset("pulse_rate", mu_to_seconds(2*dt)) self.set_dataset("pulse_rate", mu_to_seconds(dt))
return return
@ -256,6 +256,7 @@ class CoredeviceTest(ExperimentCase):
self.assertEqual(count, 10) self.assertEqual(count, 10)
def test_pulse_rate(self): def test_pulse_rate(self):
"""Mimumum delay and duration of sustainably emitted TTL pulses"""
self.execute(PulseRate) self.execute(PulseRate)
rate = self.dataset_mgr.get("pulse_rate") rate = self.dataset_mgr.get("pulse_rate")
print(rate) print(rate)
@ -263,11 +264,13 @@ class CoredeviceTest(ExperimentCase):
self.assertLess(rate, 1500*ns) self.assertLess(rate, 1500*ns)
def test_pulse_rate_dds(self): def test_pulse_rate_dds(self):
"""Minimum delay between DDS batches each setting the frequencies of
two DDS"""
self.execute(PulseRateDDS) self.execute(PulseRateDDS)
rate = self.dataset_mgr.get("pulse_rate") rate = self.dataset_mgr.get("pulse_rate")
print(rate) print(rate)
self.assertGreater(rate, 5*us) self.assertGreater(rate, 3*us)
self.assertLess(rate, 25*us) self.assertLess(rate, 12*us)
def test_loopback_count(self): def test_loopback_count(self):
npulses = 2 npulses = 2