Version 2 (modified by ismael, 15 years ago) |
---|
Creating Modules from MATLAB/Simulink
ALOE signal processing modules code can be automatically generated from MATLAB/Simulink. With this high-level simulation tool you can test the functionality of your module and synthesize C code compatible with ALOE. In addition, a Workshop Target has been created in order to automatically generate the interface to the ALOE SW-API.
The following guide explains with an example how to create signal processing modules from MATLAB/Simulink:
Requirements
1) MATLAB 2008/2009 and Simulink
2) Linux with ALOE 1.2 or greater
Installation
To be able to generate ALOE modules from MATLAB, you need to configure MATLAB and ALOE.
MATLAB
1) Copy ALOE target files to Matlab's path:
%MATLAB%/rtw/c/aloe
ALOE Simulink target list of files:
- lnx_callback.m, lnx_install_dir.m, aloe_main.c, lnx_unix.tmf, make_lnx.m, aloe.tlc, rtwmakecfg.m
This files are packed in the file: aloe_simulink.zip
2) Start Matlab and add the new directory to Matlab's path (File->Set path...)
ALOE
To compile Matlab models from on the Linux machine, we have to copy Matlab’s libraries and headers to Linux. This is as easy as copying the directory structure from the Matlab directory to the linux machine.
We recomend to create a directory on Linux
~/matlab-files/
Copy there the following directories from the Matlab installation path:
%MATLAB%/extern %MATLAB%/rtw %MATLAB%/simulink %MATLAB%/toolbox
The ALOE target directory under rtw/c/ must also be copied.
The amount of files to copy may be quite big (depending on the number of toolboxes you have installed). Obviously, only the toolboxes that you are going to use should be copied however, we recommend to copy all of them, nobody knows what your will be doing in the future.
Model Generation
Attachments
- apptest.png (21.4 KB) - added by ismael 15 years ago.
- configure.png (30.8 KB) - added by ismael 15 years ago.
- configure2.png (28.1 KB) - added by ismael 15 years ago.
- configure3.png (28.8 KB) - added by ismael 15 years ago.
- configure4.png (30.8 KB) - added by ismael 15 years ago.
- signalprops.png (12.2 KB) - added by ismael 15 years ago.
- signalprops2.png (10.6 KB) - added by ismael 15 years ago.