Main Content

Generate Parameters for Flux-Based Blocks

This table provides a description of the process to generate the parameters and links to examples.

For BlockTo GenerateDescription Example
Flux-Based PM Controller

Current Controller parameters:

  • Corresponding d-axis current reference, id_ref

  • Corresponding q-axis current reference, iq_ref

  • Vector of speed breakpoints, wbp

  • Vector of torque breakpoints, tbp

Use the Model-Based Calibration Toolbox™ to generate optimized current controller tables for flux-based motor controllers.

Based on nonlinear motor flux data, the calibration tables optimize:

  • Motor efficiency

  • Maximum torque per ampere (MTPA)

  • Flux weakening

Generate Current Controller Parameters

Motor parameters:

  • Vector of d-axis current breakpoints, id_index

  • Vector of q-axis current breakpoints, iq_index

  • Corresponding d-axis flux, lambda_d

  • Corresponding q-axis flux, lambda_q

Use MATLAB® scripts available with Powertrain Blockset™ to load flux motor data, visualize the flux surface, and create plots of flux as a function of current.

Generate Feed-Forward Flux Parameters

Flux-Based PMSM


  • Vector of d-axis flux, flux_d

  • Vector of q-axis flux, flux_q

  • Corresponding d-axis current, id

  • Corresponding q-axis current, iq

Use MATLAB scripts available with Powertrain Blockset to load flux motor data, invert the flux, and create plots of current as a function of flux.

Generate Parameters for Flux-Based PMSM Block

To open a model with optimized parameters for the Flux-Based PM Controller and Flux-Based PMSM blocks, on the command-line, type Flux_Based_PMSM_TestBench.


[1] Hu, Dakai, Yazan Alsmadi, and Longya Xu. “High fidelity nonlinear IPM modeling based on measured stator winding flux linkage.” IEEE® Transactions on Industry Applications, Vol. 51, No. 4, July/August 2015.

[2] Chen, Xiao, Jiabin Wang, Bhaskar Sen, Panagiotis Lasari, Tianfu Sun. “A High-Fidelity and Computationally Efficient Model for Interior Permanent-Magnet Machines Considering the Magnetic Saturation, Spatial Harmonics, and Iron Loss Effect.” IEEE Transactions on Industrial Electronics, Vol. 62, No. 7, July 2015.

[3] Ottosson, J., M. Alakula. “A compact field weakening controller implementation.” International Symposium on Power Electronics, Electrical Drives, Automation and Motion, July, 2006.

See Also