Control and Software Design

Designing Controller Models Directly with TargetLink

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. 

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.   

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

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

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. 

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.     

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

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 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.