From 9f6056f615abb878a8dbc2b600baef55579196bc Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 20 Jan 2022 14:58:40 +0800 Subject: [PATCH] ttl: remove extra rtio break in example --- 2118-2128.tex | 10 +++++----- 2238.tex | 10 +++++----- 2245.tex | 10 +++++----- examples/ttl.py | 1 - 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/2118-2128.tex b/2118-2128.tex index c3f1141..7a81031 100644 --- a/2118-2128.tex +++ b/2118-2128.tex @@ -437,27 +437,27 @@ Timing accuracy in the examples below is well under 1 nanosecond thanks to the A \subsection{One pulse per second} The channel should be configured as output in both the gateware and hardware. -\inputcolorboxminted{firstline=9,lastline=15}{examples/ttl.py} +\inputcolorboxminted{firstline=9,lastline=14}{examples/ttl.py} \newpage \subsection{Morse code} This example demonstrates some basic algorithmic features of the ARTIQ-Python language. -\inputcolorboxminted{firstline=23,lastline=40}{examples/ttl.py} +\inputcolorboxminted{firstline=22,lastline=39}{examples/ttl.py} \subsection{Counting rising edges in a 1ms window} The channel should be configured as input in both the gateware and hardware. -\inputcolorboxminted{firstline=48,lastline=53}{examples/ttl.py} +\inputcolorboxminted{firstline=47,lastline=52}{examples/ttl.py} This example code uses the software counter, which has a maximum count rate of approximately 1 million events per second. If the gateware counter is enabled on the TTL channel, it can typically count up to 125 million events per second: -\inputcolorboxminted{firstline=61,lastline=66}{examples/ttl.py} +\inputcolorboxminted{firstline=60,lastline=65}{examples/ttl.py} \newpage \subsection{Responding to an external trigger} One channel needs to be configured as input, and the other as output. -\inputcolorboxminted{firstline=75,lastline=81}{examples/ttl.py} +\inputcolorboxminted{firstline=74,lastline=80}{examples/ttl.py} \section{Ordering Information} To order, please visit \url{https://m-labs.hk} and select the 2118 BNC-TTL/2128 SMA-TTL in the ARTIQ Sinara crate configuration tool. The card may also be ordered separately by writing to \url{mailto:sales@m-labs.hk}. diff --git a/2238.tex b/2238.tex index 46332ff..29dad99 100644 --- a/2238.tex +++ b/2238.tex @@ -563,24 +563,24 @@ Timing accuracy in the examples below is well under 1 nanosecond thanks to the A \subsection{One pulse per second} The channel should be configured as output in both the gateware and hardware. -\inputcolorboxminted{firstline=9,lastline=15}{examples/ttl.py} +\inputcolorboxminted{firstline=9,lastline=14}{examples/ttl.py} \subsection{Morse code} This example demonstrates some basic algorithmic features of the ARTIQ-Python language. -\inputcolorboxminted{firstline=23,lastline=40}{examples/ttl.py} +\inputcolorboxminted{firstline=22,lastline=39}{examples/ttl.py} \newpage \subsection{Counting rising edges in a 1ms window} The channel should be configured as input in both the gateware and hardware. -\inputcolorboxminted{firstline=48,lastline=53}{examples/ttl.py} +\inputcolorboxminted{firstline=47,lastline=52}{examples/ttl.py} This example code uses the software counter, which has a maximum count rate of approximately 1 million events per second. If the gateware counter is enabled on the TTL channel, it can typically count up to 125 million events per second: -\inputcolorboxminted{firstline=61,lastline=66}{examples/ttl.py} +\inputcolorboxminted{firstline=60,lastline=65}{examples/ttl.py} \subsection{Responding to an external trigger} One channel needs to be configured as input, and the other as output. -\inputcolorboxminted{firstline=75,lastline=81}{examples/ttl.py} +\inputcolorboxminted{firstline=74,lastline=80}{examples/ttl.py} \section{Ordering Information} To order, please visit \url{https://m-labs.hk} and select the 2238 MCX-TTL in the ARTIQ Sinara crate configuration tool. The card may also be ordered separately by writing to \url{mailto:sales@m-labs.hk}. diff --git a/2245.tex b/2245.tex index 79da33e..c495a02 100644 --- a/2245.tex +++ b/2245.tex @@ -469,24 +469,24 @@ Timing accuracy in the examples below is well under 1 nanosecond thanks to the A \subsection{One pulse per second} The channel should be configured as output in both the gateware and hardware. -\inputcolorboxminted{firstline=9,lastline=15}{examples/ttl.py} +\inputcolorboxminted{firstline=9,lastline=14}{examples/ttl.py} \subsection{Morse code} This example demonstrates some basic algorithmic features of the ARTIQ-Python language. -\inputcolorboxminted{firstline=23,lastline=40}{examples/ttl.py} +\inputcolorboxminted{firstline=22,lastline=39}{examples/ttl.py} \newpage \subsection{Counting rising edges in a 1ms window} The channel should be configured as input in both the gateware and hardware. -\inputcolorboxminted{firstline=48,lastline=53}{examples/ttl.py} +\inputcolorboxminted{firstline=47,lastline=52}{examples/ttl.py} This example code uses the software counter, which has a maximum count rate of approximately 1 million events per second. If the gateware counter is enabled on the TTL channel, it can typically count up to 125 million events per second: -\inputcolorboxminted{firstline=61,lastline=66}{examples/ttl.py} +\inputcolorboxminted{firstline=60,lastline=65}{examples/ttl.py} \subsection{Responding to an external trigger} One channel needs to be configured as input, and the other as output. -\inputcolorboxminted{firstline=75,lastline=81}{examples/ttl.py} +\inputcolorboxminted{firstline=74,lastline=80}{examples/ttl.py} \section{Ordering Information} To order, please visit \url{https://m-labs.hk} and select the 2245 LVDS-TTL in the ARTIQ Sinara crate configuration tool. The card may also be ordered separately by writing to \url{mailto:sales@m-labs.hk}. diff --git a/examples/ttl.py b/examples/ttl.py index 01080eb..b98603e 100644 --- a/examples/ttl.py +++ b/examples/ttl.py @@ -9,7 +9,6 @@ class OnePulsePerSecond(EnvExperiment): @kernel def run(self): self.core.reset() - self.core.break_realtime() while True: self.ttl0.pulse(500*ms) delay(500*ms)