Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set up USB-6211 frequency generator.

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

0 Kudos
Message 1 of 5
(4,153 Views)

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,

John Passiak
0 Kudos
Message 2 of 5
(4,144 Views)

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.

0 Kudos
Message 3 of 5
(3,883 Views)

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,

John Passiak
0 Kudos
Message 4 of 5
(3,856 Views)

Thanks, this works.

0 Kudos
Message 5 of 5
(3,839 Views)