Switch Closure on P Terminal Open Collector on P Terminal
6.6.3.2 C terminals
Switch-closure mode is a special case edge-count function that measures dry-contact switch-
closures or open collectors. The operating system filters bounces.
l CRBasic instruction: PulseCount()
See also Pulse measurement specifications (p. 169).
6.6.4 Edge timing and edge counting
Edge time, period, and counts can be measured on P or C terminals. Feedback control using
pulse-width modulation (PWM) is an example of an edge timing application.
6.6.4.1 Single edge timing
A single edge or state transition can be measured on or C terminals. Measurements can be
expressed as a time (µs), frequency (Hz) or period (µs).
CRBasic instruction: TimerInput()
6.6.4.2 Multiple edge counting
Time between edges, time from an edge on the previous terminal, and edges that span the scan
interval can be measured on or C terminals. Measurements can be expressed as a time (µs),
frequency (Hz) or period (µs).
l CRBasic instruction: TimerInput()
6.6.4.3 Timer input NAN conditions
NAN is the result of a TimerInput() measurement if one of the following occurs:
l Measurement timer expires
l The signal frequency is too fast
6. Measurements 75