Quantcast
Channel: Motion Control and Motor Drives topics
Viewing all articles
Browse latest Browse all 1315

PWM with NI 9264 using MATLAB

$
0
0

I am trying to generate a continuous background PWM signal using the analog output NI 9264 module. I am providing the code through MATLAB data acquisition toolbox. 

 

When I provide a vector with a constant value (for example, a vector of length 5000, with all values being 4V), the output is a constant 4V. However, when I pulse the signal (for example, a vector with 5000 values, alternating between high and low in groups of 50), the output shows either the high value or the low value, it does not show the PWM pulse train. 

 

Is there a way to achieve a constant PWM output using MATLAB?


Viewing all articles
Browse latest Browse all 1315

Trending Articles



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