From OpenMBD
Jump to: navigation, search

HANcoder is a real-time code generation target for MATLAB Simulink®. HANcoder makes use of both automotive grade series production controllers as well as some low cost development boards. Currently two controllers from Rexroth are supported, an ECU from ProDrive and three boards from Olimex.

The controllers are already serving as rapid prototyping controllers in several projects. The robustness and reliability of the controllers which are automotive series products is extremely high. They can serve for production purposes as well. This provides HANcoder with a unique feature: it is currently the single known open-source solution for control prototyping and production code generation available for automotive applications.

Targets from HANcoder represent itself as a library in Simulink®. By using blocks from this library, the user can connect a MATLAB Simulink® model to inputs and outputs of the controller. The inputs and outputs are represented by dedicated Simulink® blocks. The behavior of the inputs and outputs can be changed by adapting the appropriate block mask parameters. System configuration can also be easily performed by system configuration blocks.

Generating code is as easy as a click of a button. The fully automated process of code generation results in a so-called hex file or S-record file. This file contains the executable code. It can be flashed into the target controller hardware. After flashing, the controller will automatically execute the algorithm when it is switched on.

The HANcoder library currently contains the following targets:

HANcoder STM32 Target Bodas Rexroth RC30 Target Prodrive GCU Target
STM32 TARGET.png Bodas RC28 14.png ProdriveGCU.png