Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1244

PWM Acquisition at same rate

$
0
0

Hello All,

 

I am currently trying to read continuously a PWM using the counter input of a NI USB-6361.

 

The PWM has a frequency of 1kHz, therefore I should read a sample every 1ms. Unfortunately, the loop take about 3-4ms to execute which means I lose about 75% of my data. I wonder what I should do to acquire my PWM once every 1ms.

 

A simple VI of how I acquire my data looks like this:DAQ PWM.PNG

 

I tried adding this DAQ function:DAQ CLK.PNGbut every time I do I get different errors like the clock is too fast or I try to acquire a sample before it is ready etc..

 

Any help would be greatly appreciated because I know the card is fast enough to aquire at 1kHz and I am just wasting its potential right now.

 

Sincerely,

Cynthia


Viewing all articles
Browse latest Browse all 1244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>