MATLAB XPC TARGET 4 - API GUIDE Uživatelská příručka Strana 119

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 372
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 118
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.
Zobrazit stránku 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 371 372

Komentáře k této Příručce

Žádné komentáře