Use Simulink with PolyORB-HI-C
You can use Simulink blocks as AADL subprograms. In that case, the generated code from AADL automatically calls the generated code from Simulink.
A case study is also presented here.
Please note that, at this time, our integration with Simulink works with Matlab/Simulink R2009.
Configuration
You must define the SIMULINK_DIRECTORY environment variable and set it to the root directory of your Matlab installation.
Assumptions
We assume that you generate code in Simulink with the C/API interfaces. These interfaces facilities are used by the AADL generated code to inject or retrieve data values in/from Simulink models.
Modeling Simulink blocks with AADL subprogram components
When you model the AADL subprogram that represent a Simulin block, you must specify the following properties
- Source_Text : The directory that contains the Simulink generated code
- Source_Name : the name of your Simulink model
- Source_Language : the property must be set to Simulink (see that on the example).
Modeling Simulink data with AADL data components
When you model the AADL data that represent a Simulin data, you must specify the following properties
- Source_Text : The directory that contains the Simulink generated code
- Source_Name : the name of your Simulink model
- Source_Language : the property must be set to Simulink (see that on the example).
- Type_Source_Name : the name of the type in the Simulink code (for example, real_T).
