xPC Target    

Loading a Simulink Model

Loading a Simulink model moves information about your model, including the block parameters, into the MATLAB workspace.

After you create and save a Simulink model, you can load it back into the MATLAB workspace. This procedure uses the Simulink model xpcosc.mdl as an example.

  1. In the MATLAB window, type

    MATLAB loads the oscillator model and displays the Simulink block diagram, as shown below.

    .

Your next task is to run a simulation of your model in nonreal-time. See Running a Simulation Using the Simulink Graphical Interface or Running a Simulation Using the MATLAB Command Line Interface.


 Simulating the Model Running a Simulation Using the Simulink Graphical Interface