xPC Target    

Creating a Target Application Model

A target application model is a Simulink model that describes your physical system, a controller, and its behavior. You use this model to create a real-time target application, and you use this model to select the parameters and signals you want to connect to a custom graphical interface.

You do not have to modify this model when you use it with the Dials & Gauge Blockset, Virtual Reality Toolbox, or other third-party graphical elements.

Creating a target application model is the first step you need to do before you can tag block parameters and block signals for creating a custom graphical interface.

  1. In the MATLAB Command Window, type
  1. A Simulink model for a water tank opens. This model contains a set of equations to describe the behavior of a water tank and a simple controller.

    The controller regulates the water level in the tank. This model contains only standard Simulink blocks and you use it to create the xPC Target application.

  1. From the File menu, click Save as and enter a new file name. For example, enter xpc_tank and then click OK.

Your next task is to mark the block properties and block signals. See Marking Block Parameters and Marking Block Signals.


  Target Application Model Description Marking Block Parameters