Building a Suitable Executable Application

Overview

To work through this lesson, you have to build a suitable executable application. The requirements for the application depend on your simulation platform.

Simulation Platform

Required Application

Refer to …

  • SCALEXIO

  • MicroAutoBox III

  • MicroLabBox II

Real-time application

Building a suitable real-time application

VEOS

Offline simulation application

Building a suitable offline simulation application


Building a suitable real-time application

Preconditions concerning real-time hardware

Your real-time hardware 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.

Real-Time Hardware

Refer to …

SCALEXIO

DS2671 Bus Board

Signal Mapping of the DS2671 Bus Board

DS2672 Bus Module

Signal Mapping of the DS2672 Bus Module

DS6301 CAN/LIN Board

Signal Mapping of the DS6301 CAN/LIN Board

DS6302 CAN/LIN Board

Signal Mapping of the DS6302 CAN/LIN Board

DS6341 CAN Board

Signal Mapping of the DS6341 CAN Board

DS6344 CAN Board

Signal Mapping of the DS6344 CAN Board

DS6345 CAN Board

Signal Mapping of the DS6345 CAN Board

MicroAutoBox III

DS1511/DS1511B1 Multi-I/O Board

DS1511 ZIF I/O Connector Pinout

DS1513 Multi-I/O Board

DS1513 ZIF I/O Connector Pinout

DS4342 CAN FD Interface Module

DS1514 ZIF I/O Connector Pinout (DS4342)

MicroLabBox II

DS1303 Multi‑I/O Board

Required licenses

To build a suitable real-time application, the following licenses must be accessible:

  • ConfigurationDesk - CAN Module license (CFD_I_CAN)

  • ConfigurationDesk - LIN Module license (CFD_I_LIN)

Refer to How to Identify Accessible Licenses.

Building the real-time application
  1. Activate the Lesson_ExpCD_Start application.

    Refer to How to Activate an Application in the BusManagerTutorial Project.

  2. Create or import a hardware topology that matches your real-time hardware.

    Tip

    You can automatically create a matching hardware topology by registering real-time hardware in ConfigurationDesk or by scanning hardware that is already registered. Refer to Basics on Hardware Topologies.

  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:

    CAN Channel

    CAN Function Block

    Channel 1

    CANBodyCluster_CentralGatewayECU

    Channel 2

    CANBodyCluster_Restbus

    Channel 3

    CANPowertrainCluster_CentralGatewayECU

    Channel 4

    CANPowertrainCluster_Restbus

  4. Configure the CAN and LIN function blocks according to the requirements of your real-time hardware (e.g., the transceiver type).

    Refer to:

  5. Only if you use a MicroAutoBox III or MicroLabBox II platform: Delete the PowerSupply device block from the signal chain.

    Tip

    With these platforms, no external power supply is required for LIN communication and you therefore do not need the PowerSupply device block.

  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.

    3. In the Select an Artifact dialog, select CentralGatewayECU_32‑bit.bsc and click Confirm Selection.

    4. In the Replace Model dialog, click OK.

      The bus simulation container is replaced. However, the displayed name does not change. You can check the replacement via Model location in the Properties Browser.

      Tip

      The displayed name in the Model Browser does not change because for BSC files with the <model name>_xx-bit naming scheme, the _xx-bit suffix is omitted in the ConfigurationDesk application.

    5. Repeat the steps above and replace Restbus_Model with Restbus_Model_32‑bit.bsc

  7. Select the Build view set.

  8. In the Build Configuration table, select Global Build Settings.

  9. Select the Download real-time application after build and Unload a loaded application checkboxes.

  10. Clear the Load to flash memory and Start real‑time application checkboxes.

  11. Build the real-time application.


Building a suitable offline simulation application

Required licenses

For building and executing a suitable offline simulation 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)

Required BSC files

You have to integrate the CentralGatewayECU and Restbus_Model BSC files into the offline simulation application. However, the specific required BSC files depend on the operating system of the used VEOS platform:

Operating System of the Used VEOS Platform

Compatible BSC Files

  • Linux 32‑bit

  • Windows 32‑bit or 64‑bit

  • CentralGatewayECU_32‑bit.bsc

  • Restbus_Model_32‑bit.bsc

Linux 64‑bit

  • CentralGatewayECU_64‑bit.bsc

  • Restbus_Model_64‑bit.bsc

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\BusManagerTutorial\Models

  • Bus Manager (stand-alone):

    %USERPROFILE%\Documents\dSPACE\BusManager\
    <ReleaseVersion> (<ProductVersion>)\Tutorials\BusManagerTutorial\Models

Building the offline simulation application

If you use VEOS on Windows to build the offline simulation application, you can use the VEOS Player or the VEOS command line interface to do so. If you use VEOS on Linux, you can only use the VEOS command line interface.

To build the offline simulation application, do the following:

  1. Only VEOS on Linux: Add a new folder to your home directory and name it BusManagerTutorial.

  2. Build an offline simulation application by using the VEOS Player or the VEOS command line interface:

    • Import the CentralGatewayECU and Restbus_Model BSC files that are compatible with the used VEOS platform.

    • Name the offline simulation application Lesson_ExpCD_Start.osa.

    • Save the OSA file to:

    Refer to How to Build an Offline Simulation Application.

  3. Load the OSA file to the VEOS platform without starting the offline simulation application.

    Refer to How to Load and Run an Offline Simulation Application.


Redaction