Notes for Working on TargetLink® Models

TargetLink models can also be edited using MoRe. Some actions are specialized for TargetLink, i.e. they may behave differently for TargetLink parts of the model compared to pure Simulink® parts of the model. These special features are explained below. In addition, some actions have limitations on TargetLink models, which is also explained below.

Contents

Use of TargetLink Port Blocks

Many actions of MoRe create port blocks. For certain subsystems within a TargetLink subsystem, the Modeling Guidelines for dSPACE recommend the use of TargetLink port blocks instead of normal Simulink port blocks. MoRe complies with the guidelines and uses TargetLink port blocks if:

In addition to the guideline-compliant behavior described above, TargetLink port blocks are used if the subsystem already contains this type of blocks.

Consistency of TargetLink Simulation Frame

The TargetLink simulation frame consists of the two technical subsystems above the TargetLink subsystem that are required for the correct SIL/PIL simulation of the TargetLink subsystem.

These layers must not be edited manually in the editor, but TargetLink itself uses callbacks to ensure that the simulation frame remains consistent. For example, if you add a TargetLink port block to a TargetLink subsystem, the corresponding port blocks are automatically added to the simulation frame and connected correctly.

The actions of MoRe also ensure the consistency of the simulation frame. MoRe never edits the simulation frame directly, but calls the corresponding TargetLink function, which updates the simulation frame. This is only done when necessary, i.e. when TargetLink port blocks have been added to or removed from the TargetLink subsystem. If MoRe actions route signals into or out of the simulation frame, the signals within the frame are also created automatically by the corresponding TargetLink function.

Limitations When Working with TargetLink Models

Working within a TargetLink subsystem is 100% supported by MoRe. When working beyond the boundaries of a TargetLink subsystem, there are some limitations that are explained below: