xPC Target |
 |
Control with xPC Target Remote Control Tool
This procedure assumes you have created an xPC Target boot disk and you have booted the target PC. See Target Boot Disk. While the xPC Target Remote Control Tool has the ability to build and download a target application, this procedure begins with a target application already downloaded to the target PC. See xPC Target Application.
- In the MATLAB Command Window, type
- The xPC Target Remote Control Tool window opens, connects to the target PC, and displays information about the previously loaded target application.

- If you want to rebuild the target application, from the File menu, click Build/Load Application.
- The Build/Download xPC Target Application dialog box opens.

- From the Current Open Systems list, select the name of a Simulink model (
.mdl
) you have open, or click the Browse button and select the name of a Simulink model or a previously built target application (.dlm
). Click OK.
- The Build and download Options dialog box opens.

- Select a download option.
- If you click Build, Real-Time Workshop creates a target application from the Simulink model and downloads it to the target PC.
- If you click Download,
xpcrctool
looks for a previously built target application for the selected Simulink model and downloads it to the target PC.
- From the toolbar, click the start button
. The target application begins running on the target PC, and then stops when it reaches the stop time.
- In the Stop time box, enter a new stop time. For example, enter
- Again, click the start button. The target application now runs until you stop it.
- From the toolbar, click the stop button
.
See also Signal Tracing with xPC Target Remote Control Tool, Signal Logging with xPC Target Remote Control Tool, and Parameter Tuning with xPC Target Remote Control Tool.
| Running the Target Application | | Control with MATLAB Commands |  |