In this step, you will learn how to build a real-time application with ConfigurationDesk. You can use this real‑time application to transmit and receive CAN messages via Real‑Time Testing on a SCALEXIO system.
A Simulink model with enabled experimental messages is required, refer to Step 1: How to Adapt a Simulink Model to Make it RTT-Capable.
ConfigurationDesk is installed on your host PC.
A SCALEXIO system is required as registered platform. If a different platform is registered, refer to Step 2: How to Register a Platform.
Open the simulation model from the previous step: …\Documents\MATLAB\CANMMTutorial\RTICANMMTutorial_Lesson1\TutorialModel.slx
Your simulation model opens in MATLAB/Simulink.
On the menu bar, select ConfigurationDesk – Create ConfigurationDesk Project from Model.

ConfigurationDesk is started and the New backstage view opens.

A Project name and an Application name are suggested based on the name of your simulation model.
The simulation model is automatically added to the application.
Click Add Hardware.
The Hardware list opens.
Select Registered Hardware – SCALEXIO.

Click Create.
A new ConfigurationDesk project with the specified project name is created in the active project location.
A ConfigurationDesk application with the specified application name is added to it.
The new application is active and opens in the Model-Function view set.
You have created a new ConfigurationDesk project. Continue with the next part to implement the access to the SCALEXIO hardware.
Switch to the Signal Chain view set.
Select the Hardware Resource Browser.

The displayed hardware topology was automatically created by scanning the registered hardware when you created the ConfigurationDesk project.
In the hardware topology, navigate to the physically connected CAN channel 1 and CAN channel 2 of your SCALEXIO system.
A physical connection between CAN channel 1 and CAN channel 2 of your dSPACE real-time hardware is required. To establish the connection, you need information on the mapping of CAN controller numbers specified in RTI/RTLib to CAN signals and pins of dSPACE boards. Refer to Connecting CAN Channels for Working With this Tutorial.
Drag both CAN channels to the Global working view.
For each CAN channel, ConfigurationDesk adds one CAN function block to the signal chain and automatically assigns the channel to it, as shown in the following example.

Select the Model Browser.
The Simulink model is displayed.

From the Model Browser drag the TutorialModel to the working view.
Map the TutMdl_C1 model port to the Configuration function port of the CAN (1) function block. To do this, select TutMdl_C1, press the left mouse button, and draw a mapping line to the Configuration function port.

Map the TutMdl_C2 model port to the Configuration function port of the CAN (2) function block.

You have implemented access to the SCALEXIO system. Continue with the next part to build a real-time application.
Switch to the Build view set.
In the Build Configuration table, select Global Build Settings.
In the Properties Browser, clear the checkbox next to the Download real-time application after build property.

Select the Conflicts Viewer.
Click the expand arrow of the context set filter and make sure that at least the Application and Task Modeling, Function, Model, and Hardware Topology context sets are selected.

Make sure that the Errors and Warnings filters are selected.

If the Conflicts Viewer does not display any conflicts, there are no conflicts in the ConfigurationDesk application that affect the build process.
On the Home ribbon, click Build – Start.
The build process starts. The Build Log Viewer displays the progress of the build process in chronological order. Messages regarding model code generation are displayed in the MATLAB Command Window.
Wait until the message Build process finished is displayed in the Build Log Viewer.

On the File ribbon, click Save Project.
You have built a real-time application with ConfigurationDesk to use RTT on a SCALEXIO system. Continue with the next part to create a ControlDesk project.
In ConfigurationDesk, click Real-Time Application – Create ControlDesk Experiment on the Home ribbon.
A ControlDesk project with the same name as the ConfigurationDesk project is created.
A ControlDesk experiment with the same name as the real‑time application is created.
In the Project pane, the system description file is added to the Hardware Configurations folder.
In ControlDesk, click Save Project on the File ribbon.
You have built a real-time application with ConfigurationDesk. You can use this real-time application to implement CAN communication via Real‑Time Testing on a SCALEXIO system. You have also created a new ControlDesk project. In the next step, you will write an RTT sequence to transmit and receive CAN messages with the rttlib.canlib module.