Bus Manager Tutorial
Bus Manager Tutorial
Tutorial
For Bus Manager 2024‑A (24.1)
If possible, always provide the serial number of the hardware, the relevant dSPACE License
ID, or the serial number of the CmContainer in your support request.
Important Notice
This publication contains proprietary information that is protected by copyright. All rights
are reserved. The publication may be printed for personal or internal use provided all the
proprietary markings are retained on all printed copies. In all other cases, the publication
must not be copied, photocopied, reproduced, translated, or reduced to any electronic
medium or machine-readable form, in whole or in part, without the prior written consent
of dSPACE GmbH.
This publication and the contents hereof are subject to change without notice.
Contents
3
May 2024 Bus Manager Tutorial
Contents
4
Bus Manager Tutorial May 2024
Contents
5
May 2024 Bus Manager Tutorial
Contents
Summary 203
Your Working Results.................................................................................. 203
Index 229
6
Bus Manager Tutorial May 2024
About This Tutorial
Content Introduces you to the basic steps of working with the Bus Manager.
Tip
Two variants of the Bus Manager are available, the Bus Manager in
ConfigurationDesk and the Bus Manager (stand-alone). This tutorial is valid
for both Bus Manager variants.
Target group This tutorial is intended for engineers who use the Bus Manager to configure
CAN and/or LIN communication for simulation, inspection, and/or manipulation
purposes. The target group performs some or all of the following tasks:
§ Set up bus communication based on communication matrices.
§ Specify a model interface to exchange bus signals between the Bus
Manager and a behavior model modeled in a modeling tool such as
MATLAB®/Simulink®.
§ Build real-time applications or generate bus simulation containers that include
the configured bus communication.
Required knowledge Basic knowledge of the CAN and LIN bus protocols is assumed. Additionally,
depending on the lessons you work through, basic knowledge in the following
areas is also assumed:
§ SCALEXIO/MicroAutoBox III/MicroLabBox II hardware
§ VEOS
§ ControlDesk
§ MATLAB®/Simulink®
Symbol Description
Indicates a hazardous situation that, if not avoided,
V DANGER
will result in death or serious injury.
7
May 2024 Bus Manager Tutorial
About This Tutorial
Symbol Description
Indicates a hazardous situation that, if not avoided,
V WARNING could result in death or serious injury.
Indicates a hazardous situation that, if not avoided,
V CAUTION could result in minor or moderate injury.
Indicates a hazard that, if not avoided, could result in
NOTICE
property damage.
Indicates important information that you should take
Note
into account to avoid malfunctions.
Indicates tips that can make your work easier.
Tip
Indicates a link that refers to a definition in the
glossary, which you can find at the end of the
document unless stated otherwise.
Follows the document title in a link that refers to
another document.
Naming conventions dSPACE user documentation uses the following naming conventions:
Special Windows folders Windows‑based software products use the following special folders:
Accessing dSPACE Help and After you install and decrypt Windows‑based dSPACE software, the
PDF files documentation for the installed products is available in dSPACE Help and as PDF
files.
8
Bus Manager Tutorial May 2024
About This Tutorial
dSPACE Help (local) You can open your local installation of dSPACE Help:
§ On its home page via Windows Start Menu
§ On specific content using context-sensitive help via F1
PDF files You can access PDF files via the icon in dSPACE Help. The PDF
opens on the first page.
9
May 2024 Bus Manager Tutorial
About This Tutorial
10
Bus Manager Tutorial May 2024
Introduction to the Bus Manager
Purpose of the Bus Manager The Bus Manager lets you configure CAN and LIN communication for
simulation, inspection, and manipulation purposes. You can work with
multiple communication matrix files of various file formats and configure the
communication of multiple communication clusters at the same time.
Note
It is assumed that you are familiar with the content of this section before
you start working through the tutorial.
Variants of the Bus Manager Two variants of the Bus Manager are available. The following illustration provides
an overview of the variants and their fields of application.
Bus Manager in SCALEXIO, MicroAutoBox III,
ConfigurationDesk MicroLabBox II
Real-time
application
Re
ap al-ti
pli me
ca
tio
n
Communication ControlDesk
Bu
ss
matrices
im
ula
NS_ :
Behavior
t
Projects
model
ion
NS_DESC_
CM_
</> BA_DEF_
BA_
co
VAL_
CAT_DEF_
nta
CAT_
ine
r
e
Bus Manager flin n
(stand-alone) Of latio n
VEOS u tio
sim lica
p
Bus simulation ap
container
11
May 2024 Bus Manager Tutorial
Introduction to the Bus Manager
Use scenarios for simulating, Use scenarios for simulating bus communication The Bus Manager lets
inspecting, and manipulating you simulate the bus communication of ECUs . Typical use scenarios for this are
bus communication the following:
§ ECU simulation
You can simulate individual ECUs, e.g., to test the behavior model of an ECU
before the real ECU is available.
§ Restbus simulation
Restbus simulation lets you test one or more ECUs while simulating the other
ECUs of the related communication clusters . For example, to test a real ECU,
you can connect the real ECU to a simulator and simulate all the other ECUs
that communicate with the real ECU, as shown in the following example.
Comfort CAN
Comfort LIN
Simulated restbus
Use scenario for inspecting bus communication The Bus Manager lets you
inspect the bus communication of each communication cluster independently
from the involved ECUs. Inspecting bus communication focuses on the bus
12
Bus Manager Tutorial May 2024
Basics on the Bus Manager
Inspection
Comfort CAN
Comfort LIN
Restbus simulation
Use scenario for manipulating bus communication The Bus Manager lets
you manipulate bus communication before it is transmitted on the bus, for
example, to test the response of an ECU under test in case it receives faulty
bus communication. For this purpose, you can manipulate bus communication
permanently or temporarily, i.e., for a defined number of times.
The manipulation of bus communication is based on communication clusters,
i.e., it is independent from the sending ECUs. The following illustration is an
example of bus communication manipulation in combination with a restbus
simulation.
13
May 2024 Bus Manager Tutorial
Introduction to the Bus Manager
Manipulation
Comfort CAN
Comfort LIN
Restbus simulation
User interface When you work with the Bus Manager, you use Bus Manager elements and
standard ConfigurationDesk elements. In the following illustration, the Bus
Manager elements are in bold letters.
View-set-specific Home
ribbon (here: specific for Working area
Buses view set) Buses Browser (Bus Manager-specific tables displayed)
14
Bus Manager Tutorial May 2024
Basics on the Bus Manager
Tip
Working with communication To configure CAN and/or LIN communication with the Bus Manager, you need
matrices one or more communication matrices. Communication matrices can describe the
bus communication of one communication cluster or a bus network consisting
of different bus systems (e.g., CAN, LIN) and communication clusters.
The Bus Manager supports the following communication matrix file formats:
§ AUTOSAR system description files
§ FIBEX files
§ DBC files
§ LDF files
Introduction to bus Bus configurations are the main Bus Manager element to configure bus
configurations communication. Each bus configuration provides specific parts that let you
configure the bus communication independently for simulation, inspection, and
15
May 2024 Bus Manager Tutorial
Introduction to the Bus Manager
You can work with multiple bus configurations at the same time, and access
the bus configurations via specific tables and their Bus Configuration function
blocks, as shown in the following example.
Working with bus The Bus Manager provides various bus configuration features that let you
configuration features configure the bus communication. The bus configuration features are specific
for the following:
§ The bus configuration parts, i.e., Simulated ECUs, Inspection,
Manipulation, and Gateways.
§ The bus configuration elements, e.g., the bus configuration node, assigned
ECUs, communication controllers, PDUs, or ISignals.
16
Bus Manager Tutorial May 2024
Basics on the Bus Manager
For example, bus configuration features let you enable and disable
communication controllers, access ISignal values, inspect the status of received
PDUs, or manipulate the length of CAN frames.
Each bus configuration feature applies only to the specific element to which it is
added and not to other elements in the bus configuration.
Working with behavior The Bus Manager lets you work with and without behavior models . Behavior
models models can define the behavior of ECUs, for example. If you work with a
behavior model, you can dynamically exchange data with the behavior model
at run time, for example, between a real ECU that is connected to a simulator
and ECUs that are simulated by the Bus Manager.
17
May 2024 Bus Manager Tutorial
Introduction to the Bus Manager
18
Bus Manager Tutorial May 2024
Introduction to the Tutorial
Purpose To enable you to efficiently work with this tutorial. You are introduced to the
example used and to the structure of the tutorial. Additionally, you will find tips
on how to work with the tutorial.
Note
It is assumed that you are familiar with the content of this section before
you start working through the tutorial.
Overview of Lessons................................................................................ 25
Introduction to the The example that is used in the tutorial is based on the
communication matrix BusManager_Base_V1_0.arxml communication matrix. This communication
matrix specifies the communication of a bus network of a car, consisting of
four communication clusters and eight ECUs .
19
May 2024 Bus Manager Tutorial
Introduction to the Tutorial
Note
Example used in the tutorial In the tutorial, you will work with three communication clusters and five ECUs:
20
Bus Manager Tutorial May 2024
Introduction to the Example Used in the Tutorial
Gearbox
CAN
Powertrain
Central Gateway
CAN
Body
Body Control
LIN
Door
Use scenarios in this tutorial You will configure bus communication for simulation, inspection, and
manipulation purposes.
21
May 2024 Bus Manager Tutorial
Introduction to the Tutorial
Real ECU
Restbus
simulation
Body Control ECU
Engine LIN Door
ECU
Seat ECU Door Left
Left ECU
Gearbox
ECU Seat ECU Door Right
Right ECU
Tip
Purpose of the tutorial This tutorial shows you the basic steps required to configure CAN and
LIN communication by using the Bus Manager, and implement the bus
communication in bus simulation containers and/or a real-time application .
Workflows and lessons The tutorial is structured by workflows and lessons as follows:
§ Workflows for typical use scenarios
There are various use scenarios for the Bus Manager. The tutorial introduces
you to typical use scenarios and provides overviews of the required workflow
steps.
22
Bus Manager Tutorial May 2024
Working with the Tutorial
Tip
§ You can work through each lesson without having to complete other
lessons beforehand.
§ To work efficiently with the tutorial, use the workflows to select the
lessons that are relevant for your use scenario. Refer to Overview of Use
Scenarios and Workflows on page 24.
Required licenses The Bus Manager is protected by several licenses, whereby the required licenses
depend on your use scenario. Because the lessons of this tutorial cover different
use scenarios, the required licenses for working through the tutorial depend on
the lessons. For an overview of the lessons and their required licenses, refer to
Overview of Lessons on page 25.
Tip
Tutorial project and Working with the tutorial project and the applications This tutorial
applications is based on the BusManagerTutorial project. For each tutorial lesson, the
project provides a separate ConfigurationDesk application , which is the
result of the related lesson.
Tip
You can activate each application separately. This lets you use the applications as
follows:
§ You can use an application as the starting point of a related subsequent
lesson. This lets you work through each lesson without having to complete
other lessons beforehand.
23
May 2024 Bus Manager Tutorial
Introduction to the Tutorial
For an overview of the lessons and the suitable starting points, refer to
Overview of Lessons on page 25.
Tip
§ You can compare your working results of a lesson with the lesson's result
application.
For instructions on working with the tutorial project and applications, refer to
Working with the BusManagerTutorial Project on page 55.
Location of the tutorial project and its backup The locations of the
tutorial project and its backup are the following:
§ The BusManagerTutorial project is available in the Tutorials subfolder of
the Documents folder .
§ The BusManagerTutorial.zip archive is available
in the <ConfigurationDesk installation
folder>\Demos\<ProductName>\Tutorial folder.
Use scenarios and workflows The following table provides an overview of typical use scenarios for the Bus
Manager and the descriptions of the related workflows in the tutorial.
24
Bus Manager Tutorial May 2024
Overview of Lessons
Overview of Lessons
Overview The following table provides an overview of the tutorial lessons, the applications
that can be used as a starting point, and the licenses and additional tools that
are required to work through each of the lessons.
Tip
25
May 2024 Bus Manager Tutorial
Introduction to the Tutorial
26
Bus Manager Tutorial May 2024
Workflows for Using the Bus Manager
27
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
Introduction You need a behavior model if signal values have to change dynamically during
run time, e.g., to dynamically respond to signals received from an ECU under
test. To generate bus simulation containers , the model must be a Simulink®
implementation container (SIC file).
If you already have a suitable SIC file, you can add the file to the
ConfigurationDesk application and map the bus configuration function ports
that provide the required signals to the model. Then, you can generate bus
simulation containers.
Workflow The following table shows detailed workflow steps and indicates the related
topics and lessons of this tutorial that guide you through the individual steps.
28
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Generating Bus Simulation Containers
2 Add communication matrices and bus configurations to the ConfigurationDesk Lesson 1: Adding
application. Communication Matrices
1 Add a communication matrix. and Bus Configurations
to the ConfigurationDesk
Application on page 67
3 Assign communication matrix elements to bus configurations for simulation, inspection, and/or manipulation purposes.
Simulation Lesson 2: Configuring
1 Assign communication matrix elements to the Simulated ECUs part of a bus Bus Communication for
configuration. Simulation Purposes on
page 77
29
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
30
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Generating Bus Simulation Containers
4 Add a behavior model, i.e., a Simulink implementation container (SIC file), to the Lesson 3: Working with an
ConfigurationDesk application and map it to a bus configuration. Existing Behavior Model on
1 Add a Simulink implementation container (SIC file). page 99
31
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
Introduction You need a behavior model if signal values have to change dynamically during
run time, e.g., to dynamically respond to signals received from an ECU under
test. To generate bus simulation containers , the model must be a Simulink®
implementation container (SIC file).
Workflow The following table shows detailed workflow steps and indicates the related
topics and lessons of this tutorial that guide you through the individual steps.
2 Add communication matrices and bus configurations to the ConfigurationDesk Lesson 1: Adding
application. Communication Matrices
1 Add a communication matrix. and Bus Configurations
to the ConfigurationDesk
Application on page 67
32
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Generating Bus Simulation Containers
3 Enable model access for the function ports whose signals you want to use in the
Simulink implementation container.
33
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
3 Enable model access for the function ports whose signals you want to use in the
Simulink implementation container.
4 Generate a Simulink implementation container (SIC file) and add it to the ConfigurationDesk Lesson 9: Generating
application. a Simulink Model
1 Generate a new Simulink model interface. and Synchronizing the
Model Interfaces in
ConfigurationDesk and
Simulink on page 157
34
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Generating Bus Simulation Containers
4 Select the target architecture that is compatible with your simulation platform.
5 Build a Simulink implementation container (SIC file) from the Simulink model.
35
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
Introduction You can generate bus simulation containers without using a behavior
model if signal values do not have to change dynamically during run time.
For example, you do not need a behavior model if you only want to inspect the
response of an ECU under test to manipulated static signal values.
Workflow The following table shows detailed workflow steps and indicates the related
topics and lessons of this tutorial that guide you through the individual steps.
36
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Generating Bus Simulation Containers
2 Add communication matrices and bus configurations to the ConfigurationDesk Lesson 1: Adding
application . Communication Matrices
1 Add a communication matrix. and Bus Configurations
to the ConfigurationDesk
Application on page 67
3 Assign communication matrix elements to bus configurations for simulation, inspection, and/or manipulation purposes.
Simulation Lesson 2: Configuring
1 Assign communication matrix elements to the Simulated ECUs part of a bus Bus Communication for
configuration. Simulation Purposes on
page 77
37
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
38
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Generating Bus Simulation Containers
4 Create an application process that provides a default task and assign the bus configuration Lesson 8: Working Without
to the application process. a Behavior Model on
1 Create an application process that provides a default task. page 147
39
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
Introduction You need a behavior model if signal values have to change dynamically during
run time, e.g., to dynamically respond to signals received from an ECU under
test.
If you already have a suitable behavior model, you can add the model to the
ConfigurationDesk application and map the bus configuration function ports
that provide the required signals to the model. Then, you can implement the bus
communication in a real-time application .
Note
This use scenario applies only to the Bus Manager in ConfigurationDesk, not
to the Bus Manager (stand-alone).
Workflow The following table shows detailed workflow steps and indicates the related
topics and lessons of this tutorial that guide you through the individual steps.
40
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Building Real-Time Applications
2 Add communication matrices and bus configurations to the ConfigurationDesk Lesson 1: Adding
application. Communication Matrices
1 Add a communication matrix. and Bus Configurations
to the ConfigurationDesk
Application on page 67
3 Assign communication matrix elements to bus configurations for simulation, inspection, and/or manipulation purposes.
Simulation Lesson 2: Configuring
1 Assign communication matrix elements to the Simulated ECUs part of a bus Bus Communication for
configuration. Simulation Purposes on
page 77
41
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
42
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Building Real-Time Applications
4 Add a behavior model to the ConfigurationDesk application and map it to a bus Lesson 3: Working with an
configuration. Existing Behavior Model on
1 Add a behavior model. page 99
5 Specify access to real-time hardware and build a real-time application. Lesson 5: Building a
1 Add a hardware topology to the ConfigurationDesk application. Real-Time Application on
page 117
2 Specify the access to the bus for the bus configuration. To do this, assign the bus access
requests of the bus configuration to bus accesses , i.e., to bus function blocks (CAN
or LIN function blocks).
43
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
5 Check the Conflicts Viewer for conflicts and resolve them, if necessary.
Introduction You need a behavior model if signal values have to change dynamically during
run time, e.g., to dynamically respond to signals received from an ECU under
test.
44
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Building Real-Time Applications
Note
This use scenario applies only to the Bus Manager in ConfigurationDesk, not
to the Bus Manager (stand-alone).
Workflow The following table shows detailed workflow steps and indicates the related
topics and lessons of this tutorial that guide you through the individual steps.
2 Add communication matrices and bus configurations to the ConfigurationDesk Lesson 1: Adding
application. Communication Matrices
1 Add a communication matrix. and Bus Configurations
to the ConfigurationDesk
Application on page 67
3 Assign communication matrix elements to bus configurations for simulation, inspection, and/or manipulation purposes.
Simulation Lesson 2: Configuring
1 Assign communication matrix elements to the Simulated ECUs part of a bus Bus Communication for
configuration. Simulation Purposes on
page 77
45
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
3 Enable model access for the function ports whose signals you want to use in the
Simulink model.
3 Enable model access for the function ports whose signals you want to use in the
Simulink model.
46
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Building Real-Time Applications
3 Enable model access for the function ports whose signals you want to use in the
Simulink model.
4 Generate a Simulink model and synchronize the model interfaces of the ConfigurationDesk Lesson 9: Generating
application and in Simulink. a Simulink Model
1 Generate a new Simulink model interface. and Synchronizing the
Model Interfaces in
ConfigurationDesk and
Simulink on page 157
47
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
5 Specify access to real-time hardware and build a real-time application. Lesson 5: Building a
1 Add a hardware topology to the ConfigurationDesk application. Real-Time Application on
page 117
2 Specify the access to the bus for the bus configuration. To do this, assign the bus access
requests of the bus configuration to bus accesses , i.e., to bus function blocks (CAN
or LIN function blocks).
48
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Building Real-Time Applications
5 Check the Conflicts Viewer for conflicts and resolve them, if necessary.
Note
This use scenario applies only to the Bus Manager in ConfigurationDesk, not
to the Bus Manager (stand-alone).
Workflow The following table shows detailed workflow steps and indicates the related
topics and lessons of this tutorial that guide you through the individual steps.
49
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
2 Add communication matrices and bus configurations to the ConfigurationDesk Lesson 1: Adding
application . Communication Matrices
1 Add a communication matrix. and Bus Configurations
to the ConfigurationDesk
Application on page 67
3 Assign communication matrix elements to bus configurations for simulation, inspection, and/or manipulation purposes.
Simulation Lesson 2: Configuring
1 Assign communication matrix elements to the Simulated ECUs part of a bus Bus Communication for
configuration. Simulation Purposes on
page 77
50
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Building Real-Time Applications
51
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
4 Create an application process that provides a default task. Lesson 8: Working Without
a Behavior Model on
page 147
5 Specify access to real-time hardware and build a real-time application. Lesson 5: Building a
1 Add a hardware topology to the ConfigurationDesk application. Real-Time Application on
page 117
2 Specify the access to the bus for the bus configuration. To do this, assign the bus access
requests of the bus configuration to bus accesses , i.e., to bus function blocks (CAN
or LIN function blocks).
52
Bus Manager Tutorial May 2024
Workflows for Configuring Bus Communication and Building Real-Time Applications
5 Check the Conflicts Viewer for conflicts and resolve them, if necessary.
53
May 2024 Bus Manager Tutorial
Workflows for Using the Bus Manager
54
Bus Manager Tutorial May 2024
Working with the BusManagerTutorial Project
Objective To work through the Bus Manager tutorial, you have to open the
BusManagerTutorial project.
55
May 2024 Bus Manager Tutorial
Working with the BusManagerTutorial Project
Tip
56
Bus Manager Tutorial May 2024
How to Disable a User-Defined Bus Configuration Behavior
Result You opened the BusManagerTutorial project and the Project Manager
displays the project and its applications. The Lesson_1_Start application is
displayed in bold letters, i.e., this is the active application. You can now prepare
the bus configuration tables for working with the Bus Manager tutorial. Refer
to How to Prepare Bus Configuration Tables for Working with the Tutorial on
page 58.
Objective To ensure that your working results match the descriptions of the Bus Manager
tutorial, you have to disable a user‑defined bus configuration behavior before
you start working through the tutorial.
Tip
If you use the Bus Manager (stand-alone), not all of the displayed view
sets are available.
57
May 2024 Bus Manager Tutorial
Working with the BusManagerTutorial Project
2 On the Home ribbon, make sure that the Enable button is not highlighted.
Result You disabled a user‑defined bus configuration behavior. You can now prepare
the bus configuration tables. Refer to How to Prepare Bus Configuration Tables
for Working with the Tutorial on page 58.
How to Prepare Bus Configuration Tables for Working with the Tutorial
Objective To work efficiently through the lessons of the Bus Manager tutorial, you have
to ensure that the tables that are specific for bus configurations provide all the
required columns. For this purpose, you have to reset the columns of the tables
to their default state and add some additionally required columns to the tables.
Tip
If you use the Bus Manager (stand-alone), not all of the displayed view
sets are available.
Tip
If the table is closed, you can open it via Windows on the Home
ribbon.
58
Bus Manager Tutorial May 2024
How to Prepare Bus Configuration Tables for Working with the Tutorial
This resets the columns of the table to the default state, i.e., this determines
the available columns in the table and their order.
4 Right‑click any column header and select Column Chooser on the context
menu.
The Column Chooser opens, displaying the columns that are available for
the Bus Configurations table but not added yet to the table.
5 In the Column Chooser, select the Related Clusters column header and
drag it to the column header of the Bus Configurations table.
6 Drag the Related TX ECUs and Related RX ECUs column headers from the
Column Chooser to the Bus Configurations table.
7 Close the Column Chooser.
59
May 2024 Bus Manager Tutorial
Working with the BusManagerTutorial Project
Tip
The columns that are available in a table and their order is stored locally
on the host PC and applies to all ConfigurationDesk applications. This
applies even if you close the table, or ConfigurationDesk or the Bus
Manager (stand‑alone).
Interim result You reset the columns of the Bus Configurations table to the default state and
added required columns. You can now prepare the Bus Access Requests table
for working with the Bus Manager tutorial. Continue with the next part.
The columns of the Bus Access Requests table are reset to their default
states. This is sufficient for working with the Bus Manager tutorial, i.e., you
do not have to add any additional columns.
Interim result You reset the columns of the Bus Access Requests table to the default state.
You can now prepare the bus configuration feature tables for working with the
Bus Manager tutorial. Continue with the next part.
60
Bus Manager Tutorial May 2024
How to Prepare Bus Configuration Tables for Working with the Tutorial
4 Select the PDU Features subview and reset the columns of this subview.
5 Select the Bus Inspection Features table and reset the columns of the
Signal Features and PDU Features subviews.
6 Select the Bus Manipulation Features table and reset the columns of the
Signal Features and PDU Features subviews.
7 Select the PDU Features subview of the Bus Manipulation Features.
8 Adjust the width of the Bus Manipulation Features table until the Frame
Length column is displayed. Depending on your screen size and resolution,
you can achieve this by one or more of the following actions:
§ Right‑click any column header and select Best Fit All Columns on the
context menu.
§ Enlarge the width of the table via the double‑headed arrow into which
the cursor turns when you move it between the table border and another
pane.
§ Reduce the width of individual columns via the double‑headed arrow into
which the cursor turns when you move it between two column headers.
Tip
In general, you can navigate the tables via scrollbars. However, this is
only possible when elements are available in the tables. Therefore, this
is not possible yet.
9 Right‑click any column header and select Column Chooser on the context
menu.
The Column Chooser displays the columns that are available for the PDU
Features subview of the Bus Manipulation Features table but that are not
added yet to the subview.
10 Drag the Length - Frame Length and Padding Value - Frame Length
columns to the right of the Frame Length column.
Interim result You reset the columns of the bus configuration feature tables to the default
state and added required columns. You can now prepare the Bus Configuration
Ports table for working with the Bus Manager tutorial. Continue with the next
part.
61
May 2024 Bus Manager Tutorial
Working with the BusManagerTutorial Project
Result You prepared the bus configuration tables for working with the Bus Manager
tutorial. You can now start working with the Bus Manager tutorial:
§ The Lesson_1_Start application is the active application. Therefore, you can
now start with with lesson 1. Refer to Lesson 1: Adding Communication
Matrices and Bus Configurations to the ConfigurationDesk Application on
page 67.
§ If you want to start with another lesson, you have to activate the result
application of the related previous lesson. Refer to How to Activate an
Application in the BusManagerTutorial Project on page 62.
62
Bus Manager Tutorial May 2024
How to Activate an Application in the BusManagerTutorial Project
Tip
If you use the Bus Manager (stand-alone), not all of the displayed view
sets are available.
In the following cases, a dialog opens, asking you whether to save the
currently active application before closing it:
§ The application contains unsaved changes.
§ The application was last saved with an older version of ConfigurationDesk
or the Bus Manager (stand‑alone).
4 If such a dialog opens: Click Save.
The currently active application is saved and the selected application is
activated. If you work with the Bus Manager in ConfigurationDesk, the
Model-Function view set is displayed after activating the application has
finished.
5 Only if you work with the Bus Manager in ConfigurationDesk: Switch to the
Project view set.
Result You activated the selected application. In the Project Manager, this application
is displayed as the first node below the BusManagerTutorial project node. The
previously active application is automatically deactivated. You can now use the
active application, for example, as the starting point for a related subsequent
lesson.
63
May 2024 Bus Manager Tutorial
Working with the BusManagerTutorial Project
Note
The Licenses page opens, displaying a license overview and the license
status, e.g., whether a license is accessible or in use in the active
ConfigurationDesk application.
64
Bus Manager Tutorial May 2024
How to Identify Accessible Licenses
Result You opened the Licenses page, which lets you identify the accessible licenses.
To work with the Bus Manager, the Bus Manager license (BUS_MANAGER)
is mandatory. The additional required licenses for working with the
BusManagerTutorial project depend on the specific tutorial lesson. For an
overview of the required licenses, refer to Overview of Lessons on page 25.
Tip
65
May 2024 Bus Manager Tutorial
Working with the BusManagerTutorial Project
66
Bus Manager Tutorial May 2024
Lesson 1: Adding Communication Matrices and Bus Configurations to the ConfigurationDesk Application
Overview of Lesson 1
Using the Bus Manager The basis for using the Bus Manager is communication matrices and bus
configurations.
What you will learn In this lesson, you will learn how to add communication matrices and bus
configurations to a ConfigurationDesk application and check communication
matrices for conflicts.
Before you begin Before you begin this lesson, the following precondition must be met:
67
May 2024 Bus Manager Tutorial
Lesson 1: Adding Communication Matrices and Bus Configurations to the ConfigurationDesk Application
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of Lesson 1 on page 74.
Objective To configure bus communication with the Bus Manager, you have to add one or
more communication matrices to the ConfigurationDesk application.
Tip
If you use the Bus Manager (stand-alone), not all of the displayed view
sets are available.
68
Bus Manager Tutorial May 2024
Step 1: How to Add a Communication Matrix to the ConfigurationDesk Application
69
May 2024 Bus Manager Tutorial
Lesson 1: Adding Communication Matrices and Bus Configurations to the ConfigurationDesk Application
Tip
You can back up ConfigurationDesk projects. When you do this, all files
that are located in the respective project folder and its subfolders are
automatically included in the generated ZIP archive.
What's next In the next step, you will check the communication matrix for conflicts.
Objective To ensure that there are no severe faults in the communication matrix, you
should check it for conflicts after you added it to the ConfigurationDesk
application.
70
Bus Manager Tutorial May 2024
Step 2: How to Check the Communication Matrix for Conflicts
Tip
2 Make sure that the Errors and Warnings filters are selected: If a filter is not
highlighted in blue, click the filter to select it.
3 Click the expand arrow of the context set filter.
Tip
71
May 2024 Bus Manager Tutorial
Lesson 1: Adding Communication Matrices and Bus Configurations to the ConfigurationDesk Application
Tip
All context sets are cleared and the Conflicts Viewer displays no conflicts.
72
Bus Manager Tutorial May 2024
Step 3: How to Add a Bus Configuration to the ConfigurationDesk Application
Result You checked the communication matrix for conflicts. Then, you disabled the
display of all conflicts.
Note
What's next In the next step, you will add a bus configuration to the ConfigurationDesk
application.
73
May 2024 Bus Manager Tutorial
Lesson 1: Adding Communication Matrices and Bus Configurations to the ConfigurationDesk Application
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of Lesson 1 on page 74.
Result of Lesson 1
Result In this lesson, you learned the basic principles of adding communication
matrices and bus configurations to ConfigurationDesk applications, and checking
communication matrices for conflicts:
§ The Buses Browser provides different views of communication matrices and
their elements.
§ You can access the properties of selected elements in the Properties Browser.
§ Each bus configuration provides bus configuration parts.
§ To easily identify bus configurations, you can specify user-defined names for
bus configurations.
§ The Conflicts Viewer displays all conflicts of the ConfigurationDesk
application and lets you enable and disable the display of conflicts. For
optimum performance, it is recommended to display conflicts only as required.
§ In general, communication matrix conflicts have no effect on building a real-
time application or generating bus simulation containers. However, conflicts
that result from failed schema and/or consistency checks might result in
unintended behavior at run time.
Prepared result application The Lesson_1_Result application provides the result of this lesson. You can
activate the application to compare it with your own results, for example. For
more information, refer to Tutorial project and applications on page 23.
Further information § For more information on working with communication matrices, refer to:
§ Bus Manager in ConfigurationDesk: Working with Communication Matrices
(ConfigurationDesk Bus Manager Implementation Guide )
§ Bus Manager (stand-alone): Working with Communication Matrices (Bus
Manager (Stand-Alone) Implementation Guide )
§ For more information on bus configurations, refer to:
§ Bus Manager in ConfigurationDesk: Basics on Bus Configurations
(ConfigurationDesk Bus Manager Implementation Guide )
§ Bus Manager (stand-alone): Basics on Bus Configurations (Bus Manager
(Stand-Alone) Implementation Guide )
74
Bus Manager Tutorial May 2024
Result of Lesson 1
Where to go from here You can now assign communication matrix elements to the bus configuration
and configure bus communication for simulation purposes. Refer to Lesson 2:
Configuring Bus Communication for Simulation Purposes on page 77.
75
May 2024 Bus Manager Tutorial
Lesson 1: Adding Communication Matrices and Bus Configurations to the ConfigurationDesk Application
76
Bus Manager Tutorial May 2024
Lesson 2: Configuring Bus Communication for Simulation Purposes
Overview of Lesson 2
Simulating bus To simulate bus communication, you have to assign communication matrix
communication elements to the Simulated ECUs part of a bus configuration. By using
bus configuration features, you can configure the bus communication to be
simulated.
In this lesson, you will configure a restbus simulation. For more information, refer
to Use scenarios in this tutorial on page 21.
What you will learn In this lesson, you will learn how to assign communication matrix elements to
the Simulated ECUs part of a bus configuration and configure the assigned
77
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
elements by using bus configuration features. Additionally, you will check the
configured bus communication for conflicts and resolve conflicts.
Before you begin Before you begin this lesson, the following preconditions must be met:
§ The following licenses are accessible:
§ ConfigurationDesk - CAN Module license (CFD_I_CAN)
§ ConfigurationDesk - LIN Module license (CFD_I_LIN)
Refer to How to Identify Accessible Licenses on page 64.
§ You disabled a user‑defined bus configuration behavior. Refer to How to
Disable a User-Defined Bus Configuration Behavior on page 57.
§ You prepared the bus configuration tables for working with the tutorial. Refer
to How to Prepare Bus Configuration Tables for Working with the Tutorial on
page 58.
§ The result of lesson 1 is available and the related application is active.
If you did not work through lesson 1, you can activate the
Lesson_1_Result application. Refer to How to Activate an Application in the
BusManagerTutorial Project on page 62.
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of Lesson 2 on page 95.
78
Bus Manager Tutorial May 2024
Step 1: How to Assign Communication Matrix Elements to the Simulated ECUs Part of a Bus Configuration
Tip
4 In the Name column of the Bus Configurations table, change the name of
the communication matrix node to BusManagerTutorial_ComMatrix.
Tip
79
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
When you assign a LIN master to the Simulated ECUs part, the LIN
Schedule Table bus configuration feature is automatically added to the
LIN master communication controller. The feature provides a Schedule Index
function port. Function ports let you access data at run time.
Note
Tip
You will configure the Schedule Index function port in step 3 of this
lesson.
Interim result You assigned all elements of the LinDoorCluster to the Simulated ECUs part
and renamed the communication matrix node in the bus configuration. By
doing this, you removed the version information from the node name. You also
explored the differences between LIN masters and LIN slaves.
You can now assign further elements to the Simulated ECUs part. Continue
with the next part.
80
Bus Manager Tutorial May 2024
Step 2: How to Add Bus Configuration Features for Simulation Purposes
The selected elements and related higher-level and lower-level elements are
assigned to the Simulated ECUs part.
4 In the Bus Configurations table, completely expand the GearboxEcu node
to display all assigned elements.
For the SpeedISignal and Kl_15_ISignal, the ISignal Value feature is
available. The ISignal Value feature is automatically added to all ISignals
that are assigned to the Simulated ECUs part. This applies regardless of
whether you assign the ISignal itself or a related higher-level element. The
ISignal Value feature provides a Value function port. You can configure
the function port to access the value of the related ISignal at run time, for
example.
Result You assigned different communication matrix elements to the Simulated ECUs
part of the bus configuration. Related higher-level and lower-level elements are
assigned automatically. You renamed the communication matrix node in the bus
configuration, and explored the assigned elements and the bus configuration
features that are automatically added to specific elements.
What's next In the next step, you will manually add further bus configuration features to bus
configuration elements to configure bus communication for simulation purposes.
Objective To configure bus communication for simulation purposes, you have to add bus
configuration features to elements that are assigned to the Simulated ECUs part
of a bus configuration.
Depending on the bus configuration element, you can add available bus
simulation features in the Bus Configurations and Bus Simulation Features
tables.
81
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
82
Bus Manager Tutorial May 2024
Step 2: How to Add Bus Configuration Features for Simulation Purposes
Tip
§ On the context menu, the LIN Schedule Table feature is grayed out
because it has already been added to the LIN master communication
controller.
§ By selecting the ECUs as described above, you might have also
selected the GearboxEcu node. However, the communication
controller of the GearboxEcu is not selected because the
GearboxEcu node is collapsed. Therefore, the Communication
Controller Enable feature is not added to this communication
controller.
Tip
Interim result You added the Communication Controller Enable feature to the
communication controllers of the BodyControlEcu and DoorLeftEcu, and
explored the function ports that are available for the Communication
Controller Enable feature. You can now add further bus simulation features.
Continue with the next part.
Part 2 To add bus simulation features in the Bus Simulation Features table
1 Select the Bus Simulation Features table.
The PDU Features subview is active, displaying all PDUs that are assigned to
the Simulated ECUs part of bus configurations.
Tip
§ The Bus Simulation Features table lets you add bus simulation
features only to PDUs and ISignals. For this purpose, it provides two
subviews, the PDU Features and Signal Features subviews.
§ If you closed the table by mistake, you can open it via Windows on
the Home ribbon.
83
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
2 In the PDU Features subview, right-click the Name column header and
select Set Column Filter on the context menu.
5 Click OK.
The dialog closes. The Name column is filtered for PDUs whose name
contains DoorLeftStatusIPdu, i.e., two PDUs:
§ One RX PDU of the BodyControlEcu.
§ One TX PDU of the DoorLeftEcu.
The column header indicates the active column filter by a blue square.
Note
The filter is active until you clear it explicitly. This applies even when you
close ConfigurationDesk or the Bus Manager (stand-alone).
Tip
6 Scroll to the right until the PDU Enable and PDU RX Status columns are
displayed.
The PDU Enable feature is available only for TX PDUs, the PDU RX Status
feature only for RX PDUs. Because of this, each feature can be enabled only
for one of the displayed PDUs.
7 In the PDU Enable and PDU RX Status columns, select Enabled from the
list of the available cell.
84
Bus Manager Tutorial May 2024
Step 2: How to Add Bus Configuration Features for Simulation Purposes
85
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
Result You added bus configuration features to elements that are assigned to the
Simulated ECUs part of the bus configuration. You added the features in the
Bus Configurations and Bus Simulation Features table for multiple selected
elements and by using column filters.
Tip
In the Bus Configurations table, you can add available bus configuration
features to any element type via the context menu.
What's next In the next step, you will configure some function ports of the added bus
simulation features.
Objective To access bus simulation features at run time and to configure their initial
behavior, you have to configure the available function ports.
Depending on the configured settings, you can access the data of bus simulation
features via experiment software (e.g., ControlDesk) and automation scripts,
and/or exchange data with a behavior model at run time.
The Bus Configuration Ports table displays all the ports that are available
for bus configurations of the active ConfigurationDesk application.
2 In the Bus Configuration Ports table, select the LinDoorCommController
Schedule Index function port.
The Properties Browser displays the properties of the function port.
3 In the Properties Browser, set Initial value to 1.
For each LIN master, multiple schedule tables can be specified in the
communication matrix. Via the Initial Value property of the Schedule Index
86
Bus Manager Tutorial May 2024
Step 3: How to Configure Function Ports of Bus Simulation Features
function port, you can specify the schedule table that is initially active at run
time.
Interim result You specified the first schedule table of the LIN master as the initial schedule
table. This enables LIN communication by default. You can now configure to
access bus simulation features via experiment software and automation scripts.
Continue with the next part.
Tip
If you open the filter dialog for an unfiltered column, the dialog displays
the last specified column filter, regardless of the table or browser for
which the column filter was specified.
Note
The filter is active until you clear it explicitly. This applies even when you
close ConfigurationDesk or the Bus Manager (stand-alone).
5 Press the Ctrl+A keys to select all the displayed function ports.
6 Press and hold the Ctrl key and click the LinDoorCommController
Enable State function port to deselect the function port.
7 Scroll to the right until the Test Automation Support column is displayed.
8 In the Test Automation Support column, right-click one of the highlighted
cells and select Fill with one of - Enabled on the context menu.
Test automation support is enabled for the selected ports. This lets you
access the values of the function ports via experiment software (e.g.,
ControlDesk) and automation scripts at run time.
87
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
Interim result You enabled test automation support for selected function ports to access the
function port values via experiment software and automation scripts at run time.
You can now enable the access to a behavior model. Continue with the next
part.
Note
Even though the function ports are hidden, they are still selected.
Because of this, any changes you make in the Bus Configuration Ports
table will also affect the hidden ports.
88
Bus Manager Tutorial May 2024
Step 3: How to Configure Function Ports of Bus Simulation Features
7 Right-click the Direction column header and select Clear Column Filter on
the context menu.
The specified column filter is cleared and the function ports are displayed
regardless of their direction. For the RX function ports, model access is
disabled.
Interim result You enabled the access to a behavior model for the selected function ports of
some bus configuration features. You can now enable test automation support
and model access for further function ports. Continue with the next part.
Part 4 To enable test automation support and model access for further function
ports
1 In the Bus Configuration Ports table, right-click the Feature column
header and select Set Column Filter on the context menu.
The Column Filter Expressions for Column: Feature dialog opens,
displaying the currently active filter of the Feature column.
2 In the dialog, clear Inverse and click OK.
The dialog closes. The Bus Configuration Ports table displays only function
ports that are available for the ISignal Value feature.
3 Click the Name column header.
The function ports are sorted alphabetically in ascending order. The sorting
order is indicated by an arrow ( ) in the column header.
4 Select the following function ports:
§ All DoorLeftLockedISignal Value function ports
§ All DoorRightLockedISignal Value function ports
§ All LockCarISignal Value function ports
§ All SpeedISignal Value function ports
89
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
6 In addition to the function ports that are already selected, select the
following function ports:
§ All DoorLeftClosedISignal Value function ports
§ All DoorRightClosedISignal Value function ports
§ All UnlockCarISignal Value function ports
7 For the selected function ports, set Test Automation Support to Enabled.
8 Right-click the Feature column header and select Clear Column Filter on
the context menu.
The specified column filter is cleared and all function ports of the bus
configuration are displayed.
90
Bus Manager Tutorial May 2024
Step 4: How to Check the Configured Bus Communication for Conflicts and Resolve Conflicts
9 Right-click the Name column header and select Clear Sorting on the
context menu.
The function ports are sorted in the original order.
Note
What's next In the next step, you will check the configured bus communication for conflicts
and resolve conflicts.
Step 4: How to Check the Configured Bus Communication for Conflicts and
Resolve Conflicts
91
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
The context sets are displayed. If you worked through lesson 1, all context
sets are cleared as in the illustration above.
Tip
Tip
§ You will resolve the conflicts of the Bus configuration and Bus
access request contexts by configuring the bus communication in
the following lessons.
§ If you work with the Bus Manager (stand-alone), no conflict with Bus
access request context is displayed. This is because the Bus Manager
(stand-alone) displays only conflicts that are relevant for the fields of
application in which the Bus Manager (stand-alone) can be used.
92
Bus Manager Tutorial May 2024
Step 4: How to Check the Configured Bus Communication for Conflicts and Resolve Conflicts
Tip
Interim result You checked the configured bus communication for conflicts. You explored the
conflict cause of the Exceeding PDUs and/or update bits (bus configuration)
conflict and the affected elements. You can now resolve this conflict. Continue
with the next part.
93
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
conflict, no code is generated for the entire bus configuration when you
start the build process or generate bus simulation containers.
4 Completely expand the Exceeding PDUs and/or update bits (bus
configuration) node.
The Conflicts Viewer displays different options that let you resolve the
conflict.
By this, you change the frame length from 1 byte to 2 bytes, which matches
the 2 bytes of the related PDU. This change applies to the frame in the bus
configuration and the communication matrix. Therefore, both Exceeding
PDUs and/or update bits conflicts are resolved.
6 In the Bus Configurations Table, select the DoorLeftStatusCanIPdu of
the BodyControlEcu.
The Properties Browser displays the frame length, which is now 2 bytes.
The Changes to communication matrix property indicates that the
communication matrix was changed. However, this change applies only to
the communication matrix in the ConfigurationDesk application. The original
communication matrix file remains unchanged.
8 In the Conflicts Viewer, click the context set filter.
All context sets are cleared and the Conflicts Viewer displays no conflicts.
94
Bus Manager Tutorial May 2024
Result of Lesson 2
Result You checked the configured bus communication for conflicts and resolved a
conflict of an assigned conflicting communication matrix element. Because you
corrected the conflicting setting in the communication matrix, you also resolved
the related communication matrix conflict. Finally, you disabled the display of all
conflicts.
Note
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of Lesson 2 on page 95.
Result of Lesson 2
Result In this lesson, you learned the basic principles of configuring bus communication
for simulation purposes:
§ To simulate bus communication, you have to assign communication matrix
elements to the Simulated ECUs part of bus configurations.
§ To configure the bus communication, you can add bus simulation features to
assigned elements.
§ Depending on the specific bus simulation feature, function ports are available.
To access data at run time, you have to configure function ports:
§ To exchange data with a behavior model, you have to enable model access.
§ To access data via experiment software or automation scripts, you have to
enable test automation support.
§ The LIN Schedule Table feature is automatically added to assigned LIN
masters. This feature is mandatory to enable LIN communication. Additionally,
the ISignal Value feature is automatically added to assigned ISignals.
§ You should regularly check the configured bus communication for conflicts
and resolve conflicts. The Conflicts Viewer provides information on the
conflict causes and possible remedies, and lets you resolve many conflicts.
§ You can resolve some conflicts by correcting conflicting communication matrix
elements. When you do this, you change the communication matrix in the
ConfigurationDesk application. The original communication matrix file remains
unchanged.
95
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
Prepared result application The Lesson_2_Result application provides the result of this lesson. You can
activate the application to compare it with your own results, for example. For
more information, refer to Tutorial project and applications on page 23.
Further information § For more information on assigning communication matrix elements to bus
configurations, refer to:
§ Bus Manager in ConfigurationDesk: Assigning Communication Matrix
Elements to Bus Configurations (ConfigurationDesk Bus Manager
Implementation Guide )
§ Bus Manager (stand-alone): Assigning Communication Matrix Elements to
Bus Configurations (Bus Manager (Stand-Alone) Implementation Guide )
§ For more information on working with bus configuration features, refer to:
§ Bus Manager in ConfigurationDesk: Basics on Working with Bus
Configuration Features (ConfigurationDesk Bus Manager Implementation
Guide )
§ Bus Manager (stand-alone): Basics on Working with Bus Configuration
Features (Bus Manager (Stand-Alone) Implementation Guide )
§ For more information on working with LIN schedule tables, refer to:
§ Bus Manager in ConfigurationDesk: Working with LIN Schedule Tables
(ConfigurationDesk Bus Manager Implementation Guide )
§ Bus Manager (stand-alone): Working with LIN Schedule Tables (Bus Manager
(Stand-Alone) Implementation Guide )
§ For more information on Bus Manager-related conflicts, refer to:
§ Bus Manager in ConfigurationDesk: Handling Bus Manager-Related Conflicts
(ConfigurationDesk Bus Manager Implementation Guide )
§ Bus Manager (stand-alone): Handling Bus Manager-Related Conflicts (Bus
Manager (Stand-Alone) Implementation Guide )
§ For more information on using tables in ConfigurationDesk applications, refer
to Using Tables to Access and Configure Elements (ConfigurationDesk Real-
Time Implementation Guide ).
§ For more information on using keyboard shortcuts in ConfigurationDesk
applications, refer to Using Keyboard Shortcuts (ConfigurationDesk Real-Time
Implementation Guide ).
§ For instructions on using Python to configure bus communication for
simulation purposes, refer to Lesson 2: Configuring Bus Communication
for Simulation Purposes (ConfigurationDesk Tutorials on Automating Tool
Handling ).
Where to go from here Depending on your use scenario, you can now do the following:
§ Add an existing behavior model to the ConfigrationDesk application and map
the model to the bus configuration. Refer to Lesson 3: Working with an
Existing Behavior Model on page 99.
§ Generate a new Simulink® model. Refer to Lesson 9: Generating a Simulink
Model and Synchronizing the Model Interfaces in ConfigurationDesk and
Simulink on page 157.
§ Configure bus communication for inspection purposes. Refer to Lesson 6:
Configuring Bus Communication for Inspection Purposes on page 127.
96
Bus Manager Tutorial May 2024
Result of Lesson 2
97
May 2024 Bus Manager Tutorial
Lesson 2: Configuring Bus Communication for Simulation Purposes
98
Bus Manager Tutorial May 2024
Lesson 3: Working with an Existing Behavior Model
Overview of Lesson 3
Working with existing When you configure bus communication by using the Bus Manager, you can
behavior models exchange data with a behavior model , for example, to provide dynamically
calculated signal values to an ECU under test.
If you already have a behavior model, you can add the behavior model to the
ConfigurationDesk application . To exchange data between a bus configuration
and the behavior model, you have to map model ports of the behavior model
to function ports of the bus configuration.
What you will learn In this lesson, you will learn how to add a behavior model to the
ConfigurationDesk application and to map model ports of the behavior model to
function ports of a bus configuration.
99
May 2024 Bus Manager Tutorial
Lesson 3: Working with an Existing Behavior Model
Before you begin Before you begin this lesson, the following preconditions must be met:
§ The following licenses are accessible:
§ ConfigurationDesk - CAN Module license (CFD_I_CAN)
§ ConfigurationDesk - LIN Module license (CFD_I_LIN)
Refer to How to Identify Accessible Licenses on page 64.
§ You prepared the bus configuration tables for working with the tutorial. Refer
to How to Prepare Bus Configuration Tables for Working with the Tutorial on
page 58.
§ The result of lesson 2 is available and the related application is active.
If you did not work through lesson 2, you can activate the
Lesson_2_Result application. Refer to How to Activate an Application in the
BusManagerTutorial Project on page 62.
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of Lesson 3 on page 109.
Objective To exchange data with a behavior model, you have to add the behavior model to
the ConfigurationDesk application.
100
Bus Manager Tutorial May 2024
Step 1: How to Add a Behavior Model to the ConfigurationDesk Application
3 Right-click an empty area in the Model Browser and select Import - Add
Model on the context menu.
Tip
101
May 2024 Bus Manager Tutorial
Lesson 3: Working with an Existing Behavior Model
Tip
102
Bus Manager Tutorial May 2024
Step 2: How to Map Model Ports to Function Ports
What's next In the next step, you will map model ports of the Restbus_Model to function
ports of the Restbus_BusConfiguration.
Objective To exchange data with a behavior model, you have to map model ports of a
behavior model to function ports of a bus configuration. You can map the ports
via the Model Browser and the Bus Configuration Ports table and by using
various filter options.
3 In the table, right-click the ECU column header and select Set Column
Filter on the context menu.
The Column Filter Expressions for Column: ECU dialog opens.
4 In the dialog, specify gear as the Filter expression.
5 Make sure that only the Regular expression checkbox is selected and click
OK.
The Bus Configuration Ports table displays only function ports that are
available for the GearboxEcu. The column header indicates the active
column filter by a blue square.
Note
The filter is active until you clear it explicitly. This applies even when you
close ConfigurationDesk or the Bus Manager (stand-alone).
6 In the Model Browser, select the SpeedISignal Value model port and drag
it to the SpeedISignal Value function port in the Bus Configuration Ports
table.
103
May 2024 Bus Manager Tutorial
Lesson 3: Working with an Existing Behavior Model
The SpeedISignal Value ports are mapped. The Bus Configuration Ports
table displays the mapped model port in the Connected Model Ports
column.
Tip
Tip
Interim result You mapped ports of the GearboxEcu. You can now map ports of the
DoorRightEcu. Continue with the next part.
Note
Selected port filters are active until you clear them explicitly. This applies
even when you close ConfigurationDesk or the Bus Manager (stand-
alone). Active port filters are indicated only on the context menu.
104
Bus Manager Tutorial May 2024
Step 2: How to Map Model Ports to Function Ports
5 In the Bus Configuration Ports table, click the Name column to sort the
displayed function ports by their names.
Tip
If you mapped ports incorrectly, you can undo the mapping by pressing
the Ctrl+Z keys.
7 Map the remaining model ports of the DoorRightEcu to the function ports
with identical names.
After you finish, the DoorRightEcu node is hidden in the Model Browser
and the Bus Configuration Ports table displays the four mapped ports.
Interim result You mapped ports of the DoorRightEcu. You can now map ports of the
DoorLeftEcu. Continue with the next part.
105
May 2024 Bus Manager Tutorial
Lesson 3: Working with an Existing Behavior Model
Interim result You mapped ports of the DoorLeftEcu. You can now map ports of the
BodyControlEcu. Continue with the next part.
3 In the Bus Configuration Ports table, right-click an empty area and select
Filter for Inports on the context menu.
4 In the Model Browser, right-click an empty area and select Filter for
Outports.
5 Map the displayed model ports to function ports with the same name.
Tip
After you finish, all displayed function ports are mapped to model ports.
Interim result You mapped all function ports of the BodyControlEcu that match the specified
filters. You can now change the filter settings to map the remaining unmapped
model ports of the Restbus_Model. Continue with the next part.
2 Map the displayed model ports to function ports with the same name.
106
Bus Manager Tutorial May 2024
Step 3: How to Explore Mapped Ports in a Graphical View
After you finish, the Model Browser does not display any elements and the
Bus Configuration Ports table displays the mapped ports.
Result You mapped all the model ports that are available for the Restbus_Model to
suitable function ports.
What's next In the next step, you will explore the mapping of the ports in a graphical view.
Objective To explore mapped ports in a graphical view, you can select the Signal Chain
Browser. The Signal Chain Browser displays working views that provide a
block-based view on the elements that are used in the signal chain .
107
May 2024 Bus Manager Tutorial
Lesson 3: Working with an Existing Behavior Model
108
Bus Manager Tutorial May 2024
Result of Lesson 3
Tip
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of Lesson 3 on page 109.
Result of Lesson 3
Result In this lesson, you learned the basic principles of working with an existing
behavior model:
§ When you add a behavior model to the ConfigurationDesk application, a
preconfigured application process can be created automatically. When you
map a bus configuration to this model, the bus configuration is automatically
assigned to the application process.
§ When the behavior model is a model implementation with the <model
name>_xx-bit naming scheme, the _xx-bit suffix is omitted in the
ConfigurationDesk application.
§ You have to manually map model ports of the behavior model to function
ports of a bus configuration. To do this, you can drag model ports from the
Model Browser to function ports in the Bus Configuration Ports table.
§ The Model Browser and the Bus Configuration Ports table provide various
filter options that can support you by mapping the ports.
§ Working views provide a graphical representation of the port mapping.
Prepared result application The Lesson_3_Result application provides the result of this lesson. You can
activate the application to compare it with your own results, for example. For
more information, refer to Tutorial project and applications on page 23.
Further information § For more information on working with behavior models in ConfigurationDesk
applications, refer to Specifying the Model Interface (ConfigurationDesk Real-
Time Implementation Guide ).
§ For more information on application processes and other elements of
executable applications, refer to Introduction to Modeling Executable
Applications and Tasks (ConfigurationDesk Real-Time Implementation
Guide ).
109
May 2024 Bus Manager Tutorial
Lesson 3: Working with an Existing Behavior Model
§ For more information on working views, refer to Handling the Signal Chain in
Working Views (ConfigurationDesk Real-Time Implementation Guide ).
§ For instructions on using Python to work with existing behavior models, refer
to Lesson 3: Working with an Existing Behavior Model (ConfigurationDesk
Tutorials on Automating Tool Handling ).
Where to go from here Depending on your use scenario, you can now do the following:
§ Generate bus simulation containers. Refer to Lesson 4: Generating Bus
Simulation Containers on page 111.
§ Build a real-time application. Refer to Lesson 5: Building a Real-Time
Application on page 117.
§ Configure bus communication for inspection purposes. Refer to Lesson 6:
Configuring Bus Communication for Inspection Purposes on page 127.
§ Configure bus communication for manipulation purposes. Refer to Lesson 7:
Configuring Bus Communication for Manipulation Purposes on page 135.
110
Bus Manager Tutorial May 2024
Lesson 4: Generating Bus Simulation Containers
Overview of Lesson 4
Generating bus simulation The Bus Manager lets you generate bus simulation containers. Bus simulation
containers containers let you use the bus communication you configured by using the Bus
Manager on various simulation platforms, e.g., on VEOS or SCALEXIO systems.
Additionally, you can use bus simulation containers to archive the configured bus
communication or to exchange it between different users, for example.
When you generate bus simulation containers, one BSC file is generated for each
application process that fulfills the following conditions:
§ The application process contains no or only one behavior model. If the
application process contains a behavior model, it must be a Simulink®
implementation container (SIC file).
§ The application process contains at least one bus configuration that does not
have any conflict with Generate no code effect.
§ For the application process, there are no conflicts with Abort BSC file
generation effect.
111
May 2024 Bus Manager Tutorial
Lesson 4: Generating Bus Simulation Containers
Tip
What you will learn In this lesson, you will learn how to generate bus simulation containers.
Before you begin Before you begin this lesson, the following preconditions must be met:
§ The following licenses are accessible:
§ ConfigurationDesk - CAN Module license (CFD_I_CAN)
§ ConfigurationDesk - LIN Module license (CFD_I_LIN)
Refer to How to Identify Accessible Licenses on page 64.
§ The result of lesson 3 is available and the related application is active.
If you did not work through lesson 3, you can activate the
Lesson_3_Result application. Refer to How to Activate an Application in the
BusManagerTutorial Project on page 62.
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of Lesson 4 on page 115.
Objective To generate bus simulation containers, first check the Conflicts Viewer for
conflicts that affect the generation of bus simulation containers and/or the code
generation for bus configurations. If no such conflicts exist, you can generate
bus simulation containers in one step for all application processes that fulfill the
preconditions for generating bus simulation containers.
112
Bus Manager Tutorial May 2024
Step 1: How to Generate Bus Simulation Containers
Note
In this step, you will generate a bus simulation container for an application
process that contains an SIC file. The SIC file was built for a 64‑bit target
architecture. Therefore, the resulting bus simulation container can be used
only with SCALEXIO, MicroLabBox II, and VEOS running on a Linux 64‑bit
operating system.
The context sets are displayed. In the illustration above, no context sets are
selected.
Tip
3 Make sure that at least the Application and Task Modeling, Model, and
Bus Configurations context sets are selected.
4 Make sure that the Errors and Warnings filters are selected.
The Conflicts Viewer displays all conflicts of the selected context sets and
filters.
113
May 2024 Bus Manager Tutorial
Lesson 4: Generating Bus Simulation Containers
Tip
If you work with the Bus Manager (stand-alone), the Conflicts Viewer
displays no conflicts. This is because the Bus Manager (stand-alone)
displays only conflicts that are relevant for the fields of application in
which the Bus Manager (stand-alone) can be used.
All context sets are cleared and the Conflicts Viewer displays no conflicts.
Note
Interim result You checked the Conflicts Viewer for conflicts that affect bus simulation
containers and/or their included bus configurations. Because no such conflicts
exist, you can now generate bus simulation containers. Continue with the next
part.
114
Bus Manager Tutorial May 2024
Result of Lesson 4
Tip
2 After the generation of bus simulation containers has finished, select the
Project view set.
The Project Manager displays the BusManagerTutorial project and the
active application. For this application, a Generated Containers folder is
available. The folder contains the Restbus_Model.bsc file.
Tip
The BSC file is named after the application process that was
automatically created when you added the Restbus_Model in lesson 3.
Result You generated a bus simulation container for the application process to which
the Restbus_BusConfigration is assigned.
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of Lesson 4 on page 115.
Result of Lesson 4
Result In this lesson, you learned the basic principles of generating bus simulation
containers:
§ Conflicts can affect the generation of bus simulation containers and/or the
code that is generated for bus configurations. The Conflicts Viewer can
support you in identifying and resolving such conflicts.
§ For each application process that fulfills the preconditions for generating bus
simulation containers, one BSC file is generated.
115
May 2024 Bus Manager Tutorial
Lesson 4: Generating Bus Simulation Containers
§ If an application process contains an SIC file, the target architecture for which
the SIC file was built determines the simulation platform with which the
generated BSC file can be used.
§ The generated BSC files are stored to the Generated Containers folder that
is added to the active ConfigurationDesk application when you generate bus
simulation containers for the first time.
§ The generated BSC files are named after the related application processes.
Prepared result application The Lesson_4_Result application provides the result of this lesson. You can
activate the application to compare it with your own results, for example. For
more information, refer to Tutorial project and applications on page 23.
Further information § For more information on generating bus simulation containers, refer to:
§ Bus Manager in ConfigurationDesk: Generating Bus Simulation Containers
(ConfigurationDesk Bus Manager Implementation Guide )
§ Bus Manager (stand-alone): Generating Bus Simulation Containers (Bus
Manager (Stand-Alone) Implementation Guide )
§ For more information on the Conflicts Viewer and Bus Manager-related
conflicts, refer to:
§ Bus Manager in ConfigurationDesk: Handling Bus Manager-Related Conflicts
(ConfigurationDesk Bus Manager Implementation Guide )
§ Bus Manager (stand-alone): Handling Bus Manager-Related Conflicts (Bus
Manager (Stand-Alone) Implementation Guide )
§ For instructions on using Python to generate bus simulation containers,
refer to Lesson 4: Generating Bus Simulation Containers (ConfigurationDesk
Tutorials on Automating Tool Handling ).
Where to go from here You can now continue with a lesson that is relevant for your use scenario. Refer
to Workflows for Using the Bus Manager on page 27.
116
Bus Manager Tutorial May 2024
Lesson 5: Building a Real-Time Application
Overview of Lesson 5
Including bus communication When you work with the Bus Manager in ConfigurationDesk, you can directly
in real-time applications implement the configured bus communication in a real-time application . To do
this, you have to specify the bus access.
117
May 2024 Bus Manager Tutorial
Lesson 5: Building a Real-Time Application
What you will learn In this lesson, you will learn how to import a hardware topology , specify the
hardware access for bus configurations, and build a real-time application.
Before you begin Before you begin this lesson, the following preconditions must be met:
§ You work with the Bus Manager in ConfigurationDesk.
§ The following licenses are accessible:
§ ConfigurationDesk - CAN Module license (CFD_I_CAN)
§ ConfigurationDesk - LIN Module license (CFD_I_LIN)
Refer to How to Identify Accessible Licenses on page 64.
§ You prepared the bus configuration tables for working with the tutorial. Refer
to How to Prepare Bus Configuration Tables for Working with the Tutorial on
page 58.
§ The result of lesson 3 is available and the related application is active.
If you did not work through lesson 3, you can activate the
Lesson_3_Result application. Refer to How to Activate an Application in the
BusManagerTutorial Project on page 62.
Alternatively, you can use other applications as the starting point. For an
overview of the suitable applications, refer to Overview of Lessons on page 25.
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of Lesson 5 on page 125.
118
Bus Manager Tutorial May 2024
Step 1: How to Import a Hardware Topology
Note
In this step, you will work with a predefined hardware topology that might
not match your real-time hardware. Therefore, it is unlikely that you can use
the real-time application of this lesson on your real-time hardware.
119
May 2024 Bus Manager Tutorial
Lesson 5: Building a Real-Time Application
What's next In the next step, you will specify the hardware access for the
Restbus_BusConfiguration.
Objective To specify the hardware access for bus configurations, you have to assign the bus
access requests to bus accesses, i.e., to bus function blocks (CAN, LIN). To access
bus channels of real-time hardware, you have to assign hardware resources to
the bus function blocks.
You can manually and/or automatically assign bus access requests to bus
accesses. In this step, you will automatically assign all the bus access requests
of the Restbus_BusConfiguration to bus accesses.
The Bus Access Requests table displays the bus access requests of all bus
configurations.
2 In the Bus Access Requests table, select the Restbus_BusConfiguration.
120
Bus Manager Tutorial May 2024
Step 2: How to Specify the Hardware Access for Bus Configurations
blocks were newly added to the signal chain and they are named after the
related communication cluster.
Interim result You automatically assigned the bus access requests of the
Restbus_BusConfiguration to bus accesses. You can now assign hardware
resources to the bus function blocks. Continue with the next part.
121
May 2024 Bus Manager Tutorial
Lesson 5: Building a Real-Time Application
5 In the Bus Access Requests table, select the CanBodyCluster (1) node.
The Properties Browser displays the properties of the CAN function block:
§ The General page displays the function block type and the requirements
of the assigned bus access request.
Result You specified the hardware access by automatically assigning all the bus access
requests of the Restbus_BusConfiguration to suitable bus accesses, i.e., CAN
and LIN function blocks. Then, you assigned hardware resources to the function
blocks.
What's next In the next step, you will build a real-time application.
Objective To build a real-time application, first check the Conflicts Viewer for conflicts
that affect the build process and/or the code generation for bus configurations. If
no such conflicts exist, you can start the build process.
122
Bus Manager Tutorial May 2024
Step 3: How to Build a Real-Time Application
The context sets are displayed. In the illustration above, no context sets are
selected.
Tip
2 Make sure that at least the Application and Task Modeling, Function,
Model, Hardware Topology, and Bus Configurations context sets are
selected.
3 Make sure that the Errors and Warnings filters are selected.
The Conflicts Viewer displays all conflicts of the selected context sets
and filters. However, by specifying the hardware access, you automatically
resolved the last conflicts of the active ConfigurationDesk application.
Therefore, the Conflicts Viewer does not display any conflicts.
4 Click the context set filter.
All context sets are cleared and the display of all ConfigurationDesk conflicts
is disabled.
Note
123
May 2024 Bus Manager Tutorial
Lesson 5: Building a Real-Time Application
Interim result You checked the Conflicts Viewer for conflicts that affect the build process
and/or the code generation for bus configurations. Because no such conflicts
exist, you can now build a real-time application. Continue with the next part.
The Build Log Viewer informs you whether the build process finished
successfully.
2 After the build process has finished, select the Project view set.
The Project Manager displays the BusManagerTutorial project and the
active application. For this application, a Build Results folder is available,
containing the files that were generated during the build process.
124
Bus Manager Tutorial May 2024
Result of Lesson 5
Result You built a real-time application that includes the bus communication configured
in the Restbus_BusConfiguration. The real‑time application can be used with
SCALEXIO systems that match the hardware topology you used to specify the
access to the real‑time hardware.
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of Lesson 5 on page 125.
Result of Lesson 5
Result In this lesson, you learned the basic principles of building a real-time application
that includes bus configurations:
§ To include bus configurations in a real-time application, you have to assign the
bus access requests to bus accesses, i.e., to bus function blocks (CAN, LIN).
§ To specify the access to real-time hardware, you have to assign suitable
hardware resources to the bus function blocks. For this purpose, you need
a hardware topology.
§ Conflicts can affect the build process and/or the code that is generated for
bus configurations. The Conflicts Viewer can support you in identifying and
resolving such conflicts.
§ The files that are generated during the build process are stored to the Build
Results folder that is added to the active ConfigurationDesk application when
you start the build process for the first time.
Prepared result application The Lesson_5_Result application provides the result of this lesson. You can
activate the application to compare it with your own results, for example. For
more information, refer to Tutorial project and applications on page 23.
Further information § For more information on bus access requests, refer to Handling Bus Access
Requests (ConfigurationDesk Bus Manager Implementation Guide ).
§ For more information on the Conflicts Viewer and Bus Manager-related
conflicts, refer to Handling Bus Manager-Related Conflicts (ConfigurationDesk
Bus Manager Implementation Guide ).
§ For information on the CAN and LIN function blocks, e.g., on their
configuration features, refer to CAN (ConfigurationDesk I/O Function
Implementation Guide ) and LIN (ConfigurationDesk I/O Function
Implementation Guide ), respectively.
§ For more information on hardware topologies, refer to Working
with Hardware Topologies (ConfigurationDesk Real-Time Implementation
Guide ).
§ For information on handling available real-time hardware in
ConfigurationDesk, refer to Handling Registered Hardware (ConfigurationDesk
Real-Time Implementation Guide ).
125
May 2024 Bus Manager Tutorial
Lesson 5: Building a Real-Time Application
Where to go from here You can now continue with a lesson that is relevant for your use scenario. Refer
to Workflows for Using the Bus Manager on page 27.
126
Bus Manager Tutorial May 2024
Lesson 6: Configuring Bus Communication for Inspection Purposes
Overview of Lesson 6
Inspecting bus communication To inspect bus communication, you have to assign communication matrix
elements to the Inspection part of a bus configuration and use bus
configuration features to specify the data you want to inspect.
In this lesson, you will inspect the bus communication that is exchanged
between the CentralGatewayEcu and the restbus that was simulated in lesson
2. For more information, refer to Use scenarios in this tutorial on page 21.
What you will learn In this lesson, you will learn how to assign communication matrix elements to
the Inspection part of a bus configuration and configure assigned elements by
using bus configuration features.
127
May 2024 Bus Manager Tutorial
Lesson 6: Configuring Bus Communication for Inspection Purposes
Before you begin Before you begin this lesson, the following preconditions must be met:
§ The following licenses are accessible:
§ ConfigurationDesk - CAN Module license (CFD_I_CAN)
§ ConfigurationDesk - LIN Module license (CFD_I_LIN)
Refer to How to Identify Accessible Licenses on page 64.
§ You disabled a user‑defined bus configuration behavior. Refer to How to
Disable a User-Defined Bus Configuration Behavior on page 57.
§ You prepared the bus configuration tables for working with the tutorial. Refer
to How to Prepare Bus Configuration Tables for Working with the Tutorial on
page 58.
§ The result of lesson 3 is available and the related application is active.
If you did not work through lesson 3, you can activate the
Lesson_3_Results application. Refer to How to Activate an Application in the
BusManagerTutorial Project on page 62.
Alternatively, you can use other applications as the starting point. For an
overview of the suitable applications, refer to Overview of Lessons on page 25.
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of Lesson 6 on page 133.
128
Bus Manager Tutorial May 2024
Step 1: How to Assign Communication Matrix Elements to the Inspection Part of a Bus Configuration
All the PDUs and ISignals that are transmitted and received by the
CentralGatewayEcu via the CanPowertrainCluster are assigned to the
Inspection part.
The inspection of bus communication focuses on the bus communication
that is exchanged via a communication cluster, i.e., the bus communication
that can be received by bus members. However, the involved specific sending
and receiving ECUs are out of focus. Because of this, the elements are
assigned in the context of the communication cluster and their direction is
RX.
For example, the PowerStatusIPdu is transmitted by the
CentralGatewayECU and received by the GearboxEcu and EngineEcu.
To inspect this PDU on the CanPowertrainCluster, it is assigned to the
Inspection part once as an RX PDU. Nevertheless, in the Buses Browser the
PDU is marked by the chain symbol ( ) for all the involved network nodes.
Tip
129
May 2024 Bus Manager Tutorial
Lesson 6: Configuring Bus Communication for Inspection Purposes
All the PDUs and ISignals that are exchanged with the CentralGatewayEcu
via the CanBodyCluster are assigned to the Inspection part.
Result You assigned the PDUs and ISignals that are exchanged with the
CentralGatewayEcu via the CanPowertrainCluster and CanBodyCluster to
the Inspection part of the bus configuration.
The name of the communication matrix node that is available for the Inspection
part is derived from the communication matrix node that is available for the
Simulated ECUs part. Therefore, it was not necessary to change the name of
the communication matrix node in this step.
Tip
The names of communication matrix nodes that are available for the
same communication matrix in a bus configuration are automatically
synchronized.
What's next In the next step, you will add bus configuration features to elements of the
Inspection part to configure bus communication for inspection purposes.
Objective To configure bus communication for inspection purposes, you have to add bus
configuration features to elements that are assigned to the Inspection part of a
bus configuration.
The PDU Features subview is active, displaying all PDUs that are assigned to
the Inspection part of bus configurations.
2 Select all displayed PDUs.
130
Bus Manager Tutorial May 2024
Step 2: How to Add Bus Configuration Features for Inspection Purposes
3 In the PDU Raw Data column, right-click one of the highlighted cells and
select Fill with one of - Enabled on the context menu.
At run time, the function ports provide the raw data and status information
of the inspected PDUs, e.g., the number of received PDU instances or the
delta time between two consecutively received PDU instances.
Tip
131
May 2024 Bus Manager Tutorial
Lesson 6: Configuring Bus Communication for Inspection Purposes
Interim result You added bus inspection features to PDUs. You can now add bus inspection
features to ISignals. Continue with the next part.
Tip
Result You added bus configuration features to PDUs and ISignals that are assigned to
the Inspection part of the bus configuration.
Tip
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of Lesson 6 on page 133.
132
Bus Manager Tutorial May 2024
Result of Lesson 6
Result of Lesson 6
Result In this lesson, you learned the basic principles of configuring bus communication
for inspection purposes:
§ To inspect bus communication, you have to assign communication matrix
elements to the Inspection part of bus configurations. The elements are
assigned in the context of the related communication clusters and their
direction is RX.
§ To specify the data of the bus communication that is to be inspected, you can
add bus inspection features to assigned elements.
§ Depending on the specific bus inspection feature, function ports are available.
For the function ports, test automation support is enabled by default, i.e., you
can access the function port data via experiment software and automation
scripts by default.
Prepared result application The Lesson_6_Result application provides the result of this lesson. You can
activate the application to compare it with your own results, for example. For
more information, refer to Tutorial project and applications on page 23.
Further information § For more information on assigning communication matrix elements to bus
configurations, refer to:
§ Bus Manager in ConfigurationDesk: Assigning Communication Matrix
Elements to Bus Configurations (ConfigurationDesk Bus Manager
Implementation Guide )
§ Bus Manager (stand-alone): Assigning Communication Matrix Elements to
Bus Configurations (Bus Manager (Stand-Alone) Implementation Guide )
§ For more information on working with bus configuration features, refer to:
§ Bus Manager in ConfigurationDesk: Basics on Working with Bus
Configuration Features (ConfigurationDesk Bus Manager Implementation
Guide )
§ Bus Manager (stand-alone): Basics on Working with Bus Configuration
Features (Bus Manager (Stand-Alone) Implementation Guide )
§ For instructions on using Python to configure bus communication for
inspection purposes, refer to Lesson 6: Configuring Bus Communication
for Inspection Purposes (ConfigurationDesk Tutorials on Automating Tool
Handling ).
Where to go from here You can now configure bus communication for manipulation purposes. Refer
to Lesson 7: Configuring Bus Communication for Manipulation Purposes on
page 135.
You can also continue with another lesson that is relevant for your use scenario.
Refer to Workflows for Using the Bus Manager on page 27.
133
May 2024 Bus Manager Tutorial
Lesson 6: Configuring Bus Communication for Inspection Purposes
134
Bus Manager Tutorial May 2024
Lesson 7: Configuring Bus Communication for Manipulation Purposes
Overview of Lesson 7
Manipulating bus To manipulate bus communication, you have to assign communication matrix
communication elements to the Manipulation part of a bus configuration and use bus
configuration features to configure the manipulation behavior. For example,
you can use bus configuration features to manipulate the length of frames or
overwrite ISignal values.
135
May 2024 Bus Manager Tutorial
Lesson 7: Configuring Bus Communication for Manipulation Purposes
Run-time behavior In general, three enable states can be distinguished for manipulating bus
of manipulating bus communication at run time:
communication
Enable State Description
Disabled Manipulation is disabled and the original data is transmitted.
Permanently The affected bus configuration element is permanently
enabled manipulated until the enable state is changed explicitly.
Temporarily The affected bus configuration element is manipulated for a
enabled defined number of times. After the number of times has elapsed,
the enable state switches to disabled.
You can specify the initial run-time behavior and change the specified setting at
run time.
What you will learn In this lesson, you will learn how to assign communication matrix elements
to the Manipulation part of a bus configuration and configure the assigned
elements by using bus configuration features.
Before you begin Before you begin this lesson, the following preconditions must be met:
§ The following licenses are accessible:
§ ConfigurationDesk - CAN Module license (CFD_I_CAN)
§ ConfigurationDesk - LIN Module license (CFD_I_LIN)
Refer to How to Identify Accessible Licenses on page 64.
§ You disabled a user‑defined bus configuration behavior. Refer to How to
Disable a User-Defined Bus Configuration Behavior on page 57.
§ You prepared the bus configuration tables for working with the tutorial. Refer
to How to Prepare Bus Configuration Tables for Working with the Tutorial on
page 58.
§ The result of lesson 6 is available and the related application is active.
136
Bus Manager Tutorial May 2024
Step 1: How to Assign Communication Matrix Elements to the Manipulation Part of a Bus Configuration
If you did not work through lesson 6, you can activate the
Lesson_6_Results application. Refer to How to Activate an Application in the
BusManagerTutorial Project on page 62.
Alternatively, you can use other applications as the starting point. For an
overview of the suitable applications, refer to Overview of Lessons on page 25.
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of Lesson 7 on page 144.
Tip
All the PDUs are already used in the bus configuration. Therefore, the
chain symbol ( ) is displayed for the PDUs.
137
May 2024 Bus Manager Tutorial
Lesson 7: Configuring Bus Communication for Manipulation Purposes
All the PDUs and ISignals that are received by the CentralGatewayEcu are
assigned to the Manipulation part.
Manipulating bus communication applies to the bus communication that is
transmitted via a communication cluster, regardless of the involved sending
and receiving ECUs. Therefore, the elements are assigned in the context of
the communication cluster and their direction is TX.
Tip
Result You assigned the PDUs and ISignals that are received by the
CentralGatewayEcu to the Manipulation part of the bus configuration. This
lets you manipulate the PDUs and ISignals before they are transmitted on the bus
and received by the CentralGatewayEcu.
The name of the communication matrix node that is available for the
Manipulation part is derived from the communication matrix nodes that are
available for the Simulated ECUs and Inspection parts. Therefore, it was not
necessary to change the name of the communication matrix node in this step.
138
Bus Manager Tutorial May 2024
Step 2: How to Add Bus Configuration Features for Manipulation Purposes
Tip
The names of communication matrix nodes that are available for the
same communication matrix in a bus configuration are automatically
synchronized.
What's next In the next step, you will add bus configuration features to elements of the
Manipulation part to configure bus communication for manipulation purposes.
Objective To configure bus communication for manipulation purposes, you have to add
bus configuration features to elements that are assigned to the Manipulation
part of a bus configuration.
The PDU Features subview is active, displaying all PDUs that are assigned to
the Manipulation part of bus configurations.
2 Click the Name column header to sort the PDUs alphabetically.
The sorting order is indicated by an arrow ( ) in the column header.
3 Select the CarLockControlIPdu and GearboxInfoIPdu and set Suspend
Frame Transmission to Enabled.
139
May 2024 Bus Manager Tutorial
Lesson 7: Configuring Bus Communication for Manipulation Purposes
The Frame Length feature is added to the PDU. This enables the Length -
Frame Length and Padding Value - Frame Length columns for the PDU,
which let you configure the feature-specific manipulation behavior of the
Frame Length feature.
Interim result You added bus manipulation features to PDUs. You can now add bus
manipulation features to ISignals. Continue with the next part.
The ISignal Offset Value feature is added to the ISignal. This enables
the Offset Value - ISignal Offset Value, Minimum ISignal Value -
ISignal Offset Value, and Maximum ISignal Value - ISignal Offset
Value columns for the ISignal, which let you configure the feature-specific
manipulation behavior of the ISignal Offset Value feature.
Result You added bus configuration features to PDUs and ISignals that are assigned to
the Manipulation part of the bus configuration.
140
Bus Manager Tutorial May 2024
Step 3: How to Configure the Run-Time Behavior for Manipulating Bus Communication
What's next In the next step, you will configure the run-time behavior for manipulating the
PDUs and ISignals.
Objective To configure the run-time behavior for manipulating bus communication, you
can specify feature-specific and common manipulation settings for each PDU and
ISignal to which you added bus manipulation features.
This value applies only to the Frame Length feature: When the feature is
active at run time, the payload length of the frame that transmits the PDU is
set to 1 byte by default.
5 Right-click the CarLockControlIPdu and select Show - Show in Bus
Configurations Table on the context menu.
The Bus Configurations table is displayed and the PDU is highlighted in the
table.
6 Expand the CarLockControlIPdu node to display its feature nodes and
ISignals.
7 Expand the Suspend Frame Transmission feature node to display the
function ports that are available for the feature.
The displayed function ports are common manipulation function ports. They
are available for all bus manipulation features that can be added to PDUs.
8 Select the Suspend Frame Transmission feature node.
The Properties Browser displays the properties of the Suspend Frame
Transmission feature node.
The values of the properties that are available for the Initial Feature Values
category can be accessed via their related function ports at run time. The
value of the Countdown start value property is derived from the value you
specified in the Bus Manipulation Features table.
141
May 2024 Bus Manager Tutorial
Lesson 7: Configuring Bus Communication for Manipulation Purposes
Tip
§ You can specify the initial enable state of bus manipulation features
that are available for PDUs only via the feature node or the Enable
function port. You cannot specify the initial enable state via the Bus
Manipulation Features table.
§ For function ports of all bus manipulation features, test automation
support is enabled by default. This lets you access the function port
values via experiment software and automation scripts without any
additional configuration steps.
10 In the Bus Configurations table, expand the Frame Length feature node
to display its function ports.
11 Select the Frame Length feature node.
The Properties Browser displays the properties of the Frame Length
feature node.
142
Bus Manager Tutorial May 2024
Step 3: How to Configure the Run-Time Behavior for Manipulating Bus Communication
The specified value applies only to the Frame Length feature. This lets you
specify different countdown start values for the bus manipulation features
that are added to a PDU.
Interim result You configured the run-time behavior for PDU manipulation. You can now
configure the run-time behavior for ISignal manipulation. Continue with the next
part.
The specified overwrite value and offset value are feature-specific settings
and apply only to the ISignal Overwrite Value and ISignal Offset Value
feature, respectively. When the related feature is active at run time, the
original ISignal value is manipulated by the specified value by default.
After you finish, the following settings are displayed in the Bus
Manipulation Features table.
143
May 2024 Bus Manager Tutorial
Lesson 7: Configuring Bus Communication for Manipulation Purposes
6 In the Bus Configurations table, expand the SpeedISignal node and its
lower-level nodes.
Result You configured the run-time behavior for PDU and ISignal manipulation.
Tip
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of Lesson 7 on page 144.
Result of Lesson 7
Result In this lesson, you learned the basic principles of configuring bus communication
for manipulation purposes:
§ To manipulate bus communication, you have to assign communication matrix
elements to the Manipulation part of bus configurations. The elements
are assigned in the context of the related communication clusters and their
direction is TX.
§ To manipulate assigned elements at run time, you have to add bus
manipulation features to the elements.
§ To configure the run-time behavior for manipulation, bus manipulation
features provide feature-specific and common manipulation settings. For the
144
Bus Manager Tutorial May 2024
Result of Lesson 7
settings that can be changed during run time, function ports are available. For
the function ports, test automation support is enabled by default, i.e., you can
access the function port data via experiment software and automation scripts
by default.
§ For ISignals, only one bus manipulation feature can be active at a time.
Therefore, a feature switch is available for each ISignal that is configured for
manipulation. The feature switch lets you specify the active bus manipulation
feature.
Prepared result application The Lesson_7_Result application provides the result of this lesson. You can
activate the application to compare it with your own results, for example. For
more information, refer to Tutorial project and applications on page 23.
Further information § For more information on assigning communication matrix elements to bus
configurations, refer to:
§ Bus Manager in ConfigurationDesk: Assigning Communication Matrix
Elements to Bus Configurations (ConfigurationDesk Bus Manager
Implementation Guide )
§ Bus Manager (stand-alone): Assigning Communication Matrix Elements to
Bus Configurations (Bus Manager (Stand-Alone) Implementation Guide )
§ For more information on working with bus configuration features, refer to:
§ Bus Manager in ConfigurationDesk: Basics on Working with Bus
Configuration Features (ConfigurationDesk Bus Manager Implementation
Guide )
§ Bus Manager (stand-alone): Basics on Working with Bus Configuration
Features (Bus Manager (Stand-Alone) Implementation Guide )
§ For more information on manipulating bus communication, refer to:
§ Bus Manager in ConfigurationDesk: Basics on Bus Manipulation Features
(ConfigurationDesk Bus Manager Implementation Guide )
§ Bus Manager (stand-alone): Basics on Bus Manipulation Features (Bus
Manager (Stand-Alone) Implementation Guide )
§ For instructions on using Python to configure bus communication for
manipulation purposes, refer to Lesson 7: Configuring Bus Communication
for Manipulation Purposes (ConfigurationDesk Tutorials on Automating Tool
Handling ).
Where to go from here You can now continue with a lesson that is relevant for your use scenario. Refer
to Workflows for Using the Bus Manager on page 27.
145
May 2024 Bus Manager Tutorial
Lesson 7: Configuring Bus Communication for Manipulation Purposes
146
Bus Manager Tutorial May 2024
Lesson 8: Working Without a Behavior Model
Overview of Lesson 8
Working without a behavior When you configure bus communication with the Bus Manager, you can
model work without a behavior model, for example, if you only want to access the
configured bus communication via experiment software, such as ControlDesk.
When you work without a behavior model, you have to manually create at
least one application process and task, and assign bus configurations to this
application process.
Tip
Application processes are structuring elements that contain tasks. Tasks are
pieces of code whose execution is controlled by the simulation platform,
e.g., by the real-time operating system (RTOS). Tasks are required during the
execution of executable applications .
147
May 2024 Bus Manager Tutorial
Lesson 8: Working Without a Behavior Model
When you manually create an application process, you can assign a bus
configuration to this application process in one of the following ways:
§ Specify the access to real-time hardware
Use this method if you work with hardware topologies .
Tip
Tip
Note
In this lesson, you will configure bus communication for simulation purposes and
access via experiment software and automation scripts only.
What you will learn In this lesson, you will learn how to access bus configuration elements via
experiment software and automation scripts, create an application process that
provides a default task, and assign a bus configuration to this application process
manually.
Before you begin Before you begin this lesson, the following preconditions must be met:
§ The following licenses are accessible:
§ ConfigurationDesk - CAN Module license (CFD_I_CAN)
§ ConfigurationDesk - LIN Module license (CFD_I_LIN)
Refer to How to Identify Accessible Licenses on page 64.
§ You disabled a user‑defined bus configuration behavior. Refer to How to
Disable a User-Defined Bus Configuration Behavior on page 57.
§ You prepared the bus configuration tables for working with the tutorial. Refer
to How to Prepare Bus Configuration Tables for Working with the Tutorial on
page 58.
§ The result of lesson 1 is available and the related application is active.
If you did not work through lesson 1, you can activate the
Lesson_1_Results application. Refer to How to Activate an Application in the
BusManagerTutorial Project on page 62.
148
Bus Manager Tutorial May 2024
Step 1: How to Configure Bus Configuration Elements for Access via Experiment Software and Automation Scripts
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of Lesson 8 on page 156.
149
May 2024 Bus Manager Tutorial
Lesson 8: Working Without a Behavior Model
4 In the Name column of the Bus Configurations table, change the name of
the communication matrix node to BusManagerTutorial_ComMatrix.
Tip
Interim result You added communication matrix elements to the Simulated ECUs part of the
Restbus_BusConfiguration. To the assigned elements, the ISignal Value and
LIN Schedule Table feature are added automatically. You can now enable test
automation support for the function ports of these features. Continue with the
next part.
150
Bus Manager Tutorial May 2024
Step 1: How to Configure Bus Configuration Elements for Access via Experiment Software and Automation Scripts
3 Right-click a cell of the Test Automation Support column and select Fill
with one of - Enabled on the context menu.
Interim result You enabled test automation support for all the available function ports. You can
now enable LIN communication by default. Continue with the next part.
This selects the first LIN schedule table of the LIN master communication
controller and enables LIN communication by default.
Tip
Interim result You enabled LIN communication by default. You can now check the configured
bus communication for conflicts and resolve conflicts, if required. Continue with
the next part.
151
May 2024 Bus Manager Tutorial
Lesson 8: Working Without a Behavior Model
The context sets are displayed. In the illustration above, no context sets are
selected.
Tip
2 Select the Bus Configurations context set and make sure that all other
context sets are cleared.
3 Make sure that the Errors and Warnings filters are selected.
152
Bus Manager Tutorial May 2024
Step 1: How to Configure Bus Configuration Elements for Access via Experiment Software and Automation Scripts
Tip
If you work with the Bus Manager (stand-alone), the No bus access
assigned conflict is not displayed. This is because the Bus Manager
(stand-alone) displays only conflicts that are relevant for the fields of
application in which the Bus Manager (stand-alone) can be used.
By this, you change the frame length from 1 byte to 2 bytes, which matches
the 2 bytes of the related PDU. This change applies to the bus configuration
and the communication matrix in the ConfigurationDesk application, and
resolves the conflict.
Tip
All context sets are cleared and the Conflicts Viewer displays no conflicts.
Result You configured bus communication for simulation purposes and access via
experiment software and automation scripts.
Note
153
May 2024 Bus Manager Tutorial
Lesson 8: Working Without a Behavior Model
What's next In the next step, you will create an application process that provides a default
task.
Objective To work without a behavior model, you have to manually create at least one
application process and task. You can do this in one step by creating an
application process that provides a default task.
An application process and a default task with default names and default
settings are created.
3 In the Name column of the Task Configuration table, change the name of
the application process to Restbus_ApplicationProcess.
Result You created an application process and a default task, which is a periodic task.
The default settings of the application process and the task are sufficient in most
use cases.
What's next In the next step, you will manually assign the Restbus_BusConfiguration to the
application process.
154
Bus Manager Tutorial May 2024
Step 3: How to Manually Assign a Bus Configuration to an Application Process
Objective If you work without a behavior model and without hardware topologies, you
have to assign bus configurations to application processes manually.
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of Lesson 8 on page 156.
155
May 2024 Bus Manager Tutorial
Lesson 8: Working Without a Behavior Model
Result of Lesson 8
Result In this lesson, you learned the basic principles of working without a behavior
model:
§ You have to manually create at least one application process and task. You can
do this in one step by creating an application process that provides a default
task.
§ If you work without hardware topologies, you also have to assign bus
configurations to application processes manually.
§ If you work with hardware topologies, it is recommended not to assign bus
configurations to application processes manually. Instead, bus configurations
are assigned to application processes automatically when you specify the
hardware access.
Prepared result application The Lesson_8_Result application provides the result of this lesson. You can
activate the application to compare it with your own results, for example. For
more information, refer to Tutorial project and applications on page 23.
Further information § For more information on working without behavior models, refer to:
§ Bus Manager in ConfigurationDesk: Working Without Behavior Models
(ConfigurationDesk Bus Manager Implementation Guide )
§ Bus Manager (stand-alone): Working Without Behavior Models (Bus
Manager (Stand-Alone) Implementation Guide )
§ For more information on configuring function ports, refer to:
§ Bus Manager in ConfigurationDesk: Configuring Function Ports for Bus
Configuration Features (ConfigurationDesk Bus Manager Implementation
Guide )
§ Bus Manager (stand-alone): Configuring Function Ports for Bus
Configuration Features (Bus Manager (Stand-Alone) Implementation
Guide )
§ For more information on Bus Manager-related conflicts, refer to:
§ Bus Manager in ConfigurationDesk: Handling Bus Manager-Related Conflicts
(ConfigurationDesk Bus Manager Implementation Guide )
§ Bus Manager (stand-alone): Handling Bus Manager-Related Conflicts (Bus
Manager (Stand-Alone) Implementation Guide )
Where to go from here You can now continue with a lesson that is relevant for your use scenario. Refer
to Workflows for Using the Bus Manager on page 27.
156
Bus Manager Tutorial May 2024
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
Step 4: How to Model Input Bus Signals in the Simulink Model.............. 169
Overview of Lesson 9
Generating a Simulink® If you want to exchange configured bus communication with a behavior model
model interface and you do not have a suitable model yet, you can generate a Simulink® model
interface from within the ConfigurationDesk application. When you do this,
model port blocks are generated for function ports whose model access is
enabled, and the model ports are mapped to the function ports.
157
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
The model port blocks are available in the ConfigurationDesk application and in
a Simulink model. Additionally, a model block periphery can be generated in the
Simulink model, i.e., subsystems providing bus creators, bus selectors, constant
blocks, etc.
For example, you can use the generated Simulink model interface as follows:
§ As a starting point to model a behavior model.
§ To copy the generated blocks to an existing behavior model.
In this lesson, you will generate a Simulink model interface for the simulated
restbus communication that was configured in lesson 2.
Synchronizing the When you add a Simulink model to the ConfigurationDesk application, you can
model interfaces of synchronize the model interfaces if you make changes in the ConfigurationDesk
the ConfigurationDesk application or the Simulink model. The synchronization applies only to model
application and in Simulink port blocks, not to other blocks that might be available in the Simulink model.
Replacing Simulink models You can generate a Simulink implementation container (SIC file) from
in the ConfigurationDesk a Simulink model. If the Simulink model is already available in the
application ConfigurationDesk application, you can easily replace the model in the
ConfigurationDesk application with the generated container. When you do this,
the mapping of model ports to function ports remains unchanged.
Tip
For example, this lets you generate bus simulation containers without any
additional manual port mapping.
What you will learn In this lesson, you will learn how to generate a Simulink model interface
including a model block periphery, and synchronize the model interfaces in the
ConfigurationDesk application and in Simulink. Additionally, you will generate
a Simulink implementation container from the Simulink model, and replace
the Simulink model in the ConfigurationDesk application with the generated
container.
Before you begin Before you begin this lesson, the following preconditions must be met:
§ MATLAB®/Simulink® and the Model Interface Package for Simulink are
installed.
MATLAB must be connected to the dSPACE installation. If multiple MATLAB
installations are connected to the dSPACE installation, one MATLAB installation
must be specified as the preferred connection. For more information, refer
to Connecting dSPACE Installations to MATLAB (Managing dSPACE Software
Installations ).
§ The following licenses are accessible:
§ ConfigurationDesk - CAN Module license (CFD_I_CAN)
§ ConfigurationDesk - LIN Module license (CFD_I_LIN)
158
Bus Manager Tutorial May 2024
Step 1: How to Generate a New Simulink Model Interface
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of Lesson 9 on page 176.
Objective To exchange data with a Simulink® model when no suitable model is available
yet, you can generate a Simulink model interface for function ports whose model
access is enabled.
Tip
159
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
Note
160
Bus Manager Tutorial May 2024
Step 2: How to Add a Simulink Model to the ConfigurationDesk Application
Result You generated a Simulink model interface for the function ports of the
Restbus_BusConfiguration whose model access is enabled. On the root level of
the generated Simulink model interface, three subsystems are available:
Subsystem Description
Restbus_BusConfiguration - Contains the model block periphery that provides data to the Restbus_BusConfiguration
In subsystem.
Restbus_BusConfiguration Contains two model port blocks :
§ Restbus_BusConfiguration_Out
This block is a Data Outport block. It receives the data of the Restbus_BusConfiguration -
In subsystem and provides it to function inports of the Restbus_BusConfiguration in the
ConfigurationDesk application, e.g., to TX Value function ports of the ISignal Value feature.
§ Restbus_BusConfiguration_In
This block is a Data Inport block. It receives data from function outports of
the Restbus_BusConfiguration in the ConfigurationDesk application, e.g., from RX
Value function ports of the ISignal Value feature. This data is provided to the
Restbus_BusConfiguration - Out subsystem.
Restbus_BusConfiguration - Contains the model block periphery that receives data from the Restbus_BusConfiguration
Out subsystem.
What's next In the next step, you will add the generated 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.
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).
161
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
Depending on your Bus Manager variant, select one of the following methods:
§ If you use the Bus Manager in ConfigurationDesk, select Method 1 on
page 162.
§ If you use the Bus Manager (stand-alone), select Method 2 on page 162.
Skip the following method and continue with the result of this step. Refer to
Result on page 163.
Method 2 To add a Simulink model when using the Bus Manager (stand-alone)
1 Switch to the Bus Manager (stand-alone).
162
Bus Manager Tutorial May 2024
Step 3: How to Propagate Changes to a Simulink Model
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.
163
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
Note
The filter is active until you clear it explicitly. This applies even when you
close ConfigurationDesk or the Bus Manager (stand-alone).
Interim result You enabled model access for a TX and an RX function port. You can now adapt
the model port blocks of the ConfigurationDesk application and in the Simulink
model accordingly. Continue with the next part.
164
Bus Manager Tutorial May 2024
Step 3: How to Propagate Changes to a Simulink Model
165
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
166
Bus Manager Tutorial May 2024
Step 3: How to Propagate Changes to a Simulink Model
Interim result You adapted the model port blocks of the ConfigurationDesk application and
the Simulink model to the changes you made for the function ports of the
Restbus_BusConfiguration. You can now explore the effects in the Simulink
model. Continue with the next part.
167
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
168
Bus Manager Tutorial May 2024
Step 4: How to Model Input Bus Signals in the Simulink Model
Result You enabled model access for further function ports of the
Restbus_BusConfiguration and propagated the changes to Simulink. This
automatically updates the model port blocks in the ConfigurationDesk
application and in Simulink. However, the model block periphery in the Simulink
model is not updated.
What's next In the next step, you will model the required input bus signal in the Simulink
model.
169
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
170
Bus Manager Tutorial May 2024
Step 5: How to Analyze the Simulink Model in the ConfigurationDesk Application
What's next In the next step, you will analyze the Simulink model in the ConfigurationDesk
application.
If you use the Bus Manager in ConfigurationDesk, you can analyze 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 on
page 171.
§ If you use the Bus Manager (stand-alone), select Method 2 on page 172.
Method 1 To analyze the Simulink model when using the Bus Manager in
ConfigurationDesk
1 In the Simulink Editor, click ConfigurationDesk - Analyze Model in
ConfigurationDesk (Including Task Information).
171
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
Method 2 To analyze the Simulink model when using the Bus Manager (stand-alone)
1 Switch to the Bus Manager (stand-alone).
2 Select the Model Browser.
3 In the Model Browser, right-click the Generated_Restbus_Model_User1
node and select Analyze Simulink Model (Including Task Information)
on the context menu.
Result You analyzed the Simulink model including its task information in the
ConfigurationDesk application. This synchronizes the model interfaces.
Tip
During the model analysis including task information, the Simulink Update
Diagram functionality is automatically executed and the model is checked
for errors.
What's next In the next step, you will generate a Simulink implementation container
from the Simulink model and 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.
172
Bus Manager Tutorial May 2024
Step 6: How to Replace a Simulink Model with a Simulink Implementation Container
Note
The Configuration Parameters dialog opens. It might take a while until the
dialog is completely loaded.
4 In the Configuration Parameters dialog, select the Code Generation
page.
5 Ensure that dsrt.tlc is specified as the System target file. If it is not, type
it in the edit field.
6 Click the expand arrow of the Code Generation page and select the
dSPACE Target DSRT page.
173
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
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.
7 Select 64‑bit from the Target architecture list.
Tip
Interim result 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.
174
Bus Manager Tutorial May 2024
Step 6: How to Replace a Simulink Model with a 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.
175
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
Tip
Result 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.
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of Lesson 9 on page 176.
Result of Lesson 9
Result In this lesson, you learned the basic principles of generating a Simulink® model,
synchronizing the model interfaces in ConfigurationDesk/the Bus Manager
(stand-alone) and Simulink, and replacing a Simulink model with its related
Simulink implementation container in the ConfigurationDesk application:
§ For function ports with enabled model access, you can generate a Simulink
model interface from within the ConfigurationDesk application.
§ To exchange data between the ConfigurationDesk application and the
Simulink model, model port blocks are generated. Model port blocks are
available in the ConfigurationDesk application and in the Simulink model.
§ Additionally, a model block periphery can be generated in the Simulink model
which provides subsystems with bus creators, bus selectors, constant blocks,
etc. This periphery can be used to exchange bus signals between Simulink and
the ConfigurationDesk application, for example.
§ When you make changes in the ConfigurationDesk application or the Simulink
model, you can synchronize the model interfaces.
176
Bus Manager Tutorial May 2024
Result of Lesson 9
§ Synchronizing the model interfaces applies only to model port blocks. Other
blocks in the Simulink model are not affected. Because of this, you might have
to adapt parts of the Simulink model manually to the changes of the model
port blocks.
§ You can generate Simulink implementation containers from Simulink
models. When you do this for a Simulink model that is available in
the ConfigurationDesk application, you can replace the model in the
ConfigurationDesk application with the container. In this case, the mapping
of model ports to function ports remains unchanged.
Prepared result application The Lesson_9_Result application provides the result of this lesson. You can
activate the application to compare it with your own results, for example. For
more information, refer to Tutorial project and applications on page 23.
Further information § For more information on specifying the model interface in the
ConfigurationDesk application, refer to Specifying the Model Interface
(ConfigurationDesk Real-Time Implementation Guide ).
§ For more information on working with Simulink models in the
ConfigurationDesk application, refer to Working with Simulink Behavior
Models (ConfigurationDesk Real-Time Implementation Guide ).
Where to go from here You can now continue with a lesson that is relevant for your use scenario. Refer
to Workflows for Using the Bus Manager on page 27.
177
May 2024 Bus Manager Tutorial
Lesson 9: Generating a Simulink Model and Synchronizing the Model Interfaces in ConfigurationDesk and Simulink
178
Bus Manager Tutorial May 2024
Additional Lesson: Experimenting with ControlDesk
Experimenting with After you included bus communication in an executable application , you can
ControlDesk load the application to a simulation platform and access the bus communication
at run time by using ControlDesk. The ControlDesk Bus Navigator provides
a hardware-related view of the configured bus communication and lets you
create bus-specific instruments. You can use the bus-specific instruments and
common ControlDesk instruments to simulate, manipulate, and inspect the bus
communication in real time.
179
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
What you will learn In this lesson, you will learn how to simulate, manipulate, and inspect bus
communication by using bus-specific and common ControlDesk instruments.
Before you begin Before you begin this lesson, the following preconditions must be met:
§ ControlDesk is installed and decrypted.
§ The ControlDesk Bus Navigator Module is available.
§ You have a suitable simulation platform, i.e., a SCALEXIO, MicroAutoBox III, or
MicroLabBox II system, or VEOS.
§ The simulation platform is registered in ControlDesk. Refer to How to Register
a Platform (ControlDesk Platform Management )
§ You built a suitable executable application and loaded the application to the
simulation platform. Refer to Building a Suitable Executable Application on
page 180.
Result and further The lesson concludes with a summary of the lesson content and with further
information information. Refer to Result of the Experimenting with ControlDesk Lesson on
page 201.
Overview To work through this lesson, you have to build a suitable executable application.
The requirements for the application depend on your simulation platform.
180
Bus Manager Tutorial May 2024
Building a Suitable Executable Application
Building a suitable real-time Preconditions concerning real-time hardware Your real-time hardware
application must meet the following requirements:
§ 1 LIN channel
§ 4 CAN channels
§ Only for SCALEXIO platforms: The LIN VBAT and LIN GND pins of the LIN
channel are connected to an external 12 V power supply.
§ The CAN channels are physically connected as follows:
§ Channel 1 is connected to channel 2.
§ Channel 3 is connected to channel 4.
To establish the physical connection of the CAN channels, you need information
on the mapping of CAN signals to bus lines of real-time hardware. The following
table provides an overview of further hardware-related information.
181
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
Tip
3. Assign hardware resources to the CAN and LIN function blocks that are used
in the signal chain. Assign the physically connected CAN channels to the
CAN function blocks as follows:
4. Configure the CAN and LIN function blocks according to the requirements
of your real-time hardware (e.g., the transceiver type).
Refer to:
§ Hardware Dependencies (CAN) (ConfigurationDesk I/O Function
Implementation Guide )
§ Hardware Dependencies (LIN) (ConfigurationDesk I/O Function
Implementation Guide )
5. Only if you use a MicroAutoBox III or MicroLabBox II platform: Delete the
PowerSupply device block from the signal chain.
Tip
6. Only if you use a MicroAutoBox III platform: Replace the bus simulation
containers:
1. In the Model Browser, right‑click CentralGatewayECU and select
Replace Model on the context menu.
2. In the Replace Model dialog, click Add model - Add model from file.
182
Bus Manager Tutorial May 2024
Building a Suitable Executable Application
Tip
Building a suitable offline Required licenses For building and executing a suitable offline simulation
simulation application application , the following licenses must be accessible:
§ VEOS base module license (VEOS_BASE)
§ VEOS CAN module license (VEOS_CAN)
§ VEOS LIN module license (VEOS_LIN)
183
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
Note
In VEOS, you can select a remote simulator to execute the offline simulation
application. When you do this, the BSC files must be compatible with the
selected simulator.
The BSC files are located in the Models folder of the BusManagerTutorial
project. The path to the folder depends on your Bus Manager variant:
§ Bus Manager in ConfigurationDesk:
%USERPROFILE%\Documents\dSPACE\ConfigurationDesk\
<ReleaseVersion> (<ProductVersion>)\Tutorials\BusManagerTutor
ial\Models
§ Bus Manager (stand-alone):
%USERPROFILE%\Documents\dSPACE\BusManager\
<ReleaseVersion> (<ProductVersion>)\Tutorials\BusManagerTutor
ial\Models
184
Bus Manager Tutorial May 2024
Step 1: How to Create a Project and an Experiment in ControlDesk
Objective To start working with ControlDesk, you need a project and an experiment.
4 Click Next.
The Define an Experiment page opens.
5 On the Define an Experiment page, name the experiment
Experiment_BusManagerTutorial.
6 Click Next.
The Add Platform / Device page opens.
7 On the Add Platform / Device page, select the registered platform, i.e.,
MicroAutoBox III, MicroLabBox II, SCALEXIO, or VEOS.
8 Click Next.
The Select Variable Description (A2L, DBC, SDF, ...) page opens.
9 On the Select Variable Description (A2L, DBC, SDF, ...) page, click Import
from file.
The Select Variable Description (A2L, DBC, SDF, ...) dialog opens.
10 In the dialog, navigate to the folder where you saved the real-time
application or offline simulation application, i.e.:
§ Real-time application: <ConfigurationDesk Documents
folder>/Tutorials/BusManagerTutorial/Lesson_ExpCD_Start/
Build Results
§ Offline simulation application:
§ VEOS on Windows: <VEOS Documents folder >
§ VEOS on Linux: ~/BusManagerTutorial
185
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
Interim result You created a project and an experiment in ControlDesk. For an easier
identification in the following steps of this lesson, you can now rename the
platforms. Continue with the next part.
186
Bus Manager Tutorial May 2024
Step 2: How to Prepare a Layout for Simulating LIN Communication
3 Click OK.
The dialog closes and the platform is renamed.
4 Rename the platform to which the Restbus_Model.trc file is loaded to
Restbus_Platform.
Result You created an experiment in ControlDesk and renamed the used platforms.
What's next In the next step, you will prepare a layout for simulating LIN communication.
187
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
Tip
188
Bus Manager Tutorial May 2024
Step 2: How to Prepare a Layout for Simulating LIN Communication
§ For function inports, the instrument provides elements that let you access
and change the function port values. The values of function outports are
read-only.
Interim result You generated a layout that provides a Bus Instrument (TX status type). You can
now add further instruments to the layout. Continue with the next part.
The regions of the instrument are derived from the bus simulation features
you added to the RX DoorLeftStatusIPdu and its ISignals.
189
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
190
Bus Manager Tutorial May 2024
Step 3: How to Simulate LIN Communication
What's next In the next step, you will simulate LIN communication.
Objective When you start online calibration, you can simulate the LIN communication that
you configured with the Bus Manager. You can use ControlDesk instruments to
access the LIN communication.
2 In the LIN Schedule Table Access region of the Bus Instrument (TX status
type), set the Source Switch to Substitute value.
The source of the Schedule Index function port is switched to the
Substitute Value, which is 0. The displayed Actual Value indicates that
this is the current function port value.
Because the value of the Schedule Index function port is set to 0,
no schedule table is selected and the entire LIN communication on the
191
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
The substitute value of the function port is set to False. However, the
displayed Actual Value indicates that this is not the current function port
value.
6 Set the Source Switch of the Enable function port to Substitute value.
The source of the function port value is switched from the model signal
to the substitute value, i.e., the current function port value is False. This
disables the communication controller of the DoorLeftEcu and the LIN
communication of the ECU stops. Therefore, the DoorLeftStatusIPdu is not
transmitted and it cannot be received by the BodyControlEcu. Nevertheless,
the transmission of the DoorRightStatusIPdu is not affected.
7 Set the Substitute Value of the Enable function port to True.
The communication controller of the DoorLeftEcu is enabled. The ECU
transmits the DoorLeftStatusIPdu, and the BodyControlEcu receives the
PDU.
8 In the Bus Instrument (TX type), go to Signals - ISignal Value Access -
DoorRightClosedISignal.
9 Set the Source Switch of the Value function port to Substitute value.
The substitute value of the ISignal is transmitted and received by the
BodyControlEcu.
10 In the PDU Enable Access region of the Bus Instrument (TX type), set the
Source Switch of the Enable function port to Substitute value.
In the PDU Enable Access region of the Bus Instrument (TX status type),
the Source Switch of the Enable function port of DoorRightStatusIPdu
(DoorRightEcu) changes accordingly because it is the same source switch.
192
Bus Manager Tutorial May 2024
Step 3: How to Simulate LIN Communication
Result You simulated the LIN communication that you configured with the Bus Manager
and accessed the communication via instruments.
What's next In the next step, you will prepare a layout to simulate, manipulate, and inspect
CAN communication.
193
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
194
Bus Manager Tutorial May 2024
Step 4: How to Prepare a Layout for Simulating, Manipulating, and Inspecting CAN Communication
Tip
195
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
Result You prepared a layout for simulating, manipulating, and inspecting CAN
communication.
What's next In the next step, you will simulate and manipulate CAN communication, and
inspect the effects on communication.
Objective When you start online calibration, you can simulate, manipulate, and inspect the
CAN communication that you configured with the Bus Manager. You can use
ControlDesk instruments to access the CAN communication.
196
Bus Manager Tutorial May 2024
Step 5: How to Simulate, Manipulate, and Inspect CAN Communication
can be received by the bus members. The ISignal Value Inspection region
indicates that the value of the SpeedISignal is 3.
197
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
2 In the ISignal Value Access region of the Bus Instrument (TX type), specify
the following settings:
§ Substitute Value: 5
§ Source Switch: Substitute value
The ISignal value is simulated with a value of 5. Because this value is
manipulated with the offset value, the transmitted and inspected ISignal
value is 8. This value is received by the CentralGatewayEcu.
198
Bus Manager Tutorial May 2024
Step 5: How to Simulate, Manipulate, and Inspect CAN Communication
199
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
After the number of sampling steps has elapsed, the Feature Switch is
automatically set to 0: None and the ISignal is transmitted with its simulated
value.
6 In the PDUs - Suspend Frame Transmission Manipulation region, set the
Substitute Value of Enable to 1: Permanently enabled.
The Suspend Frame Transmission feature is permanently enabled, i.e., the
GearboxInfoFrame and its included GearboxInfoIPdu are not transmitted
on the bus. Therefore, the values of the Counter, Time, and Delta Time
function ports in the PDU RX Status Inspection region stop.
200
Bus Manager Tutorial May 2024
Result of the Experimenting with ControlDesk Lesson
After the number of sampling steps has elapsed, the Feature Switch is
automatically set to 0: None and the ISignal is transmitted with its simulated
value.
Result You simulated, manipulated, and inspected the CAN communication that
you configured with the Bus Manager and accessed the communication via
instruments.
What's next With this step, you finished the lesson. For a summary of the lesson and for more
information, refer to Result of the Experimenting with ControlDesk Lesson on
page 201.
Result In this lesson, you learned the basic principles of experimenting with
ControlDesk:
§ The Bus Navigator provides a hardware-related access to the bus
communication you configured with the Bus Manager.
§ To access elements of the bus communication in ControlDesk, you must
have configured the access in the ConfigurationDesk application, i.e., you
201
May 2024 Bus Manager Tutorial
Additional Lesson: Experimenting with ControlDesk
must have added bus configuration features to elements and enabled test
automation support for function ports.
§ You can use bus-specific instruments and common ControlDesk instruments to
access elements of the bus communication, e.g., PDUs.
§ There are different types of bus instruments, e.g., to access simulated RX and
TX PDUs, manipulate PDUs, or inspect PDUs on the bus. Each bus-specific
instrument is tailor-made, i.e., its available elements are derived from the
configured bus communication.
Prepared result application For this lesson, no result application is available because you finished your work
in ControlDesk.
Further information For more information on working with the Bus Navigator, refer to ControlDesk
Bus Navigator .
Where to go from here You have finished the optional lesson on experimenting with ControlDesk.
§ To continue with a lesson that is relevant for your use scenario, refer to
Workflows for Using the Bus Manager on page 27.
§ For a summary of your working results, refer to Summary on page 203.
202
Bus Manager Tutorial May 2024
Summary
Summary
203
May 2024 Bus Manager Tutorial
Summary
204
Bus Manager Tutorial May 2024
ConfigurationDesk Glossary
ConfigurationDesk Glossary
Introduction The glossary briefly explains the most important expressions and naming
conventions used in the ConfigurationDesk documentation.
A........................................................................................................... 206
B........................................................................................................... 206
C........................................................................................................... 209
D........................................................................................................... 212
E........................................................................................................... 213
F............................................................................................................ 215
G........................................................................................................... 216
H........................................................................................................... 217
I............................................................................................................ 217
L............................................................................................................ 218
M.......................................................................................................... 219
N........................................................................................................... 222
O........................................................................................................... 222
P........................................................................................................... 222
R........................................................................................................... 223
S........................................................................................................... 224
T........................................................................................................... 226
U........................................................................................................... 227
V........................................................................................................... 227
205
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
W.......................................................................................................... 228
X........................................................................................................... 228
Basic PDU A general term used in the documentation to address all the PDUs
the Bus Manager supports, except for container IPDUs , multiplexed IPDUs ,
and secured IPDUs . Basic PDUs are represented by the or symbol in
tables and browsers. Unless stated otherwise, the Bus Manager provides the
same functionalities for all basic PDUs, such as ISignal IPDUs or NMPDUs.
206
Bus Manager Tutorial May 2024
B
nor access to the hardware. Behavior models can be modeled, for example,
in MATLAB®/Simulink® by using Simulink Blocksets and Toolboxes from the
MathWorks®.
You can add Simulink behavior models to a ConfigurationDesk application.
You can also add code container files containing a behavior model such as
Functional Mock-up Units , or Simulink implementation containers to a
ConfigurationDesk application.
BSC file A bus simulation container file that is generated with the
Bus Manager or the Ethernet Configuration Package. A BSC file that is
generated with the Bus Manager contains the configured bus communication
of one application process . A BSC file that is generated with the Ethernet
Configuration Package contains the configured bus communication of one
project.
Build Configuration table A pane that lets you create build configuration
sets and configure build settings, for example, build options, or the build and
download behavior.
Build Log Viewer A pane that displays messages and warnings during the
build process .
Build results The files that are created during the build process . Build
results are named after the ConfigurationDesk application and the application
process from which they originate. You can access the build results in the
Project Manager .
207
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
Bus access requests are automatically included in BSC files . To build a real-time
application , each bus access request must be assigned to a bus access.
Bus Access Requests table A pane that lets you access bus access
requests of a ConfigurationDesk application and assign them to bus
accesses .
Bus Configuration Ports table A pane that lets you access and configure
function ports and event ports of bus configurations .
Bus Configurations table A pane that lets you access and configure bus
configurations of a ConfigurationDesk application .
Bus Inspection Features table A pane that lets you access and configure
bus configuration features of a ConfigurationDesk application for inspection
purposes.
Bus Manager
§ Bus Manager in ConfigurationDesk
A ConfigurationDesk component that lets you configure bus communication
and implement it in real-time applications or generate bus simulation
containers .
§ Bus Manager (stand-alone)
A dSPACE software product based on ConfigurationDesk that lets you
configure bus communication and generate bus simulation containers.
Bus Manipulation Features table A pane that lets you access and
configure bus configuration features of a ConfigurationDesk application for
manipulation purposes.
208
Bus Manager Tutorial May 2024
C
Bus simulation container (BSC ) files that are generated with the Bus Manager
contain CAN and/or LIN communication, BSC files generated with the Ethernet
Configuration Package contain Ethernet communication.
Depending on the contained bus communication, BSC files can be used in
VEOS , in ConfigurationDesk, and/or in RTMaps:
§ In VEOS, they let you implement the bus communication in an offline
simulation application to perform SIL simulation on VEOS.
§ In ConfigurationDesk, they let you implement the bus communication in a
real-time application for SCALEXIO, MicroAutoBox III, or MicroLabBox II.
§ In RTMaps, they let you implement the bus communication in an
RTMaps‑based application for the AUTERA AutoBox, for example.
Bus Simulation Features table A pane that lets you access and configure
bus configuration features of a ConfigurationDesk application for simulation
purposes.
Buses Browser A pane that lets you display and manage the communication
matrices of a ConfigurationDesk application . For example, you can access
communication matrix elements and assign them to bus configurations. This
pane is available only if you work with the Bus Manager .
Cable harness A bundle of cables that provides the connection between the
I/O connectors of the real-time hardware and the external devices , such as the
ECUs to be tested. In ConfigurationDesk, it is represented by an external cable
harness component.
209
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
Configuration port A port that lets you create the signal chain for the
bus communication implemented in a Simulink behavior model. The following
configuration ports are available:
§ The configuration port of a Configuration Port block .
§ The Configuration port of a CAN, LIN, or FlexRay function block.
To create the signal chain for bus communication, the configuration port of a
Configuration Port block must be mapped to the Configuration port of a
CAN, LIN, or FlexRay function block.
210
Bus Manager Tutorial May 2024
C
Conflicts Viewer A pane that displays the configuration conflicts that exist
in the active ConfigurationDesk application . You can resolve most of the
conflicts directly in the Conflicts Viewer.
211
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
Custom code Custom source, header, and library files that must be compiled
and linked to real-time applications . Custom code files can be specified via
the Build Configuration Set options in the Build Configuration table . Do not
confuse custom code with user code , which is a term used in the Bus Manager
context.
Data outport A port that supplies data from behavior model signals to
ConfigurationDesk's function inports.
In a multimodel application, data outports also can be used to supply data to a
data inport associated to another behavior model (model communication ).
DBC file A Data Base Container file that describes CAN or LIN bus systems.
Because the DBC file format was primarily developed to describe CAN networks,
it does not support definitions of LIN masters and schedules.
Delayed event An event that triggers a task when the specified delay time
has expired after the execution of the source task started.
Device connector A structural element that lets you group device pins in a
hierarchy in the External Device Connectors table to represent the structure of
the real connector of your external device .
212
Bus Manager Tutorial May 2024
E
dSPACE Help The dSPACE online help that contains all the relevant user
documentation for dSPACE products. Via the F1 key or the Help button in the
dSPACE software you get context-sensitive help on the currently active context.
ECHX file An external cable harness file that contains the wiring
information for the external cable harness. The external cable harness is the
connection between the I/O connectors of the real-time hardware and the
devices to be tested, for example, ECUs.
ECU interfacing A generic term for methods and tools to read and/or
write individual ECU functions and variables of an ECU application . In
ECU interfacing scenarios, you can access ECU functions and variables for
213
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
EIC file An ECU interface container file that is generated with the ECU
Interface Manager and describes an ECU application that is configured for
ECU interfacing . You can import EIC files to ConfigurationDesk to perform
ECU interfacing with SCALEXIO systems , MicroAutoBox III, or MicroLabBox II
systems.
Event port An element of a function block . The event port can be mapped
to a runnable function port for modeling an asynchronous task.
214
Bus Manager Tutorial May 2024
F
multiplexer signal can determine that specific multiplexed signals are included in
the IPDU. However, with extended signal multiplexing, a multiplexed signal itself
can serve as a multiplexer signal.
External Device Browser A pane that lets you display and manage the
device topology of your active ConfigurationDesk application .
External Device Configuration table A pane that lets you access and
configure the most important properties of device topology elements via table.
External Device Connectors table A pane that lets you specify the
representation of the physical connectors of your external device including
the device pin assignment.
FIBEX file An XML file according the ASAM MCD-2 NET standard (also
known as Field Bus Exchange Format) defined by ASAM. The file can describe
more than one bus system (e.g., CAN, LIN, FlexRay). It is used for data exchange
between different tools that work with message-oriented bus communication.
Find Results Viewer A pane that displays the results of searches you
performed via the Find command.
FMU file A Functional Mock-up Unit file that describes and implements the
functionality of a model. It is an archive file with the file name extension FMU.
The FMU file contains:
§ The functionality defined as a set of C functions provided either in source or in
binary form.
§ The model description file (modelDescription.xml) with the description of
the interface data.
§ Additional resources needed for simulation.
You can add an FMU file to the model topology just like adding a Simulink
model based on an SLX file .
215
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
CAN frames and LIN frames can contain only one PDU. To exchange a frame via
bus channels, a frame triggering is needed.
Function inport A function port that inputs the values from the behavior
model to the function block to be processed by the function.
Global working view The default working view that always contains all
signal chain elements.
216
Bus Manager Tutorial May 2024
H
Hardware Resource Browser A pane that lets you display and manage all
the hardware components of the hardware topology that is contained in your
active ConfigurationDesk application in a hierarchical structure.
HTFX file A file containing the hardware topology after an explicit export.
It provides information on the components of the system and also on the
channel properties, such as board and channel types and slot numbers.
I/O event An asynchronous event triggered by I/O functions. You can use
I/O events to trigger tasks in your application process asynchronously. You can
assign the events to the tasks via drag & drop, via the Properties Browser if you
have selected a task, or via the Assign Event command from the context menu
of the relevant task.
Interface model A temporary Simulink model that contains blocks from the
Model Interface Blockset. ConfigurationDesk initiates the creation of an interface
model in Simulink. You can copy the blocks with their identities from the
interface model and paste them into an existing Simulink behavior model.
Interpreter A pane that lets you run Python scripts and execute line-based
commands.
Inverse model port block A model port block that has the same
configuration (same name, same port groups, and port names) but the inverse
data direction as the original model port block from which it was created.
217
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
LDF file A LIN description file that describes networks of the LIN bus system
according to the LIN standard.
LIN schedule table A table defined for a LIN master that contains the
transmission sequence of frame headers on a LIN bus. For each LIN master,
several LIN schedule tables can be defined.
Logical signal An element of a function block that combines all the signal
ports which belong together to provide the functionality of the signal. Each
logical signal causes one or more channel requests . Channel requests are
available after you have assigned a channel set to the logical signal.
218
Bus Manager Tutorial May 2024
M
Logical signal chain A term that describes the logical path of a signal
between an external device and the behavior model . The main elements
of the logical signal chain are represented by different graphical blocks (device
blocks , function blocks and model port blocks ). Every block has ports to
provide the mapping to neighboring blocks.
In the documentation, usually the short form 'signal chain' is used instead.
MDL file A Simulink model file that contains the behavior model . You can
add an MDL file to your ConfigurationDesk application .
As of MATLAB® R2012a, the file name extension for the Simulink model file has
been changed from MDL to SLX by The MathWorks®.
Message Viewer A pane that displays a history of all error and warning
messages that occur during work with ConfigurationDesk.
Model analysis A process that analyzes the model to determine the interface
of a behavior model . You can select one of the following commands:
§ Analyze Simulink Model (Model Interface Only)
Analyzes the interface of a behavior model. The model topology of your
active ConfigurationDesk application is updated with the properties of the
analyzed behavior model.
§ Analyze Simulink Model (Including Task Information)
Analyzes the model interface and the elements of the behavior model
that are relevant for the task configuration. The task configuration in
ConfigurationDesk is then updated accordingly.
Model Browser A pane that lets you display and access the model
topology of an active ConfigurationDesk application . The Model Browser
provides access to all the model port blocks available in the behavior
models that are linked to a ConfigurationDesk application. The model
elements are displayed in a hierarchy, starting with the model roots. Below the
model root, all the subsystems containing model port blocks are displayed as well
as the associated model port blocks.
219
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
Model Communication Browser A pane that lets you open and browse
working views like the Signal Chain Browser , but shows only the Data
Outport and Data Inport blocks and the mapping lines between them.
Model port An element of a model port block . Model ports provide the
interface to the function ports and to other model ports (in multimodel
applications ).
These are the types of model ports:
§ Data inport
§ Data outport
§ Runnable function port
§ Configuration port
220
Bus Manager Tutorial May 2024
M
Model-Function Mapping Browser A pane that lets you create and update
signal chains for Simulink behavior models . It directly connects them to I/O
functionality in ConfigurationDesk.
MTFX file A file containing a model topology when explicitly exported. The
file contains information on the interface to the behavior model , such as the
implemented model port blocks including their subsystems and where they are
used in the model.
221
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
OSA file An offline simulation application file that is built with VEOS to
perform SIL simulation .
Parent port A port that you can use to map multiple function
ports and model ports . All child ports with the same name are mapped.
ConfigurationDesk enforces the mapping rules and allows only mapping
lines that agree with them.
Physical signal chain A term that describes the electrical wiring of external
devices (ECU and loads) to the I/O boards of the real-time hardware. The
physical signal chain includes the external cable harness , the pinouts of the
connectors and the internal cable harness.
222
Bus Manager Tutorial May 2024
R
Pins and External Wiring table A pane that lets you access the external
wiring information
Processing Resource Assignment table A pane that lets you configure and
inspect the processing resources in an executable application . This table is
useful especially for multi-processing-unit applications .
Properties Browser A pane that lets you access the properties of selected
elements.
223
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
RTA file A real-time application file. An RTA file is an executable object file
for processor boards. It is created during the build process . After the build
process it can be downloaded to the real-time hardware.
224
Bus Manager Tutorial May 2024
S
Signal chain A term used in the documentation as a short form for logical
signal chain . Do not confuse it with the physical signal chain .
Signal Chain Browser A pane that lets you open and browse working
views such as the Global working view or user-defined working views.
Signal reference port A signal port that represents a connection point for
the reference potential of inports , outports and bidirectional ports . For
example: With differential signals, this is a reference signal, with single-ended
signals, it is the ground signal (GND).
Simulink model interface The part of the model interface that is available
in the connected Simulink behavior model.
SLX file A Simulink model file that contains the behavior model . You can
add an SLX file to your ConfigurationDesk application .
As of MATLAB® R2012a, the file name extension for the Simulink model file has
been changed from MDL to SLX by The MathWorks®.
225
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
triggered on every fourth execution of the base rate task via a software event.
Software events are available in ConfigurationDesk after model analysis .
Source Code Editor A Python editor that lets you open and edit Python
scripts that you open from or create in a ConfigurationDesk project in a window
in the working area . You cannot run a Python script in a Source Code Editor
window. To run a Python script you can use the Run Script command in the
Interpreter or on the Automation ribbon or the Run context menu command
in the Project Manager .
Table A type of pane that offers access to a specific subset of elements and
properties of the active ConfigurationDesk application in rows and columns.
Task Configuration table A pane that lets you configure the tasks of an
executable application .
Temporary working view A working view that can be used for drafting a
signal chain segment, like a notepad.
Timer event A periodic event with a sample rate and an optional offset.
226
Bus Manager Tutorial May 2024
U
TRC file A variable description file that contains all variables (signals and
parameters) which can be accessed via the experiment software. It is created
during the build process .
User code A term used in the Bus Manager context. User code is C
code or C++ code containing user-specific algorithms. The algorithms provide
additional functionality to the Bus Manager, such as calculating checksum values
or generating authentication information for secured IPDUs . To implement
user code in executable applications , you have to use functions of the
Bus Custom Code interface and add the user code implementation to
ConfigurationDesk. Do not confuse user code with custom code .
VEOS Player A component of VEOS . The VEOS Player is the graphical user
interface for VEOS on Windows. For example, you can use the VEOS Player
to import bus simulation containers to VEOS, integrate the respective bus
communication in an offline simulation application , and load the application
to VEOS.
227
May 2024 Bus Manager Tutorial
ConfigurationDesk Glossary
VSET file A file that contains all view sets and their settings from the current
ConfigurationDesk installation. A VSET file can be exported and imported via the
View Sets page of the Customize dialog.
Working View Manager A pane that lets you manage the working
views of the active ConfigurationDesk application . You can use the
Working View Manager for creating, renaming, and deleting working views,
and also to open a working view in the Signal Chain Browser or the Model
Communication Browser .
XLSX file A Microsoft Excel™ file format that is used for the following
purposes:
§ Creating or configuring a device topology outside of ConfigurationDesk.
§ Exporting the wiring information for the external cable harness .
228
Bus Manager Tutorial May 2024
Index
O
Index
B overview
behavior model lessons 25
generating Simulink model interface 157 workflows 24
introduction 17
mapping ports 99 R
replacing 157
real-time application
synchronizing model interfaces 157
building 117
working without 147
workflows 40
bus configuration features
for inspection 127
for manipulation 135 S
for simulation 77 simulating bus communication
introduction 16 configuring 77
bus configurations 15 in this tutorial 21
Bus Manager variants 11 use scenario 12
bus simulation containers
generating 111
T
workflows 28
tutorial
example 19
C licenses and tools 25
Common Program Data folder 8, 210 project and applications 23
communication matrix workflows and lessons 22
conflicts 70
in the ConfigurationDesk application 68
W
in this tutorial 19
introduction 15 workflows
conflicts overview 24
communication matrix 70
ControlDesk 179
D
Documents folder 8, 213
E
example
of this tutorial 19
F
feature switch 141
I
inspecting bus communication
configuring 127
in this tutorial 21
use scenario 12
L
lessons
overview 25
Local Program Data folder 8, 218
M
manipulating bus communication
configuring 135
feature switch 141
in this tutorial 21
use scenario 12
229
May 2024 Bus Manager Tutorial
Index
230
Bus Manager Tutorial May 2024