Y = getLatency(hdlcic)
returns the latency, Y, between the first valid input sample and the
first valid output sample, assuming contiguous input samples. The latency depends on the
NumSections property and whether GainCorrection
is enabled.
Y = getLatency(hdlcic,V)
returns the latency, Y, between the first valid input sample and the
first valid output sample, assuming contiguous input samples and vector input of size
V. The latency depends on the NumSections
property, vector input size, and whether GainCorrection is
enabled.
The latency of the dsphdl.CICInterpolator System object™ varies depending on how many integrator and comb sections your filter has, the input vector size, and whether you enable gain correction. Use the getLatency function to find the latency of a particular filter configuration. The latency is the number of cycles between the first valid input and the first valid output, assuming the input is continuously valid.
Create a dsphdl.CICInterpolator System object and request the latency. The default System object filter has two integrator and comb sections, and the gain correction is disabled.
hdlcic = dsphdl.CICInterpolator
hdlcic =
dsphdl.CICInterpolator with properties:
InterpolationSource: 'Property'
InterpolationFactor: 2
DifferentialDelay: 1
NumSections: 2
NumCycles: 1
GainCorrection: false
Show all properties
L_def = getLatency(hdlcic)
L_def =
13
Modify the filter object so it has three integrator and comb sections. Check the resulting change in latency.
CIC interpolation filter System object that you created and configured. See dsphdl.CICInterpolator.
Vector size, specified in the range from 1 to 64. Use this argument to request the
latency of an object similar to hdlcic, but with V
sample vector input. When you do not specify this argument, the function assumes scalar
input.
Cycles of latency that the CIC interpolator object takes between the first valid
input and the first valid output. Each call to the object simulates one cycle. This
latency assumes valid input data on every cycle.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.