File Exchange

image thumbnail

Programmable Source

version 1.0.1 (28.8 KB) by Lokesh Nalla
Voltage source can be programmed to mimic any grid conditions such as voltage sag, swell , distortion and frequency variations.

4 Downloads

Updated 13 Dec 2020

View Version History

View License

Voltage source can be programmed to mimic any grid conditions such as voltage sag, swell , distortion and frequency variations.

dist = 1, for fundamental balanced voltages with 230 V RMS or 1 pu.
dist = 2, for Fundamental Balanced sag of 0.5 pu
dist = 3, for Fundamental Unbalanced sag Va = 0.5 pu and others at 1 pu
dist = 4, for Fundamental Balanced swell of 1.2 pu
dist = 5, for Fundamental unbalanced swell Va = 1.2 pu and others at 1pu
dist = 6, for Distorted balanced voltages
dist = 7, for Distorted voltages with balanced sag of 0.5 pu
dist = 8, for Distorted voltages with unbalanced sag Va = 0.5 pu and other at 1 pu
dist = 9, for Distorted voltages with balanced swell of 1.2 pu.
dist = 10, for Distorted voltages with unbalanced swell Va = 1.2 pu and others at 1 pu.
dist = any other value, for fundamental balanced voltages with 230 V RMS or 1 pu.

The added harmonics are 5,7, 11 and 13. By seeing the program, any one can change the harmonic voltages, magnitudes and frequency.

Cite As

Lokesh Nalla (2021). Programmable Source (https://www.mathworks.com/matlabcentral/fileexchange/83573-programmable-source), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!