Step 1: How to Add a Behavior Model to the ConfigurationDesk Application

Objective

To exchange data with a behavior model, you have to add the behavior model to the ConfigurationDesk application.


Method: To add a behavior model to the ConfigurationDesk application

  1. Switch to the Buses view set, if necessary.

  2. Select the Model Browser.

  3. Right-click an empty area in the Model Browser and select Add Model on the context menu.

    The Add Model dialog opens.

  4. In the dialog, click Add model from file.

    The Select One or Multiple Artifact(s) dialog opens.

  5. In the Select One or Multiple Artifact(s) dialog, expand Project Folder (BusManagerTutorial).

    The subfolders of the BusManagerTutorial folder are displayed.

  6. Expand the Models folder and select Restbus_Model_64‑bit.sic.

  7. Click Confirm Selection.

    The Select One or Multiple Artifact(s) dialog closes and the Restbus_Model_64‑bit.sic is displayed in the Add Model dialog.

  8. In the Add Model dialog, click OK.

    The dialog closes and the behavior model is added to the Model Browser.

    However, the name that is displayed in the Model Browser is Restbus_Model.

  9. In the Model Browser, select Restbus_Model.

    The Properties Browser displays the path and the complete name of the SIC file.


Result

You added the Restbus_Model_64-bit Simulink implementation container (SIC file) to the ConfigurationDesk application. Because you kept the default settings in the Add Model dialog, a preconfigured application process is created for the SIC file.

The name that is displayed in the Model Browser is Restbus_Model. This is because when you add an SIC file with the <model name>_xx-bit naming scheme to the ConfigurationDesk application, the _xx‑bit suffix is omitted. This also applies to the name of the created application process.

Tip

  • Application processes are structuring elements that contain tasks. Tasks are pieces of code whose execution is controlled by the simulation platform, e.g., by the real-time operating system (RTOS). Tasks are required during the execution of executable applications.

  • To include a bus configuration in a real-time application or a bus simulation container, it must be assigned to exactly one application process. When you map model ports of the Restbus_Model to function ports of the Restbus_BusConfiguration, the bus configuration is automatically assigned to the created application process.

  • The SIC file <model name>_xx-bit naming scheme indicates the following:

    • <model name> is the name of the Simulink behavior model from which the SIC file was generated.

    • _xx‑bit indicates the target architecture for which the SIC file was built. The target architecture must be compatible with the operating system of your simulation platform, e.g., VEOS on Linux 64‑bit or VEOS on Windows.


What's next

In the next step, you will map model ports of the Restbus_Model to function ports of the Restbus_BusConfiguration.


Redaction