User`s guide
3 Working with Real-Time Workshop
3-56
Code for model reference simulation targets is placed in the slprj/sim
subdirectory. Generated code for GRT, ERT, and other Real-Time
Workshop targets is placed in
slprj subdirectories named for those
targets. You will inspect some model reference code later in this exercise.
For more information on project directories, see “Working with Project
Directories” on page 3–62.
Part 3: Generate Model Reference Code for a GRT Target
The sl_convert_to_model_reference M-function took care of creating the
model and the simulation target files for the vdpmult subsystem. In this part
of the exercise, you generate code for that model and the
vdptop model, and
run the executable you create:
1 Verify that you are still working in the tutorial6 directory.
2 If the model vdptop_converted is not open, open it. Make sure it is the
active window.
3 Choose Configuration Parameters from the Simulation menu or type
Ctrl+E.
The
Configuration Parameters dialog for vdptop_converted opens.
4 Select Data Import/Export. Select Time: and Output: in the Save to
workspace section, then click
Apply. The dialog looks like this.