Real-Time Windows Target Previous page   Next Page

Running a Real-Time Application

You run your real-time application to observe the behavior of your model in real time with the generated code.

The process of connecting consists of

After you build the real-time application, you can run your model in real time. This procedure uses the Simulink model rtwin_model.mdl as an example, and assumes you have created a real-time application for that model:

  1. From the Simulation menu, click External, and then click Connect to target. Also, you can connect to the target from the toolbar by clicking  .

  1. MATLAB displays the message

  1. In the Simulation window, and from the Simulation menu, click Start real-time code. Also, you can start the execution from the toolbar by clicking  .

  1. Simulink runs the execution and plots the signal data in the Scope window.

    In this example, the Scope window displays 1000 samples in 1 second, increases the time offset, and then displays the samples for the next 1 second.

  1. Do one of the following:

  1. The real-time application stops, and MATLAB displays the message


Previous page  Entering Additional Scope Parameters for Signal Tracing Running a Real-Time Application from the MATLAB Command Line Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS