For a better experience on dSPACE.com, enable JavaScript in your browser. Thank you!

Control and Software Design

Designing Controller Models Directly with TargetLink

The TargetLink Block Library

The Simulink® block library is very powerful in simulation tasks, providing all necessary specification features. When it comes to code generation, however, more information is needed for each block. For example, the blocks need additional capabilities for fixed-point simulation. That is why TargetLink comes with the TargetLink Block Library which offers a block for each supported Simulink block.   

TargetLink block dialog for entering implementation-specific information such as the data type, variable name, scaling data, etc..

The TargetLink blocks significantly enhance the functionality of the supported Simulink blocks and have an extended dialog that allows you to enter the implementation-specific information necessary for code generation. Each block also provides a means of data logging and overflow detection. A special routine automatically prepares Simulink models for code generation with TargetLink by enhancing the Simulink blocks to TargetLink blocks. As a result, the model is ready for production code generation and on-target bypassing. 

The Property Manager for handling models with numerous blocks.

If you need to change the properties of a large model, TargetLink’s graphically oriented Property Manager is a quicker alternative to changing the properties in the block dialogs manually. It displays the properties of TargetLink blocks and Stateflow objects in your model, and lets you view, filter, and modify several properties simultaneously.  

TargetLink Blockset (stand-alone)

Function development (including rapid control prototyping) with the TargetLink Blockset (stand-alone) and software development with a full TargetLink installation.

The TargetLink Blockset (stand-alone) is a license-free version of the TargetLink blockset which allows function developers to design their controller models directly with TargetLink. It can be used on any computer that has MATLAB/Simulink installed. With the TargetLink Blockset (stand-alone), Target- Link models can be exchanged freely without the need for extra TargetLink licenses. Its features include:

  • Free TargetLink model exchange in workgroups
  • Controller design and simulation in Simulink
  • Prototyping with MathWorks® Simulink Coder™

You can use the free TargetLink Blockset (stand-alone) to design and prototype your controller without a full TargetLink installation. The TargetLink blocks can be used for rapid control prototyping on dSPACE hardware. The TargetLink Blockset (stand-alone) allows you to use the same models for rapid control prototyping and production code generation. Development iterations are thus easier to perform and less prone to error.

Software Design with the TargetLink Data Dictionary

To specify the properties of the code to be generated, Data Dictionary objects are referenced from block diagrams of the model, in this case for a specific variable.

The file-based TargetLink Data Dictionary is a central data container holding the relevant information for a model’s design, code generation, and implementation on an ECU. Data dictionary objects can be referenced from TargetLink models. You can define and manage variables and their properties, and you can specify structured data types and use them for variable declarations. Scaling formulas can be entered and used to uniformly scale fixed-point signals and parameters in the model. You can import and export standardized or proprietary data and share the data with the calibration system.  

With the TargetLink Data Dictionary, the data and the model are kept separate. The Data Dictionary Manager provides the user interface to the Data Dictionary for convenient administration of the data. Various import/export formats are supported. An API gives you full access to the TargetLink Data Dictionary.

The TargetLink Data Dictionary is perfect for defining and handling project-related code specifics, even for workgroups. It provides access to additional information such as specifics on C modules, function calls, tasks, variable classes, data variants and so forth. The data is presented in a well-organized tree and can also be accessed via an application programming interface (API). The Data Dictionary also supports common import and export formats, so that existing and proven definitions, for example, a calibration file, can be used as templates.  

TargetLink users can extend the TargetLink Data Dictionary with dSPACE SYNECT, the comprehensive, client-server-based central data management software with included control over variants and versions.

Modular Development and Code Generation

TargetLink lets you easily handle large models and software

integration with dedicated mechanisms:

  • Incremental code generation
  • Model referencing
  • Simplified software integration
  • Code generation straight from the TargetLink Data Dictionary
  • Diff&Merge mechanisms via TargetLink Data Dictionary
  • Coupling with SYNECT

Further Information