xPC Target | ![]() ![]() |
Building and Downloading the Target Application
You use the xPC Target build process to generate C code, compile, link, and download your target application to the target PC.
After you enter your changes in the Simulation Parameters dialog box, you can build your target application. This procedure uses the Simulink model xpc_osc3.mdl
as an example. To create this model, see, xPC Target Application.
tg
. For more information about the target object, see Target Objects in the xPC Target User Guide documentation.
On the host computer, MATLAB displays the following lines after a successful build process:
### Starting Real-Time Workshop build procedure for model: xpcosc . . . ### Successful completion of xPC Target build procedure for model: xpcosc
If you do not have a successful build, see Troubleshooting the Build Process.
Your next task is to run the target application in real time on the target PC. See Running the Target Application.
![]() | Entering the Real-Time Workshop Parameters | Troubleshooting the Build Process | ![]() |