forked from M-Labs/artiq
1
0
Fork 0

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:
David Nadlinger 2018-10-26 12:26:24 +01:00 committed by Sébastien Bourdeauducq
parent 5d2e3f975f
commit e7d3f36b91
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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