Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

AquiredData event stops firing for no apparent reason

I am calculating speed measuring period, rising edge. and the AquiredData event intermitently stops firing every now and then. Anyone know why?
0 Kudos
Message 1 of 3
(3,259 Views)
Hi GearRunr,

I assume you have it configured to fire every N samples or so. How do you know you are missing the event? Are you collecting the data in a separate subroutine? It could be that collecting the data in a separate subroutine can empty the data before the event is fired.

Could it also be that there are no counter events? Is your signal TTL compatible 5V signal? It could be that the voltage or rise-time are not being met on your signal and the counter is disregarding the values and thus not counting. This would cause you not to have data on thus cause the AcquiredData event not to fire.

I linked below a couple useful resources. Hope that helps. Have a good day.

What Is the Definition of a TTL (Transistor-Transistor Logic) Compati
ble Signal?
http://digital.ni.com/public.nsf/websearch/ACB4BD7550C4374C86256BFB0067A4BD?OpenDocument

How Can I Convert My Signal to a TTL Compatible Signal?
http://digital.ni.com/public.nsf/websearch/771D82A44F27A0AF86256DD0007FB9A1?OpenDocument

Ron
Message 2 of 3
(3,259 Views)
Thanks. It was my own fault, I set a flag to test for the end of the event before restarting the counter and did not reset it correctly. The simplest mistakes are the hardest to find.
Thanks again,
Rob
0 Kudos
Message 3 of 3
(3,259 Views)