Modelling Guidelines
Best Practices for TargetLink Models:
- More productivity in the development process
- Seamless transition from control design to software development
- Tips on efficient code, MISRA conformity, transparent models, and many others
Boost Development Productivity
New modelling guidelines for TargetLink, produced jointly with a German OEM, aim to optimise the generation of efficient C code from control algorithms. Currently, models often require reworking at the interface between control design and software development. The new guidelines cut out a lot of this extra work and boost development productivity.
Contents of the Modelling Guidelines
The TargetLink Modeling Guidelines comprise around 150 rules, covering the following aspects:
- Transparent controller layout
Like coding guidelines at software level, modeling rules enhance transparency and readability at model level
- Suitable language subset
The defined subset of language elements from MATLAB/Simulink/Stateflow allows optimum implementation by TargetLink.
- Optimum fixed-point code
The rules provide a guide to converting models into highly efficient fixed-point code, complementing the features (autoscaling, etc.) that TargetLink already contains.
- Code generation options
The guidelines describe optimisation settings for handling variables and functions to generate efficient code.
- MISRA compliance
The rules help to ensure that the generated code will have maximum compliance with MISRA C.