https://se.mathworks.com/help/daq/daq.interfaces.dataacquisition.resetcounters.html
resetcounters - Reset hardware scan count for all counter inputs - MATLAB
This MATLAB function resets hardware scan count for all counter inputs between on-demand reads on the DataAcquisition d.
for allresethardwarescancount