Section 8. Operation
304
R
=
Timing
resolution
of
the
TimerIO()
measurement
=
P
=
Period
of
input
signal
(seconds).
For
example,
P
=
1
/
1000
Hz
=
0.001
s
E
=
Number
of
rising
edges
per
scan
or
1,
whichever
is
greater.
Table 65.
Example. E for a 10 Hz input signal
Scan
Rising Edge / Scan
E
5.0 50 50
0.5 5 5
0.05 0.5 1
TimerIO()
instruction measures frequencies of
≤
1 kHz with higher frequency
resolution over short (sub-second) intervals. In contrast, sub-second frequency
measurement with
PulseCount()
produce measurements of lower resolution.
Consider a 1-kHz input. Table
Frequency Resolution Comparison
(p. 304)
lists
frequency resolution to be expected for a 1-kHz signal measured by
TimerIO()
and
PulseCount()
at 0.5-s and 5.0-s scan intervals.
Increasing a measurement interval from 1 second to 10 seconds, either by
increasing the scan interval (when using
PulseCount()
) or by averaging (when
using
PulseCount()
or
TimerIO()
), improves the resulting frequency resolution
from 1 Hz to 0.1 Hz. Averaging can be accomplished by the
Average()
,
AvgRun()
, and
AvgSpa()
instructions. Also,
PulseCount()
has the option of
entering a number greater than 1 in the
POption
parameter. Doing so enters an
averaging interval in milliseconds for a direct running average computation.
However, use caution when averaging, Averaging of any measurement reduces
the certainty that the result truly represents a real aspect of the phenomenon being
measured.
Table 66.
Frequency Resolution Comparison
0.5 s Scan
5.0 s Scan
PulseCount()
,
POption
=
1
FR = 2 Hz
FR = 0.2 Hz
TimerIO()
,
Function
=
2
FR = 0.0011 Hz
FR = 0.00011 Hz
Q — When more than one pulse is in a scan interval, what does
TimerIO()
return
when configured to return a frequency? Does it average the measured periods and
compute the frequency from that (f = 1/T)? For example:
Scan
(50,mSec,10,0)
TimerIO
(WindSpd(),11111111,00022000,60,Sec)
A — In the background, a 32-bit timer counter is saved each time the signal
transitions as programmed (rising or falling). This counter is running at a fixed
high frequency. A count is also incremented for each transition. When the
TimerIO()
instruction executes, it uses the difference of time between the edge
prior to the last execution and the edge prior to this execution as the time
difference. The number of transitions that occur between these two times divided
by the time difference gives the calculated frequency. For multiple edges
occurring between execution intervals, this calculation does assume that the
Summary of Contents for CR850
Page 2: ......
Page 4: ......
Page 6: ......
Page 26: ...Table of Contents 26...
Page 30: ...Section 2 Cautionary Statements 30...
Page 32: ...Section 3 Initial Inspection 32...
Page 35: ...Section 4 Quickstart Tutorial 35 Figure 2 Wiring panel...
Page 55: ...Section 4 Quickstart Tutorial 55 Figure 24 PC200W View data utility...
Page 78: ...Section 5 System Overview 78...
Page 80: ...Section 6 CR800 Specifications 80...
Page 267: ...Section 7 Installation 267 Figure 84 Running average signal attenuation...
Page 268: ...Section 7 Installation 268...
Page 384: ...Section 8 Operation 384 Figure 113 Using the keyboard display...
Page 387: ...Section 8 Operation 387 Figure 116 Real time custom...
Page 388: ...Section 8 Operation 388 8 8 1 3 Final Storage Tables Figure 117 Final storage tables...
Page 389: ...Section 8 Operation 389 8 8 2 Run Stop Program Figure 118 Run Stop Program...
Page 390: ...Section 8 Operation 390 8 8 3 File Display Figure 119 File display...
Page 396: ...Section 8 Operation 396...
Page 402: ...Section 9 Maintenance 402...
Page 450: ...Section 11 Glossary 450...
Page 504: ...Appendix A CRBasic Programming Instructions 504...
Page 526: ...Appendix B Status Table and Settings 526...
Page 530: ...Appendix C Serial Port Pinouts 530...
Page 536: ...Appendix E FP2 Data Format 536...
Page 550: ...Appendix F Other Campbell Scientific Products 550...
Page 565: ......