Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI6024 Cascade counter

I am trying to form a 48bit counter by cascading 2 24 bit counters in C/C++. What command/parameters I have to use/set to do it? I know there is a componentwork example in the web. But I can't find a corresponding C/C++ command.
0 Kudos
Message 1 of 2
(3,438 Views)
Hello;

One thing you can do is to use one counter to count edges of the internal 20MHz timebase. When the counter reaches its terminal count it generates a pulse on the output. Using the TC pulses as a source for an other counter, you can create pulses longer than 160s.

There are examples at C:\Search Examples\National Instruments\NI-DAQ\examples\VC++\ctr, showing how to do event counting. You can use those examples as the start point for your application, and then include an extra call of Select Signal, which would route the output of that counter to itself. That is required so you would output the TC pulse when the terminal count rolls over.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,438 Views)