Throughout the previous chapters, we have set up our BeagleBoard and the cross-platform development environment at our Windows 7 PC.
In this chapter, we will look at automatic code generation by MATLAB/Simulink for rapid prototyping. Automatic code generation and visual programming are fundamentally changing the way engineers work. In this chapter, instead of typing lines of C code manually, we develop our applications either in high-level scripts or in graphical programming and generate executable standalone applications.
This chapter serves as the introduction to automatic C code generation, graphical programming, and modular raid prototyping. The following two approaches of automatic code generation will be explored:
We will first demonstrate how to generate C code and BeagleBoard executables from MATLAB scripts.
Then we will develop a program for playing music in Simulink by graphically manipulating function blocks rather than coding textually. And then...