Writes PWM duty
mdaqPWMWrite(module, dutyChannelA, dutyChannelB)
This function sets PWM waveform duty for A and B channels for selected PWM module. PWM module has to be initiated with mdaqPWMInit
module: PWM module (1|2|3)
dutyChannelA: PWM channel A duty
dutyChannelB: PWM channel B duty
% setup PWM1 to 1khz period and initial duty for A and B channel to 0 mdaqPWMInit(1, 1000, false, 0, 0); % set PWM1 duty channel A to 25% ane channel B to 50% mdaqPWMWrite(1, 25, 50);