xPC Target    

Creating a Target Application

Use this procedure to create a target application that you want to connect to a Simulink user interface model as a graphical interface with dial and gauge blocks.

After you create a Simulink model and tag the block parameters and block signals for creating xPC Target interface blocks, you can create a target application and download it to the target PC. This procedure uses the Simulink model xpc_tank1.mdl (or xpctank.mdl) as an example. See Creating a Target Application Model.

  1. Start or reset the target PC with an xPC Target boot disk in the floppy drive.
  2. In the MATLAB Command Window, type
  3. From the Simulation menu, click Simulation parameters.
  1. The Simulation Parameters dialog box opens.

  1. Click the Real-Time Workshop tab, and then click the Browse button. In the System Target File Browser dialog box, click xpctarget.tlc, and then click OK.
  2. Click the Solver tab, and check that the Stop time is long enough for you to interact with the target application.
  3. From the Tools menu, point to Real-Time Workshop, and then click Build model.
  1. Real-Time Workshop, xPC Target, and a third-party C compiler create the target application and download it to the target PC.

Your next task is to start running the target application in real time and start a simulation of the user interface model. See Running a Target Application with a User Interface Model.


  Adding Dials & Gauges Blockset Running a Target Application with a User Interface Model