Before you can run a Simulink model on a real-time target, it must be converted into a
The following image depicts the Simulink conversion process at a high level.
Steps of the Simulink Conversion
The Simulink software performs the following steps when you
compile a model:
- The MathWorks, Inc. Real-Time Workshop® software converts your
model and any submodels into a C/C++ code version of the same model.
- A compiler, Microsoft Visual C++, or the Wind River GNU Toolchain, compiles
the C/C++ code model into a file named ModelName.dll,
ModelName.out, or ModelName.so, where
ModelName is the name of the model.
- The Real-Time Workshop software places the compiled model file in one of the
following directories located in the current working directory:
|Phar Lap ETS
|NI Linux Real-Time
A text file,
<ModelName>_portsReadme.txt, is also
generated, which specifies the lengths and positions of all model inport
and outport array data.