(Not recommended) Reset counter channel to initial count
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
ans = 303
s — Data acquisition session
Data acquisition session, specified as a session object. Create the session
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
Version HistoryIntroduced in R2011a
session object interface is not recommended
Use of this function with a
session object is not recommended. To
access a data acquisition device, use a
with its functions and properties instead.
For more information about using the recommended functionality, see Transition Your Code from Session to DataAcquisition Interface.