More Information about TargetLink

TargetLink is more than a code generator for Simulink. It is a tool for professional software developers who need and want control over the generated code. They get the last bit of performance out of the model, optimize the code for specific µCs, and achieve significant savings thanks to TargetLink, because an upgrade to the next larger controller can be postponed thanks to software optimization with TargetLink.

Variable class specification for a Gain block.

Highly Configurable Code

TargetLink code is easily readable and includes helpful comments. Comprehensive configuration options give you full control over variables, functions, and file naming, as well as the flexibility to partition the code into functions and files to keep the structure logical and manageable.

For the integration of external code, TargetLink offers a wide variety of specification options, e.g., on the block diagram level for easily interfacing with external code, such as device drivers, or with any other routine written in C or assembler. Company-specific programming style guides can be easily applied via TargetLink´s flexible code output formatting, e.g., by using XML configuration files or XSL style sheets.

Comprehensive TargetLink API

TargetLink can be easily integrated into existing development environments, because it comes with a comprehensive and fully documented application programming interface (API). This grants full access to all TargetLink properties and settings and allows for processes to be automated while at the same time providing options for interventions in the individual process phases. For example, hook functions allow for user tasks to be performed at all stages of the build process.

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.

Software Design with the TargetLink Data Dictionary

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.     

ASAM MCD-2 MC file generation for calibration purposes.

Calibration File Generation

Another important requirement for a code generator is to have close links with calibration systems. ECU code must be prepared for parameter fine-tuning by making calibratable or measurable variables accessible to a calibration system. TargetLink supports the generation of the standardized ASAM MCD-2 MC file format (formerly ASAP2) via the Data Dictionary to make the variables and parameters available for ECU calibration. All major calibration tools support this standard. Because the C code and the ASAM MCD-2 MC file are generated with the same data basis, they are always consistent. This eliminates another error source, and streamlines the development process. TargetLink offers several predefined variable classes for calibratable and measurable variables. You can also specify your own classes, ensuring that each class holds suitable attributes for calibration and/or measurement.  

Documentation Generated Automatically

TargetLink not only generates code, it also documents what it does – keeping perfect consistency with the model and the code. An automatically generated document provides information about function interfaces and global variables, and a list of all measurable and adjustable variables, scaling parameters, code generator options and much more.  

The documentation is easy to generate – at the click of a button.

Screenshots of models, subsystems, and simulation plots can also be included. Links to the generated C code are provided. You can specify the documentation you require, for example, the level of detail. Documentation can be generated in the HTML, RTF (for word processing) and PDF formats. 

Function development (including rapid control prototyping) in the TargetLink Modeling Only operation mode and software development in the Full-Featured operation mode.   

‘Modeling Only’ and ‘Full-Featured’ Operation Modes

As of TargetLink 5.0, TargetLink lets you switch between two operation modes: Modeling Only and Full-Featured. The Modeling Only operation mode (not licence-protected) lets function developers prepare and design a model without generating production code for it. In the course of development, this model can be exchanged with software developers using the Full-Featured operation mode. Users of the Full-Featured operation mode can generate production code for the model. As a result, different groups of developers can work on the same model but use different operation modes. Therefore, using both operation modes lets you ideally connect the prototyping and the production code generation development phases, and development iterations are thus easier to perform and less prone to error. 

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

More Information about TargetLink

TargetLink Tool Chain Integration

Drive innovation forward. Always on the pulse of technology development.

Subscribe to our expert knowledge. Learn from our successful project examples. Keep up to date on simulation and validation. Subscribe to/manage dSPACE direct and aerospace & defense now.

Enable form call

At this point, an input form from Click Dimensions is integrated. This enables us to process your newsletter subscription. The form is currently hidden due to your privacy settings for our website.

External input form

By activating the input form, you consent to personal data being transmitted to Click Dimensions within the EU, in the USA, Canada or Australia. More on this in our privacy policy.