User`s guide
5 Embedded Option
A S imulink window opens with the model.
2 From the Tools menu, point to Real-Time Workshop,andthenclick
Build Model.
Real-Time Workshop and xPC Target software create a folder
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 —ThisfileisastaticfilethatispartofthexPCTarget
Embedded Option software.
Refer to “Copying the Kernel/Target Application to the Target PC Flash Disk”
on page 5-10 for a description of how to transfer these files to the target PC.
Note If the size of the compiled target application (DLM) exceeds the
Maximum m odel size you selected in x PC Target Explorer, the software will
generate an error during the build process.
Copying the Kernel/Target Application to the Target
PC Flash Disk
You build a target application on a host PC using the Real-Time Workshop
and x PC Target products, and a C/C++ compiler. One method for transferring
the files from the host PC to a target PC is to use the FTP functions of the
xPC Target file system.
After you build a stand-alone application o n a host PC, yo u can copy files from
the host PC to the target PC hard drive or flash disk. If you have not already
created the necessary files, see “Creating a Kernel/Target Application” on
page 5-9.
1 Ensure that your target PC is still booted from a target PC boot disk.
5-10