Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-6624 Pulse Frequency measurement

Solved!
Go to solution

Hi.  I'm working with a PXI-6624 and am interested in doing pulse frequency measurements to get both frequency and duty cycle on its inputs using DAQmx.  

 

Whenever I go to create the virtual channel however, I get error -200431:

 

"Selected physical channel does not support the measurement type required by the virtual channel you are creating."

"Requested Value: Pulse Frequency"

"You Can Select: Frequency, Period, Pulse Width, Semi Period, Two Edge Seperation, Position:..."

 

Is this card really not capable of doing these pulse frequency measurements?  

 

0 Kudos
Message 1 of 3
(7,194 Views)
Solution
Accepted by topic author TarunT

Yes, the "Pulse" (not to be confused with "Pulse Width") measurement was introduced with NI's STC3 devices including X Series and CompactDAQ.  

 

 

Pulse Measurement:

 

www.ni.compdfmanuals370784d.png

 

 

However, you should still be able to measure frequency and duty cycle on your card with a semi-period measurement:

 

 

Semi-Period Measurement:

www.ni.compdfmanuals370784d.png

 

Images are from the X Series User Manual.

 

 

 

The difference between the two modes comes down to how the data is stored and buffered on the card--with the semi-period method the hardware doesn't distinguish between high and low samples and puts everything into a single buffer.  However, if you start the counter off the appropriate edge (see below property node), then you would know in software the order of high and low samples and can pretty easily calculate frequency and duty cycle from this.

 

Untitled 1 Block Diagram _2013-01-11_11-51-27.png

 

 

Best Regards,

John Passiak
Message 2 of 3
(7,190 Views)

Hi John.  That sounds like a good work around.  I'll give this a try.  Thanks.

0 Kudos
Message 3 of 3
(7,181 Views)