The "Sensorless Field-Oriented Control of PMSM" example in the "Motor Control Blockset" is not working.
16 views (last 30 days)
Show older comments
Version:
MATLAB Version 9.11 (R2021b)
Simulink Version 10.4 (R2021b)
Motor Control Blockset Version 1.3 (R2021b)
For the "Sensorless Field-Oriented Control of PMSM", I only modified two parts of the data type because I don't have "Fixed-Point Designer". These two parts seem to only be related to debugging and won't affect operation. Everything else was left unchanged, keeping the example as is.

The simulation results are problematic. The "Open Loop Control" fails to execute correctly, as shown in the image below. The 0~1 second PWM is not outputting correctly.

Is there a problem with this example? How can I solve this problem?
Thank you very much for your help!
0 Comments
Answers (1)
KrishnaKumar
on 16 Dec 2025 at 9:54
Edited: KrishnaKumar
on 16 Dec 2025 at 9:55
There are multiple places in the mcb_pmsm_foc_sensorless_f28069MLaunchPad example that would require modification if fixed point toolbox is not available. Hope the current scaling is computed properly in 'mcb_pmsm_foc_sensorless_f28069MLaunchPad/Current Control/Input Scaling/Calculate Phase Currents', if not then the results would seem odd or the example might not run correctly.
I assume you primarily want the simulation behaviour and would suggest you to use mcb_pmsm_foc_sensorless_f28379d version of the example as the modifications required in this version might be lesser and the model can be run using 'single' datatype.
0 Comments
See Also
Categories
Find more on Motor Control Blockset 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!