05-16-2011 10:33 AM
05-17-2011 06:21 PM
Hi, this is Paul with Applications Engineering at NI.
The short non-technical answer to your answer is that the maximum frequency you can generate off this card's 20Mhz timebase is 5Mhz, so this behavior is expected.
The longer answer is that a pulse trains uses 2 different registers to construct the width and the delay of your pulse. When you configure for pulse genration, the counter continuosuly outputs pulses with these specs. Given that the minimum pulse spec value is 2, the maximum frequency the counter can generate is the maximum internal timebase (20Mhz in this card's case) divided by 2.
A little further explanation of this can be viewed at (http://digital.ni.com/public.nsf/allkb/E9C9C56112ECEEA38625749D005A1471?OpenDocument)
Regards
05-18-2011 10:02 AM - edited 05-18-2011 10:03 AM
Hi windwalker,
The max source frequency is 20 MHz. The source is an input to the counter which is divided down to produce the output signal:
The default behavior is that the counter will count to N, and then toggle its output. N must be at least 2, so the maximum frequency you can generate with the default (toggle) mode is 5 MHz (2 ticks high, 2 ticks low of the 20 MHz maximum source).
The other mode is "pulse" mode, where the counter will count to N and then a pulse its output. You can end up getting a pulse every 2 ticks of the source, which could give you a 10 MHz clock. You can't set this mode in the test panels, but here's an example in LabVIEW showing how to get a 10 MHz output (the "External Clock" can be the 20 MHz timebase).
However, if you're just trying to generate a 10 MHz continuous output, then I suggest using the Frequency Output which is a 4-bit counter that can output a small set of frequencies including 10 MHz -- {10 MHz,100 kHz} / {1:16}. It is programmed similar to the other counters.
Best Regards,