User`s guide

Quick Start Tutorials
3-55
In this exercise you only supply the first two calling arguments (a model
name and a target directory) and no return arguments:
1 Run the conversion utility by typing at the MATLAB prompt
sl_convert_to_model_reference('vdptop','.')
This converts the vdptop model and places the resulting files in the current
directory. The converter prints a number of progress messages to the
console, and when successful, terminates with
ans =
1
Note that the model being converted need not be open. The files in your
working directory now consist of the following.
2 Type vdptop_converted to open the converted top-level model. Open the
Scope if it is not visible, and click
Start or choose Start from the
Simulation menu. The model calls the vdpmult_msf simulation target to
simulate. The model and its output look like this.
vdptop.mdl The modified vdp model you saved
vdptop_converted.mdl Top-level model created by the M-function that
contains a Model block where the vdpmult
subsystem was
vdpmult.mdl Model created for the vdpmult subsystem
vdpmult_msf.dll
Static library file (on Windows) that executes
when the
vdptop model calls what was
formerly the vdpmult subsystem
/slprj Project directory for generated model reference
code