This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

resetCounters

Reset counter channel to initial count

Syntax

resetCounters(s)

Description

example

resetCounters(s) resets the current value of counter channels configured in the session object, s, to the value specified by the InitialCount property on each channel.

Tips

Examples

collapse all

Create a session, then add a counter channel with an EdgeCount measurement type and acquire data.

s = daq.createSession ('ni');
addCounterInputChannel(s,'cDAQ1Mod5',0,'EdgeCount');
inputSingleScan(s)
ans =

   756

Reset the counter to the default value, 0, and acquire data again.

resetCounters(s)
inputSingleScan(s)
ans =

   303

Input Arguments

collapse all

Data acquisition session, specified as a session object. Create the session object using daq.createSession. Use the data acquisition session for acquisition and generation operations. Create one session per vendor and use that vendor session to perform all data acquisition operations.

Introduced in R2011a