04-22-2010 09:55 AM
This should be easy, but after pouring through this forum, DAQmx library, CVI examples and the users manual, I'm getting nowhere.
I simply want to generate an output from the USB-6211 Frequency Generator.
The users manual references what can be done, but not how to do it. Does a programming manual exist?
Specifically, how is the input souce selected and how is the output routed to a specific PFI line?
I'm using LabWindows/CVI version 8.0.1
Thanks,
Scott
04-22-2010 11:59 AM
Hi Scott,
The Frequency Generator is programmed very similarly to a standard counter (although its functionality is more limited). The example DigPulseTrain-Cont.prj should be a good start, it can be found in the CVI Example Finder under:
Hardware Input and Output >> DAQmx >> Generating Digital Pulses
You can set the output PFI line using DAQmxSetCOPulseTerm (The example just uses the default Counter Output pins but for Freq Out there is no default output pin).
Best Regards,
01-21-2011 09:14 AM
I, too, have this same problem with the USB-6212. In reviewing the past history of questions on this subject at this forum and with additional exploration of literature, I see many references on the built-in frequency generator of DAQmx and this board, but I see no explainations or examples on how to set it up in CVI. I have already allocated the use of both timer-counters of the 6212, so I have to set this built-in frequency generator into action without using a timer-counter. The output of the generator can be present at its default PFI14 pin, but let me know if it can be reassigned. I would appreciate seeing any CVI code examples. Thanks.
01-24-2011 06:54 AM
Hi Steve,
Try starting with the example I mentioned earlier. Instead of referencing "Dev1/ctr0" you'll want to use "Dev1/freqout". You should use DAQmxSetCOPulseTerm to route the Frequency Generator to one of the PFI lines (any available PFI will work).
Best Regards,
01-25-2011 08:01 AM
Thanks, this works.