Four Steps to Production Code

Browse product by name...

Automatic production code generation with TargetLink®

Start with the Controller Model
The basis for automatic production code generation with TargetLink is provided by block diagrams and state diagrams that were modeled in Simulink® and Stateflow®, and successfully validated in a function prototyping phase. For production code generation, the Simulink blocks are given additional input options for further parameters. These include specifications for scaling and the definition of the variable class.

Simulate on the Host PC
You can test the ECU design and its parameterization by simulating it on the host PC. TargetLink saves the signal behaviors of each block during simulation.
After that, you can scale the variables. This is done either manually or automatically, as desired. The minimums and maximums of the signal behaviors previously captured are used as the reference.


Test the Production Code on the Host PC
You can now generate the production code and test it on your host PC. You can analyze the deviations between fixed-point and floating-point arithmetic, and test a variety of search algorithms for look-up tables. TargetLink's numerous testing and analysis options give you comprehensive support in all these tasks.



Test the Production Code on the Target Processor
To test the production code on the target processor, you simply transfer it to an evaluation module. This test also gives you precise information on memory requirement and actual execution time. In addition, the test shows up compiling or computing errors on the target processor at this early stage. You can now be absolutely sure that the generated production code fulfills the requirements regarding precision, execution time, and memory usage.