Step 2: How to Add a Simulink Model to the ConfigurationDesk Application

Objective

To make the Simulink® model available in ConfigurationDesk or the Bus Manager (stand-alone), you have to add it to the ConfigurationDesk application.


Methods in this step

Note

If you use the Bus Manager in ConfigurationDesk, you can add the Simulink model via the ConfigurationDesk menu of the model. This is not possible if you use the Bus Manager (stand-alone).

Depending on your Bus Manager variant, select one of the following methods:

  • If you use the Bus Manager in ConfigurationDesk, select Method 1.

  • If you use the Bus Manager (stand-alone), select Method 2.


Method 1: To add a Simulink model when using the Bus Manager in ConfigurationDesk

  1. In the Simulink Editor, click ConfigurationDesk - Add Model to ConfigurationDesk Project: BusManagerTutorial.

    An Add Model To Project dialog might open, asking you whether you want to prepare the model to be added to the ConfigurationDesk project.

  2. If the dialog opens, click Yes in the dialog.

    The Simulink model is analyzed and added to the ConfigurationDesk application. When the analysis is finished, ConfigurationDesk is displayed. In ConfigurationDesk, the Model-Function view set is selected and the Model-Function Mapping Browser displays the Simulink model and the mapped Restbus_BusConfiguration.

  3. Switch to the Buses view set.

  4. Select the Bus Configuration Ports table.

    All function ports for which model access is enabled are mapped to model ports. The Connected Model Ports column displays the mapped model ports.

    Skip the following method and continue with the result of this step. Refer to Result.


Method 2: To add a Simulink model when using the Bus Manager (stand-alone)

  1. Switch to the Bus Manager (stand-alone).

  2. On the Home ribbon, click .

    The Add Model dialog opens.

  3. In the dialog, click Add model open in Simulink.

    A list opens, displaying the open Simulink model.

  4. In the list, select Generated_Restbus_Model_User1.slx and click Close.

    The list closes and the dialog displays the model.

  5. In the dialog, click OK.

    The Simulink model is analyzed and added to the ConfigurationDesk application. The Model Browser displays the Simulink model.

  6. Select the Bus Configuration Ports table.

    All function ports for which model access is enabled are mapped to model ports. The Connected Model Ports column displays the mapped model ports.


Result

You added the Generated_Restbus_Model_User1.slx model to the ConfigurationDesk application.


What's next

In the next step, you will enable model access for further function ports of the Restbus_BusConfiguration and propagate the changes to the Simulink model.


Redaction