Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter in USB-6501 cannot reset with the Matlab command "resetCounters" anymore

Hi everyone,

Hope you can help me.

I have build a GUI in Matlab to control daq with the counter in the USB-6501 interface. The counter counts in loops for a specified time interval, and after each loop the counter is being reset. This is done by the command "resetCounters" in the daqtoolbox for Matlab. It worked perfectly, BUT after the program and interface were moved to another computer, it stopped working - also on my machine, when the interface is reconnected. Any ideas what is causing this annoying problem? 

 

Thomas

0 Kudos
Message 1 of 3
(3,080 Views)

Were you able to resolve this? I think I'm dealing with the same issue. Counter keeps going, despite resetting it. 

 

0 Kudos
Message 2 of 3
(2,072 Views)

It has been a while, but I think I resolved it by using resetCounters(s(1)), where s=daq.createSession(‘ni’), instead of just resetCounters(s). 

0 Kudos
Message 3 of 3
(2,064 Views)