This provides you with the information you need if you previously worked with RTI.
Working with ConfigurationDesk has some conceptual differences from working with RTI.
If you work with RTI, the following applies:
The Simulink model represents the application.
The Simulink model is specific to exactly one of the supported platforms.
The Simulink model contains the behavior model and RTI blocks representing specific I/O functionality.
If you work with ConfigurationDesk, the following applies:
The Simulink model contains the behavior model but no I/O functionality. Generic interface blocks (called model port blocks) specify the inputs and outputs of the behavior model. I/O functionality is implemented in ConfigurationDesk via function blocks that are mapped to the ports of the model port blocks.
In ConfigurationDesk, you create a ConfigurationDesk project with one or more ConfigurationDesk applications. You can add multiple Simulink models or SIC files to a ConfigurationDesk application as behavior models.
The model is not specific to a supported platform. You can use the same model with different ConfigurationDesk applications and with different I/O functionality.
Executing multiple models in the same application process lets you combine multiple small behavior models into one real-time application without having to combine them into one overall model in Simulink.
The following table shows the main differences between working with ConfigurationDesk and working with RTI:
Action | Working with RTI | Working with ConfigurationDesk |
|---|---|---|
Hardware mapping | The hardware is implicitly defined by the added RTI block, for example, DIO_TYPE3_BIT_IN_BLx works only on a DS1511 I/O Board. The mapping is a setting in the RTI block. | The behavior model does not contain any information about the hardware. Suitable hardware is assigned and can be replaced in ConfigurationDesk. |
Modeling asynchronous tasks | Asynchronous tasks are modeled via board-specific RTI Interrupt blocks. | Asynchronous tasks are modeled via the Hardware-Triggered Runnable Function block from the Model Interface Blockset. Each Hardware-Triggered Runnable Function block in the Simulink model has a representative in ConfigurationDesk that must be connected to the event port of a function block. A preconfigured task triggered by an I/O event is then available in ConfigurationDesk. |
Software-generated interrupts are made available as trigger sources for tasks via Software Interrupt blocks. | For each Software-Triggered Runnable Function block in the Simulink model, a predefined task with an assigned software event is available in ConfigurationDesk. | |
Triggering periodic tasks by an asynchronous event | The periodic rates of the Simulink model are indicated by RTI as timer tasks. By default, all timer tasks are driven by a processor-board-specific timer interrupt. To overwrite this behavior, you can use the Timer Task Assignment block. This block lets an RTI Interrupt block drive the timer tasks. | In ConfigurationDesk, a task with an assigned timer event is created for the fastest periodic task of the Simulink model. For the other periodic tasks of the Simulink model, predefined tasks with an assigned software event are created in ConfigurationDesk. These tasks are triggered by the fastest periodic task. Instead of the timer event, you can assign an I/O event to the fastest periodic task. As a result, all the predefined tasks are triggered asynchronously. |
Data acquisition service | By default, the data acquisition service is only activated for the base rate task1). It can be activated for other tasks by using the Data Capture block. | By default, the data acquisition service is only activated for the base rate task. It can be activated for other tasks by using the DAQ raster name property in ConfigurationDesk. |
Avoiding task overruns in the first simulation steps of the fastest timer task | The FIRST_SIMSTEP_INCREASEMENT option on the Build Options page (CPU options dialog) lets you avoid task overruns. | The Time-Scaled Period and Time Scale Factor properties of the global build settings in ConfigurationDesk let you avoid task overruns. These settings let you specify the requirements of the real-time application in more detail. |
Specifying the system target | If you work with RTI, you specify one of the available board-specific system target files and configure the modeling environment for the board-specific RTI blockset. The system target is automatically configured in a new behavior model if you let MATLAB set the configuration preferences automatically when activating an RTI platform for the first time. You can also modify these settings manually. | If you work with ConfigurationDesk, use Alternatively, you can select the dSPACE Run-Time Target template from the Simulink Start Page to use a preconfigured model. |
Starting the build process | You configure and start the build process in the behavior model. An initial configuration of the build options for a new behavior model is automatically set if MATLAB automatically sets the configuration preferences when you activate an RTI platform for the first time. | You configure and start the build process in ConfigurationDesk.2) ConfigurationDesk adapts the settings in the behavior model to the specific requirements. Some settings are therefore overwritten by predefined ConfigurationDesk settings. During the build process, the model code is generated and then ConfigurationDesk compiles and links it to the final real-time application. If you add a Simulink model to a ConfigurationDesk application via a Simulink implementation container (SIC file), the SIC file already contains the generated code for the Simulink model. The build process in ConfigurationDesk generates the code for the I/O functions, and then compiles and links the model code provided by the SIC file and the code generated for the I/O functions. |
Downloading the application | Optionally, RTI downloads the application after the build. | Optionally, ConfigurationDesk downloads the application after the build. You can configure the download behavior according to your requirements. |
This video shows you how to get your model to run on a dSPACE prototyping system, using the MicroAutoBox III as an example. The video starts with your Simulink model and shows the implementation, build, and download workflow in ConfigurationDesk.