forked from M-Labs/artiq
doc: update Underflow catching example
This commit is contained in:
parent
e0f2d94191
commit
0d7dc7b144
|
@ -114,7 +114,7 @@ Instead, inside the core device, output timing is generated by the gateware and
|
||||||
|
|
||||||
Try reducing the period of the generated waveform until the CPU cannot keep up with the generation of switching events and the underflow exception is raised. Then try catching it: ::
|
Try reducing the period of the generated waveform until the CPU cannot keep up with the generation of switching events and the underflow exception is raised. Then try catching it: ::
|
||||||
|
|
||||||
from artiq.coredevice.exceptions import RTIOUnderflow
|
from artiq.experiment import *
|
||||||
|
|
||||||
|
|
||||||
def print_underflow():
|
def print_underflow():
|
||||||
|
|
Loading…
Reference in New Issue