Step 4: How to Model Input Bus Signals in the Simulink Model

Objective

To provide the required input bus signal to the updated Restbus_BusConfiguration_Out model port block in the Simulink® model, you have to model the input bus signal manually.


Method: To model the DoorLeftClosedISignal input bus signal

  1. In the Simulink model, navigate to the following subsystem: Restbus_BusConfiguration - In - Simulated ECUs - BusManagerTutorial_ComMatrix - DoorLeftEcu - TX - PDUs - DoorLeftStatusIPdu.

  2. Copy the DoorLeftLockedISignal subsystem and paste it on the same level, e.g., by using the Crtl+C and Ctrl+V shortcuts.

  3. Rename the pasted subsystem to DoorLeftClosedISignal.

  4. Open the DoorLeftClosedISignal subsystem.

  5. Rename all _DoorLeftLockedISignal_ and DoorLeftLockedISignal elements to _DoorLeftClosedISignal_ and DoorLeftClosedISignal, respectively.

  6. Open the ISignal Value subsystem.

  7. Rename the Const_DoorLeftLockedISignal Value block to Const_DoorLeftClosedISignal Value and the DoorLeftLockedISignal Value mapping line to DoorLeftClosedISignal Value.

  8. Navigate to the upper-level DoorLeftStatusIPdu subsystem.

  9. Double-click the _DoorLeftStatusIPdu_ bus creator.

    The Block Parameters:_DoorLeftStatusIPdu_ dialog opens.

  10. In the dialog, type 3 in the Number of inputs field. Depending on your MATLAB/Simulink version, click OK or press Enter and close the dialog.

    An inport is added to the bus creator.

  11. Map the DoorLeftClosedISignal port to the inport of the bus creator.

  12. Rename the mapping line to DoorLeftClosedISignal.

  13. Save the model.


Result

You modeled the DoorLeftClosedISignal input bus signal in the Restbus_BusConfiguration - In subsystem. This signal is required by the Restbus_BusConfiguration_Out model port block.


What's next

In the next step, you will analyze the Simulink model in the ConfigurationDesk application.


Redaction