Campbell-scientific CR1000 Measurement and Control System Manual de usuario Pagina 264

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 588
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 263
Section 7. Installation
264
where X
N
is the most recent value of the source variable and X
N-1
is the previous
value (X
1
is the oldest value included in the average, i.e., N-1 values back from
the most recent). NANs are ignored in the processing of AvgRun() unless all
values in the population are NAN.
AvgRun() uses high-precision math, so a 32-bit extension of the mantissa is saved
and used internally resulting in 56 bits of precision.
Note This instruction should not normally be inserted within a For/Next
construct with the Source and Destination parameters indexed and Reps set to 1.
Doing so will perform a single running average, using the values of the different
elements of the array, instead of performing an independent running average on
each element of the array. The results will be a running average of a spatial
average of the various source array elements.
A running average is a digital low-pass filter; its output is attenuated as a function
of frequency, and its output is delayed in time. The amounts of attenuation and
phase shift (time delay) depend on the frequency of the input signal and the time
length (which is related to the number of points) of the running average.
Figure Running-Average Frequency Response (p. 265) is a graph of signal
attenuation plotted against signal frequency normalized to 1/(running average
duration). The signal is attenuated by a synchronizing filter with an order of 1
(simple averaging): Sin(πX) / (πX), where X is the ratio of the input signal
frequency to the running-average frequency (running-average frequency = 1 /
time length of the running average).
Example:
Scanperiod=1ms,
Nvalue=4(numberofpointstoaverage),
Runningaverageduration=4ms
Runningaveragefrequency=1/(runningaverageduration=250Hz)
Inputsignalfrequency=100Hz
Inputfrequencytorunningaverage(normalizedfrequency)=10
0/250
=0.4
Sin(0.4π)/(0.4π)=0.757(orreadfromfigureRunningAverage
FrequencyResponse
(p.265),wheretheXaxisis0.4)
Fora100HzinputsignalwithanAmplitudeof10Vpeaktopeak,a
runningaverageoutputsa100Hzsignalwithanamplitudeof7.57V
peaktopeak.
There is also a phase shift, or delay, in the AvgRun() output. The formula for
calculating the delay, in number of samples, is:
Delayinsamples=(N1)/2
Vista de pagina 263
1 2 ... 259 260 261 262 263 264 265 266 267 268 269 ... 587 588

Comentarios a estos manuales

Sin comentarios