User`s guide
Stand-Alone Target Setup
4-21
Creating a Kernel/Target Application
Use xPC Target with StandAlone mode to create a combined kernel and target
application with utility files. A combined kernel and target application allows
you to disconnect your target PC from a host PC and run stand-alone
applications.
After you set the Simulink and Real-Time Workshop parameters for code
generation with xPC Target in your Simulink model, you can use xPC Target
with StandAlone mode to create a target application:
1 In the MATLAB window, type the name of a Simulink model. For example,
type
xpc_osc3
A Simulink window opens with the model.
2 From the Tools menu, point to Real-Time Workshop, and then click Build
Model
.
Real-Time Workshop and xPC Target create a directory
xpc_osc3_xpc_emb
with the following files:
-
autoexec.bat — This file is automatically invoked by DOS. It then runs
xpcboot.com and the *.rtb file.
-
xpc_osc3.rtb — This image contains the xPC Target kernel and your
target application.
-
xpcboot.com — This file is a static file that is part of xPC Target
Embedded Option.
3 Copy the preceding files to a formatted 3.5 inch disk.
4 If you want to boot the target PC from the 3.5 inch disk,
a Remove the 3.5 inch disk from the host PC.
b Put that disk into the target PC disk drive.