forked from sinara-hw/datasheets
suservo.py: remove unnecessary import
This commit is contained in:
parent
ac8d398f5e
commit
708330a57a
|
@ -821,16 +821,16 @@ In the following example, the amplitude of DDS is proportional to the ADC input
|
||||||
First, initialize the RTIO, SU-Servo and its channel.
|
First, initialize the RTIO, SU-Servo and its channel.
|
||||||
Note that the programmable gain of the Sampler is $10^0=1$, the input range is [-10V, 10V].
|
Note that the programmable gain of the Sampler is $10^0=1$, the input range is [-10V, 10V].
|
||||||
|
|
||||||
\inputcolorboxminted{firstline=12,lastline=19}{examples/suservo.py}
|
\inputcolorboxminted{firstline=10,lastline=17}{examples/suservo.py}
|
||||||
|
|
||||||
Next, setup the PI control as an IIR filter. It has -1 proportional gain $k_p$ and no integrator gain $k_i$.
|
Next, setup the PI control as an IIR filter. It has -1 proportional gain $k_p$ and no integrator gain $k_i$.
|
||||||
|
|
||||||
\inputcolorboxminted{firstline=20,lastline=27}{examples/suservo.py}
|
\inputcolorboxminted{firstline=18,lastline=25}{examples/suservo.py}
|
||||||
|
|
||||||
Then, configure the DDS frequency to 10 MHz with 3V input offset.
|
Then, configure the DDS frequency to 10 MHz with 3V input offset.
|
||||||
When input voltage $\geq$ offset voltage, the DDS output amplitude is 0.
|
When input voltage $\geq$ offset voltage, the DDS output amplitude is 0.
|
||||||
|
|
||||||
\inputcolorboxminted{firstline=28,lastline=32}{examples/suservo.py}
|
\inputcolorboxminted{firstline=26,lastline=30}{examples/suservo.py}
|
||||||
|
|
||||||
SU-Servo encodes the ADC voltage in a linear scale [-1, 1].
|
SU-Servo encodes the ADC voltage in a linear scale [-1, 1].
|
||||||
Therefore, 3V is converted to 0.3.
|
Therefore, 3V is converted to 0.3.
|
||||||
|
@ -838,7 +838,7 @@ Note that the ASF of all DDS channels are capped at 1.0, the amplitude clips whe
|
||||||
|
|
||||||
Finally, enable the SU-Servo channel with the IIR filter programmed beforehand.
|
Finally, enable the SU-Servo channel with the IIR filter programmed beforehand.
|
||||||
|
|
||||||
\inputcolorboxminted{firstline=34,lastline=35}{examples/suservo.py}
|
\inputcolorboxminted{firstline=32,lastline=33}{examples/suservo.py}
|
||||||
|
|
||||||
A 10 MHz DDS signal is generated from the example above, with amplitude controllable by ADC.
|
A 10 MHz DDS signal is generated from the example above, with amplitude controllable by ADC.
|
||||||
The RMS voltage of the DDS channel against the ADC voltage is plotted.
|
The RMS voltage of the DDS channel against the ADC voltage is plotted.
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
from artiq.experiment import *
|
from artiq.experiment import *
|
||||||
from scipy import signal
|
|
||||||
import numpy
|
|
||||||
|
|
||||||
|
|
||||||
class SUServoExample(EnvExperiment):
|
class SUServoExample(EnvExperiment):
|
||||||
|
|
Loading…
Reference in New Issue