mirror of https://github.com/m-labs/artiq.git
doc: Fix ancient trigger code in slides
These examples were already broken before my recent changes to the artiq.coredevice.ttl API.
This commit is contained in:
parent
5d2e3f975f
commit
e7d3f36b91
|
@ -90,8 +90,8 @@ inner sep=.3mm] at (current page.south east) {%
|
||||||
\footnotesize
|
\footnotesize
|
||||||
|
|
||||||
\begin{minted}[frame=leftline]{python}
|
\begin{minted}[frame=leftline]{python}
|
||||||
trigger.sync() # wait for trigger input
|
# wait for trigger input and capture timestamp
|
||||||
start = now_mu() # capture trigger time
|
start = trigger.timestamp_mu(trigger.gate_rising(100*ms))
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
delay(5*us)
|
delay(5*us)
|
||||||
dds.pulse(900*MHz, 7*us) # first pulse 5 µs after trigger
|
dds.pulse(900*MHz, 7*us) # first pulse 5 µs after trigger
|
||||||
|
|
|
@ -106,8 +106,8 @@ inner sep=.3mm] at (current page.south east) {%
|
||||||
\footnotesize
|
\footnotesize
|
||||||
|
|
||||||
\begin{minted}[frame=leftline]{python}
|
\begin{minted}[frame=leftline]{python}
|
||||||
trigger.sync() # wait for trigger input
|
# wait for trigger input and capture timestamp
|
||||||
start = now_mu() # capture trigger time
|
start = trigger.timestamp_mu(trigger.gate_rising(100*ms))
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
delay(5*us)
|
delay(5*us)
|
||||||
dds.pulse(900*MHz, 7*us) # first pulse 5 µs after trigger
|
dds.pulse(900*MHz, 7*us) # first pulse 5 µs after trigger
|
||||||
|
|
Loading…
Reference in New Issue