Hi,
I looked into it some more and have not found any good examples in C. I however have found an example in Labview. If you are interested in this, just let me know. What i can tell you is that it should work just like generating pulses with a normal counter and selecting the Dev1/freqout (or something else depending on your setup) channel as output channel.
So something linke DAQmxCreateCOPulseChanFreq(gTaskHandle,"Dev2/freqout","",DAQmx_Val_Hz,idle,0.0,freq,duty) could do the trick.
Then all you need to do is set the output terminal to a PFI or RTSI line. Normally something like
DAQmxConnectTerms ("Dev1/freqout", "Dev1/PFI0", DAQmx_Val_DoNotInvertPolarity); should do the trick, however i am not able to verify this
because i am lacking the hardware to do this. The example in labview only calculates a frequency starting from 10Mhz or 100kHz divided by the divisor
and that number will go to the frequency parameter of the create "counter output pulse" channel. So nothing fancy, but in C i can't find a good example anywhere and i can't verify things myself cause i have not got a 6229. Perhaps you could ask such a question also on the CVI forum because it has all to do with the correct C commands.
Kind Regards,
Joris Donders
National Instruments
EMEIA GTM Lead for Semiconductor
www.ni.com/semiconductor