**7. Conclusions**

130 MATLAB – A Fundamental Tool for Scientific Computing and Engineering Applications – Volume 1

**Figure 32.** Experimental result: a) point on wave at 45 b) point on wave at 45 c) point on wave at

a) b) c)

**Figure 30.** Voltage sag Type B.

**Figure 31.** Voltage sag Type E.

270

This chapter has proposed the use of GUI SagWave software to provide a visual interactive capability generating data for the dsPIC controller. SagWave software can show the waveform and the phasor of the three-phase voltage. The simulation and experimental results have shown a simple control algorithm for generating the sag signal for testing. The experimental results have shown the main advantages of this prototype: point on wave, sag duration, magnitude of voltage sag and varied type of voltage sag. A future study will design software for the dsPIC microcontroller to generate all seven types of voltage sag and to test the dynamic and nonlinear loads.
