Abstract. Calculation switching angles online for Selected Harmonic Eliminated technology was achieved in this paper, using linear interpolation method and Newton-Laphson iteration method respectively. Firstly, change SHE nonlinear equations into algebraic polynomial equations, which is for seven-level inverter, obtain all the solutions using Solve function in Matlab software when the modulation index m arrange from 0.485 to 1.07. Then draw a cure for switching angles versus m and the characteristic of switching angles has been analyzed. Finally, use two different methods, the one that look-up table combining with linear interpolation and the other that the Newton-Laphson iteration method whose initial value decided by equations form a linear fit of switching angles, to compute the angles online for cascaded 7-level inverter controlling by SHEPWM, a comparative analysis has been done. The study of simulation and experiment results certificate the angles worked out by the opposed method are correct. The two methods, mentioned by this paper are valid.