DSPACE TargetLink
In Mai 2008 dSPACE published the latest version 2.1 of the "Modeling Guidelines for MATLAB/Simulink/Stateflow and TargetLink". The guidelines address best practices for TargetLink models.
The Model Examiner V1.4 especially focuses on the adoption of a safe language subset for code generation wth TargetLink.
Download list of dSPACE TargetLink checks in MXAM V1.4
dSPACE TargetLink Checks in MXAM 1.4
| No. | Rule | Guideline Title | Repair |
|---|---|---|---|
| 1 | 2.1.1 | Block Priorities | yes |
| 2 | 2.1.5 | Bus Capable Blocks | |
| 3 | 2.3.2 | Limitations with Regard to the Dead Zone Block | |
| 4 | 2.4.2 | Limitations with Regard to the Discrete-Time Integrator Block | |
| 5 | 2.5.2 | Limitations with Regard to the Relational Operator and … | |
| 6 | 2.6.2 | Limitations with Regard to the Look-up Table (n-D) and … | |
| 7 | 2.7.2 | Limitations with Regard to Operand Numbers for the Product Block | |
| 8 | 2.7.3 | Limitations with Regard to Parameters for the Product Block | |
| 9 | 2.7.4 | Limitations with Regard to the Sum Block | yes |
| 10 | 2.7.5 | Restrictions with Regard to the Math Function Block | yes |
| 11 | 2.10.2 | Use of the Switch Case Block | yes |
| 12 | 2.10.3 | Duplicate Inports | |
| 13 | 2.11.2 | Use of the Data Type Conversion Block | |
| 14 | 2.12.4 | Restrictions with Regard to the Merge Block | yes |
| 15 | 2.12.5 | No Cascades of Merge Blocks prior to TargetLink 2.1.6 | |
| 16 | 2.12.7 | Use of the Multiport Switch Block | |
| 17 | 2.12.8 | Restrictions with Regard to the Multiport Switch Block | yes |
| 18 | 2.12.9 | Limitations with regard to the Bus Creator Block | yes |
| 19 | 2.16.1 | Initialization of a Stateflow Chart | yes |
| 20 | 2.16.2 | Reserved Names in Stateflow | |
| 21 | 2.16.3 | Permitted Dimensionality at the Stateflow Chart Interface | |
| 22 | 2.16.4 | Usage of Constants | |
| 23 | 2.16.5 | Permitted Data Types at the Stateflow Chart Interface | yes |
| 24 | 2.16.6 | Transition Actions | |
| 25 | 2.16.11 | MATLAB Functionality | |
| 26 | 2.16.12 | Alias Types | |
| 27 | 2.16.14 | Arrays at Interfaces of Graphical Functions | |
| 28 | 2.16.16 | Data on the Level of Stateflow Boxes | |
| 29 | 2.16.17 | Embedded MATLAB Functionality | |
| 30 | 2.16.18 | Complex Expressions for the Size Property | |
| 31 | 2.16.19 | Simulink-Stateflow Inheritance | |
| 32 | 4.2 | Reserved System Header File Names | |
| 33 | 5.2 | Comments in Block Properties | |
| 34 | 7.2 | Diagnostics Settings | yes |
| 35 | 7.3 | Advanced Settings | yes |
| 36 | 8.3 | Data Types for Signal Buses at the TargetLink-Simulink Interface | |
| 37 | 8.5 | Avoidance of Saturation in Integer Arithmetic | yes |
| 38 | 8.6 | Avoidance of Rounding Operations | |
| 39 | 8.13 | Use of Data Types for Multiport Switch Blocks |







