| Embedded Target for Motorola MPC555 | ![]() |
Modifying the Controller
In this section, we add an output signal and port to the controller subsystem. The changes we make to the controller subsystem in this section are for demonstration purposes; they do not add useful functionality to the model:
fuel_lib library, and double-click on the original fuel rate controller subsystem.
fuel rate controller subsystem. Configure them such that an offset of 0.5 is summed with the fuel rate signal.
fuel + offset. The fuel rate controller subsystem should now resemble this block diagram.
fuel rate controller subsystem. Observe that, in the library window, the fuel rate controller subsystem now has two outputs, but the SIL and PIL blocks in the library do not. These components will not be updated until the library is rebuilt.
| Note You do not need to remove the configurable subsystem from the model to rebuild the code for the SIL and PIL components. |
mpc555pil_fuelsys model. Right-click on the configurable subsystem in the model. A context menu appears. From the Block choice submenu of the context menu, select fuel rate controller. Observe that the configurable subsystem reflects the change in the corresponding component of the library, showing two outports.
fuel + offset outport of the configurable subsystem. Label the scope fuel with offset. The model should now resemble this block diagram.
| Tutorial 2: Modifying and Rebuilding the Controller | Rebuilding the Controller and Cosimulating | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |