Difference between revisions of "HANcoder/Examples/Adding a customized block"

From OpenMBD
Jump to: navigation, search
Line 1: Line 1:
 
This is a step-by-step guide for creating a custom block in MatLAB/Simulink and how to call custom functions written in the C programming language.<br>
 
This is a step-by-step guide for creating a custom block in MatLAB/Simulink and how to call custom functions written in the C programming language.<br>
 
This guide assumes that [[downloads/HANcoder|HANcoder]] has been downloaded and installed successfully.<br>
 
This guide assumes that [[downloads/HANcoder|HANcoder]] has been downloaded and installed successfully.<br>
The guide is based on an example: a Signal Tower
+
<br>
[[File:Example.jpg]]
+
The guide is based on an example: a Signal Tower. The signal tower consists of four layers with two RGB LEDs per layer. Each color can be assigned a value between 0 and 255.<br>
 +
The resulting custom block will look like this:
 +
[[File:sigal_tower_block_final_result.png]]
  
 
* Part 1: [[Matlab/Simulink files]]
 
* Part 1: [[Matlab/Simulink files]]

Revision as of 10:41, 28 February 2019

This is a step-by-step guide for creating a custom block in MatLAB/Simulink and how to call custom functions written in the C programming language.
This guide assumes that HANcoder has been downloaded and installed successfully.

The guide is based on an example: a Signal Tower. The signal tower consists of four layers with two RGB LEDs per layer. Each color can be assigned a value between 0 and 255.
The resulting custom block will look like this: File:Sigal tower block final result.png