Counter and Timer Input and Output

Acquire counter data and generate pulses with National Instruments® devices

Before you use counter channels, see Hardware Discovery and Session Setup.

To learn how to create a session and acquire or generate counter and timer data, see Counter and Timer Input and Output Workflow.

Functions

addCounterInputChannelAdd counter input channel
addCounterOutputChannelAdd counter output channel
inputSingleScanAcquire single scan from all input channels
resetCountersReset counter channel to initial count
startForegroundStart foreground operations
startBackgroundStart background operations
removeChannelRemove channel from session object
stopStop background operation
waitBlock MATLAB until background operation completes

Topics

Analog and Digital Counters

Use digital and analog counters to count clock and external events.

Acquire Counter Input Data

Acquires edge counts from a device.

Generate Pulse Data on a Counter Channel

Generates pulses on counter/timer device channels.

Acquire Digital Data Using a Counter Output Channel as External Clock

Acquire digital data using a counter output channel to generate clock pulses.

Featured Examples