Real-Time Windows Target    

Running a Real-Time Application from the MATLAB Command Line

You can use the MATLAB command line interface as an alternative to using the Simulink GUI. Enter commands directly in the MATLAB command line window or enter them in an M-file.

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. In the MATLAB command line, type
  1. Simulink changes to external mode.

  1. Type,
  1. MATLAB loads the real-time application, connects it to the Simulink block diagram, and displays the message.

  1. Type,
  1. Simulink starts running the real-time application.

  1. Type,
  1. Simulink stops the real-time application.


  Running a Real-Time Application Signal Logging to the MATLAB Workspace