From f684678b91c5ee749ce5560739850b29f77b7d3c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 29 Jan 2015 23:49:17 +0800 Subject: [PATCH] examples/rtio_skew: use results --- examples/rtio_skew.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/rtio_skew.py b/examples/rtio_skew.py index bf8d95e2b..8819d3b75 100644 --- a/examples/rtio_skew.py +++ b/examples/rtio_skew.py @@ -1,10 +1,6 @@ from artiq import * -def print_skew(p): - print("Input/output skew: {} ns".format(p)) - - def print_failed(): print("Pulse was not received back") @@ -13,6 +9,7 @@ class RTIOSkew(AutoDB): class DBKeys: pmt0 = Device() ttl0 = Device() + io_skew = Result() @kernel def run(self): @@ -26,4 +23,4 @@ class RTIOSkew(AutoDB): if in_t < 0*s: print_failed() else: - print_skew(int((out_t - in_t)/(1*ns))) + self.io_skew = out_t - in_t