Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

resetCounters

Reset counter channel to initial count

Syntax

resetCounters(s)

Description

example

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

Tips

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.

Examples

collapse all

Create a session with a counter channel with an 'EdgeCount' measurement type:

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

Acquire data.

inputSingleScan(s)
ans =

   756

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

resetCounters(s)
inputSingleScan(s)

ans =

   303
Was this topic helpful?