Real-Time Windows Target    

Entering Simulation Parameters for Simulink

The simulation parameters give information to Simulink for running a simulation.

After you create a Simulink model, you can enter the simulation parameters for Simulink. This procedure uses the Simulink model rtwin_model.mdl as an example and assumes you have already loaded that model:

  1. In the Simulink window, and from the Simulation menu, click Simulation parameters. In the Simulation Parameters dialog box, click the Solver tab.
  1. The Solver pane opens.

  1. In the Start time box, enter 0.0. In the Stop time box, enter the amount of time you want your model to run. For example, enter 10.0 seconds.
  2. From the Type list, choose Fixed-step. Real-Time Workshop does not support variable step solvers.
  3. From the integration algorithm list, choose a solver. For example, choose the general purpose solver ode5 (Dormand-Prince).
  4. In the Fixed step size box, enter a sample time. For example, enter 0.001 seconds for a sample rate of 1000 samples/second.
  5. From the Mode list, choose SingleTasking. For models with blocks that have different sample times, choose MultiTasking.
  1. Your Solver pane will look similar to the figure shown below.

  1. Do one of the following:

  Creating a Simulink Model Entering Scope Parameters for Signal Tracing