When you generate a Simulink implementation container from a Simulink® model that is already available in the ConfigurationDesk application, you can replace the model with the container in the ConfigurationDesk application.
When you generate Simulink implementation containers, you have to specify the target architecture. The specified target architecture must be compatible with the operating system of the simulation platform you are using.
In this step, you will generate a Simulink implementation container that is built for a 64‑bit target architecture. The resulting SIC file can be used only with SCALEXIO, MicroLabBox II, and VEOS running on a Linux 64‑bit operating system.
Select the Generated_Restbus_Model_User1 Simulink model.
In the model, navigate to the root level.

In the Simulink Editor, select the Modeling ribbon and click
.

The Configuration Parameters dialog opens. It might take a while until the dialog is completely loaded.
In the Configuration Parameters dialog, select the Code Generation page.

Ensure that dsrt.tlc is specified as the System target file. If it is not, type it in the edit field.
Click the expand arrow of the Code Generation page and select the dSPACE Target DSRT page.

Target architecture displays the target architecture that is selected for this model. The specified target architecture must match the operating system of the simulation platform you are using.
Select 64‑bit from the Target architecture list.
It is not part of this lesson to load the lesson results to a simulation platform. Instead, to ensure that the lesson results are consistent regardless of specified default settings, the 64‑bit target architecture is selected in this step.
In the dialog, click OK.
The dialog closes.
Save the model.
Select the MATLAB Command Window.
In the MATLAB Command Window, type dsmpb_pref("Set", "AddTargetArchToSICFilename", true) and press Enter.
AddTargetArchToSICFilename is set to true. When you now generate Simulink implementation containers, the related SIC file names are automatically extended by the specified target architecture.
Select the Generated_Restbus_Model_User1 Simulink model.
Press Ctrl+B.
A Simulink implementation container is generated and the name of the resulting SIC file is extended by _64‑bit. The Generated_Restbus_Model_User1_64-bit.sic file is saved to the MATLAB working directory, i.e., in the Models folder of the BusManagerTutorial project.

Close the Generated_Restbus_Model_User1 Simulink model.
You generated a Simulink implementation container from the Simulink model. You can now replace the Simulink model in the ConfigurationDesk application. Continue with the next part.
In the ConfigurationDesk application, select the Model Browser.
Right-click the Generated_Restbus_Model_User1 node and select Replace Model on the context menu.

The
symbol in front of the Generated_Restbus_Model_User1 node indicates that the Simulink model contains changes that are not synchronized with the ConfigurationDesk application.
The Replace Model dialog opens.
In the dialog, click Add model from file.
The Select an Artifact dialog opens.
In the Select an Artifact dialog, expand Project Folder (BusManagerTutorial) – Models.
Select the Generated_Restbus_Model_User1_64-bit.sic file and click Confirm Selection.

The Select an Artifact dialog closes and the Replace Model dialog displays the Generated_Restbus_Model_User1_64-bit.sic file.

In the dialog, click OK.
The dialog closes and the Simulink model is replaced with the Simulink implementation container.

The displayed name does not change. This is because for SIC files with the <model name>_xx-bit naming scheme, the _xx-bit suffix is omitted in the ConfigurationDesk application.
By omitting the _xx-bit suffix, the efforts for replacing models in the ConfigurationDesk application are reduced to a minimum.
When you select the model, Model location in the Properties Browser displays the full path including the complete name of the SIC file.

Select the Bus Configuration Ports table.
The mapping of function ports to model ports has not changed. The Connected Model Ports column displays the mapped model ports.
You replaced the Simulink model with the Simulink implementation container you generated from the Simulink model. The mapping of model ports to function ports remains unchanged.
With this step, you finished the lesson. For a summary of the lesson and for more information, refer to Result of Lesson 9.