メインコンテンツ

Generate Calibration

After you fit the model, you can create functions and tables, run the optimization, and fill the calibration tables. For this example, you first calibrate the torque envelope and then calibrate the final torque and field weakening control current reference lookup tables.

For comparison, the PMSM maximum efficiency calibration case study contains the calibration results.

Case studies list with PMSM maximum efficiency calibration selected

Import Models and Create Functions

Import models and create the functions to use when you optimize the calibration.

  1. In MATLAB®, on the Apps tab, in the Automotive group, click MBC Optimization.

  2. In the CAGE Browser under Import, select Models. If the project is not already opened, then in the MBC Model Fitting browser, open the gs_example.mat project.

    MBC model optimization browser

  3. In the Import Models dialog box, click OK. Close the CAGE Browser.

    Import models to cage dialog.

  4. Select File > Save Project. Save the gs_example.cag file to the work folder.