Why does DQ Current control of 3 phase inverter work with Simscape SPS components but not with Simscape Electrical components?
4 views (last 30 days)
Show older comments
Hi Community,
I am building a current controller for a three phase inverter in the dq frame. I have two models. Both are attached here.
- Model 1 is built with Simscape Specialised Pwer systems library components &
- Model 2 has components from Simscape electrical.
Expected Results - Measured Id and Iq should follow the setpoint/references provided for each respectively. As there is PID control involved there will be some overshoot, rise time etc as expected, but eventually steady state values should converge to the reference.
With all the parameters and controller design same (to the best of my knowledge) I see desired results with Model 1 but not with Model 2. Any ideas why this could be happening?
Model 1

Model 1 results


Model 2

Model 2 results

This result not does not follow the setpoint but also becomes unstable. The PID parameters are the same but could there be a need for different tuning? If so why, since the input output ranges should be similar as all the other parameters are the same.
Due credit for Model 1
"Syed Abdul Rahman Kashif (2025). Grid Tied Inverter with Current Controller (https://www.mathworks.com/matlabcentral/fileexchange/130854-grid-tied-inverter-with-current-controller), MATLAB Central File Exchange. Retrieved January 31, 2025."
0 Comments
Answers (1)
Sabin
on 1 Feb 2025
Edited: Sabin
on 1 Feb 2025
The two models are not the same. In SPS you are using the Universal Bridge while in Simscape you use the Modular Multilevel Converter (Three-Phase). To do a fair comparison you will need to use the Converter (Three-Phase) instead of the MMC.
The two models you try to compare are not similar, The SPS runs at a fundamental sample-time of 1e-6 seconds while the Simscape model runs at 1.5e-4 seconds which is wrong because the switching frequency for the MMC is 10kHz (1e-4 secconds). There may be other issues with the parameterization of the MMC. I have replaced the MMC with a two-level converter on my end, I've configured the threshold voltage in the converter to 0.5 and run it at 1e-6 seconds sample time. It works as expected.
4 Comments
Sabin
on 1 Feb 2025
The two models you try to compare are not similar, The SPS runs at a fundamental sample-time of 1e-6 seconds while the Simscape model runs at 1.5e-4 seconds which is wrong because the switching frequency for the MMC is 10kHz (1e-4 secconds). There may be other issues with the parameterization of the MMC. I have replaced the MMC with a two-level converter on my end, I've configured the threshold voltage in the converter to 0.5 and run it at 1e-6 seconds sample time. It works as expected.
See Also
Categories
Find more on Electrical Block Libraries in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!