Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Starting Counter

Hi. I'm new at this.

I need help starting a counter/timer (6035E) without an external signal. I don't want to measure a pulse train or anything like that.
I simply want to start the clock through user input in C/C++, and read the time repeatedly. I keep on getting "0" when I print the time...

many thanks.
0 Kudos
Message 1 of 2
(3,445 Views)
Teddy;

The general purpose counters need a input signal to start its operation, either pulse measurement or pulse generator. So, if you need a kind of timer, you need to use two counters, the first one will generate a pulse train of the specific frequency the second one needs to do the counting. So, the first counter will use the internal timebase to generate a specific pulse train which will be used by the second counter to executes its operation.
I'm attaching two examples to this response. One will generates a pulse train on one counter and the second will count the number of events that happens on its input. So, you can combine both examples to accomplish the task you need.
Hope this helps.
Filipe
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,445 Views)