Control Simscape library example parameter programatically

4 views (last 30 days)
Hi everyone,
I'm able to control (add/edit) simscape electrical block parameters programmatically, however I've found one that I can't.
I'm trying to change the "Selected part" parameter of a simscape PMSM. This is (as I understand) actually a link to an XML library file.
So the thing I ask is if any of you has done it before and if so, could you help me?
Thank you!

Accepted Answer

Dakai Hu
Dakai Hu on 29 Apr 2022
Hi Leonardo,
Thanks for your question.
Our development team has not exposed the API to programmatically access the vendor motor files as of yet (R2022a). Once there is an update to that I'll let you know.

More Answers (0)


Find more on Electrical Sensors 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!

Translated by