Creating a Real-Time Application: From ECU to Model

Objective

"From ECU to Model" is a workflow whose starting point is the representation of your ECU in ConfigurationDesk. This workflow is typically used in implementing real-time applications for hardware-in-the-loop simulation scenarios.


Overview

The following illustration gives you an overview of the use scenario.


Workflow

The workflow shows the steps of a standard workflow for implementing a ConfigurationDesk application with one behavior model.


Detailed steps

The following table shows detailed workflow steps and indicates the corresponding chapters, which give you detailed information (basic information, instructions etc.).

Step

Work

Refer to ...

1

Create a new project and a ConfigurationDesk application.

Managing ConfigurationDesk Projects and Applications

2

Create a signal chain in ConfigurationDesk.

1

Create a device topology.

Creating and Extending Device Topologies

2

Configure device ports.

Configuring External Devices

3

Add device blocks to the signal chain.

Adding Device Topology Elements to the Signal Chain

4

Add function blocks to the signal chain.

Adding Function Blocks to the Signal Chain

5

Configure the function block properties.

Configuring Function Blocks

6

Map device blocks to function blocks (= device port mapping).

Device Port Mapping

7

Add model port blocks to the signal chain.

Adding Model Port Blocks to the Signal Chain

3

Add hardware access.

1

Add a hardware topology to the ConfigurationDesk application.

How to Add a Hardware Topology

2

Assign hardware resources to the function blocks.

Assigning Hardware Resources to Function Blocks

3

Calculate wiring information for the cable harness and export it for external usage.

How to (Re)Calculate the External Cable Harness

4

Generate the Simulink model interface and implement the behavior model.

1

Generate new Simulink model interface.

How to Transfer Unresolved Model Port Blocks to a Simulink Behavior Model via an Interface Model

2

Implement the behavior model:

  • Model the control algorithm. Use Simulink Blocksets and Toolboxes from MathWorks®.

  • Specify the model interface of the behavior model.

  • Configure tasks.

Introduction to the Model Interface Package for Simulink

3

Add the behavior model to the ConfigurationDesk application.

How to Add Models to the Model Topology

5

Add bus communication to the signal chain (if necessary).

1

Add specific function blocks for bus communication (CAN, LIN, FlexRay) to the signal chain.

Adding Bus and Gigalink Communication to the Signal Chain

2

Map these function blocks to device blocks and specific model port blocks (= Configuration Port blocks).

6

Configure tasks.

Configuring Tasks in ConfigurationDesk

7

Resolve conflicts via the Conflicts Viewer.

Resolving Conflicts

8

Configure and start the build process to build the real-time application.

1

Configure the build process.

Configuring the Build Process

2

Start the build process.

Starting the Build Process

9

Load the real-time application to a platform.

Loading and Executing Real-Time Applications


Redaction