Confusion On Parameter Changing for SPMSM Field Weakening Matlab/Simulink Template When Simulated

1 次查看(过去 30 天)
Hello,
I need some assistance with changing parameters in a Simulink template I found on the Matlab website. Whenever I try to change the parameters in blocks that are included in the struct and/or base workspace (which is almost every block), the parameters I modify revert to their default values when I started the simulation. I believe the issue may be related to the callback section or the default component that governs the parameters I am attempting to modify.
For context, I am simulating a SPMSM Field Weakening model for a 400V battery system and a high-power motor controller. However, the default motor controller in the template, the Anaheim-BLY171D-24V-4000, is only rated for a 24V DC system and is designed for low-torque applications. My question is: how can I change the parameters for this default system to make it compatible with my simulation? Additionally, is there a list of components for high-power inverters and SPMSM motors that we can access for use in the simulation?
Thank you for your help!
  2 个评论
Halomoan
Halomoan 2025-3-7
I'm sorry for not included the link. This is the website link: https://www.mathworks.com/help/mcb/gs/field-weakening-control-mtpa-pmsm.html
And, this is the simulation Simulink command: openExample('mcb/FieldWeakeningControlWithMTPAExample'). The example parameter that I want to change is the SPMSM motor pole parameter.

请先登录,再进行评论。

回答(1 个)

KrishnaKumar
KrishnaKumar 2025-3-12
"If you obtain the motor parameters from the datasheet or other sources, update the motor, inverter, and position sensor calibration parameters in the model initialization script associated with the Simulink® models."
The example uses a model intialization script to set the values of variables defined in the model. This would be run at the beginning of every simulation and can overwrite any local variables in matlab workspace with the same name. Please edit the model initialization script to update the required motor/inverter parameters needed for your simulation. See Estimate Control Gains and Use Utility Functions on how find the model initialization function/script.
For the field weakening example it might be one of the *_data.m files in the example folder based on the model that is being used by you.

类别

Help CenterFile Exchange 中查找有关 Specialized Power Systems 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by