Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

problem DAQmxReadCtrFreqScalar reading DUTY CYCLE

Hello,

sometimes we have a problem with DAQmxReadCtrFreqScalar function reading a PWM (duty cycle) value from NI 6343 card.

During the measurement it starts grabbing the N value (eg. N=30%) and after some time it changes to  1-N  (eg. 70%) and keeps this value.. This is probably caused by some kind of disturbance in the wiring. Can someone please explain the internal duty cycle measurement principle of the DAQmxReadCtrFreqScalar function (how it internally works?). It seems like the function uses only one timer/counter and when one additional (disturbance) edge is detected it returns this wrong value.

0 Kudos
Message 1 of 2
(2,120 Views)

I don't have a full answer, but can offer some reasonable guesses on bounding it.

 

A complete answer likely requires detailed knowledge of the DAQ board circuitry.  Info available in the manuals describes behavior for measuring duty cycle on pulse signals that meet the board's specs (both voltage levels and transition timing).  I know of no good explanation for the behavior you see unless:

- signals don't meet specs in some very specific way

- something about your programming or diagnosis is incorrect

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 2 of 2
(2,104 Views)