Main Content

Resize Engine

R2026b

Update Engine Resize Callback

If you want to resize the engine, you must first update the engine resize callback in the mask editor:

  1. Open the engine dynamometer model. In the MATLAB® Command window, enter this command.

    EngineDynamometer
  2. To open the mask editor, right-click the engine resize block you are using and select View Mask: Resize SI Engine and Recalibrate Controller, or Resize CI Engine and Recalibrate Controller.

  3. Select the Code tab.

  4. Locate ResizeEngButton_callback().

  5. Replace 'resize' with 'resizenomsk'.

    % Callback for ResizeEngButton
    function ResizeEngButton_callback()
    autoicon('autolibsiengresize',gcb,'resizenomsk');
    end
  6. In the toolstrip, click Save Mask, and then close the mask editor.

Resize Engine

  1. Open the Block Parameters dialog box for the engine resize block you are using: Resize SI Engine and Recalibrate Controller, or Resize CI Engine and Recalibrate Controller.

  2. Enter the resize parameters.

  3. Click Resize Engine.

    Recalibrate Engine Block Parameters dialog box

  4. Wait until the status bar of the EngineDynamometer model indicates that the model is ready.

  5. Save and close the engine dynamometer model.

See Also

|