Programmable Source

Voltage source can be programmed to mimic any grid conditions such as voltage sag, swell , distortion and frequency variations.
96 Downloads
Updated 13 Dec 2020

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 (2024). Programmable Source (https://www.mathworks.com/matlabcentral/fileexchange/83573-programmable-source), MATLAB Central File Exchange. Retrieved .

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!
Version Published Release Notes
1.0.1

User can also change voltage source frequency.

1.0.0