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?