From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Frequency generator to clock counters

Solved!
Go to solution

I recently purchased a PCI-6221 with 2 32-bit counters.  I wish to read and log two encoders (hence the 6221) and several analog inputs simultaneously..  My research found that this is not possible without an external clock (which can be created using one of the counters) leaving only one counter for my encoders.  I noticed the 6221 has one Frequency Generator.  Can this generator be used as a clock source for the counters and the AI?

Jeff

 

0 Kudos
Message 1 of 4
(2,362 Views)

You can use Freq Out as the sample clock of both CI tasks. However, you are restricted to what frequencies you can generated. You should also be able to use the AI sample clock as the "sample clock source" of the CI tasks. 
As for simultaneous AI channels, thats impossible on that card. All AI channels share 1 ADC that is multiplexed between the channels on each period of the AI sample clock. 

Wan L
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 4
(2,331 Views)
Solution
Accepted by Jeff-Nickel

Really? I can use the AI sample clock for the CI as well?  I was reading the opposite on this forum.  That is great.

 

Thank you,

 

Jeff

 

0 Kudos
Message 3 of 4
(2,328 Views)

I tried it on a 6229. Can you tell me on what forum post you saw this

Wan L
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 4 of 4
(2,302 Views)