If i am measuring PWM signals from the micro-controller and for simulation process DC-link of the rectifier can be calculated by knowing the modulation index . is there anyway to calculate or to visualize the modulation index from the measure PWM signals ? If the supply voltage is given ?