Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger a counter with AI input

Hi,I have a question on how to trigger a counter with AI input.We are using a DAQ board with two counters(counter 0 & 1),and we have an external synchronization signal input at a frequency of 50 Hz or so.The counter is set to event counting mode.Now we want to trigger one of the counters so that the counter starts a new counting process each time it detects a rising/falling edge from the sync signal.Can anybody kindly show me how to achieve this?Thanks a lot.

Regards
Verdi
0 Kudos
Message 1 of 2
(3,164 Views)
Verdi,

I think that the behavior you are looking for can be achieved by configuring the counter for buffered period measurement. The counter starts counting from some initial value with each rising or falling edge on the gate. You could also use buffered event counting, but the count value will not reset with each edge on the gate. I don't know what you're using to program the board, but you could start by looking at the counter examples that are installed with NI-DAQ.

Hope this helps,
Erin
0 Kudos
Message 2 of 2
(3,164 Views)