User`s guide
Introduction
4-5
applications using PC hardware. Typically these production applications are
found in systems where production quantities are low to moderate.
xPC Target Embedded Option also gives you the choice of using target scopes
on the target PC. When using StandAlone mode, target scopes allows you to
trace signals using the target PC monitor without any interaction from the host
computer. Assuming you do not want to view signals on the target PC, it is not
necessary to use target scopes or a monitor on your target PC. In such a case,
your system is able to operate as a black-box without a monitor, keyboard, or
mouse. Stand-alone applications are automatically set to continue running for
an infinite time duration or until the target computer is turned off.
Architecture
xPC Target Embedded Option creates additional files that you add to your
target PC DOS boot device. With the DOSLoader mode, an
autoexec.bat file
is generated. This file enables DOS to automatically execute the file
xpcboot.com when the target PC is booted. The file autoexec.bat includes an
argument that invokes a
*.rtb file containing the xPC Target kernel.
Therefore, when the boot device invokes DOS, the
autoexec.bat file then
starts the xPC Target kernel. All of these files are placed on a floppy disk when
you click BootDisk from the
xpcsetup GUI. Your real-time application is not
copied to the boot device. You create the real-time application later by clicking
Build.
The StandAlone mode operates in a similar fashion with a few important
differences. From the
xpcsetup GUI, after choosing StandAlone, you only
click Update to make your current selections active. When you later click
Build, an
autoexec.bat file and the xpcboot.com file are placed in a
subdirectory that is created within your present working directory. This
directory is named: modename
_xpc_emb. In addition, the build process creates
your target application and combines it with the xPC Target kernel. This
combined
*.rtb file is also placed in the same modename_xpc_emb
subdirectory. You copy these files onto any DOS boot device. Then, upon
booting DOS, the xpcboot.com file is invoked with the kernel and with your
target application. If you choose to use target scopes with your stand-alone
application, you can do so provided appropriate xPC Target Scope blocks are
added and configured prior to code generation.
A small DOS executable called
xpcboot.com is the core module of the
Embedded Option. This module is used in both the
DOSLoader mode and the