Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

Embedded Option Setup

Updating the xPC Target Environment

After the xPC Target Embedded Option software has been correctly installed, the xPC Target environment, visible through xpcexplr or getxpcenv, contains two additional property choices for Standalone, in addition to the default BootDisk that you normally use with the xPC Target software.

It is assumed that the xPC Target environment is already set up and working properly with the xPC Target Embedded Option product enabled. If you have not already done so, confirm this now.

You can use the function getxpcenv to see the current selection for TargetBoot, or you can view this through the xPC Target Explorer window. Start the MATLAB interface and execute the function

xpcexplr

In the xPC Target Explorer xPC Target Hierarchy pane, select a target PC Configuration node. You see the boot mode tabs. The choices are

In the Configuration node, select Standalone. The xPC Target environment is updated, but you do not create a new target boot disk. Upon building your next real-time application, all necessary xPC Target files are saved to a subfolder below your current working folder. This subfolder is named with your model name with the string '_xpc_emb' appended, such as xpcosc_xpc_emb.

For more detailed information about how to use the xPC Target Explorer window, see xPC Target Explorer in the xPC Target Getting Started Guide.

Creating a DOS System Disk

When using Standalone mode, you must first boot your target PC with DOS. You can use Standalone mode from a boot device such as flash disk or a hard disk drive.

To boot DOS with a target boot disk, a minimal DOS system is required on the boot disk. With DOS, you can create a DOS boot disk using the command

sys A:

It is helpful to copy additional DOS utilities to the boot disk, including

A config.sys file is not necessary. The autoexec.bat file should be created to boot the loader or a stand-alone xPC Target application automatically. This is described in the following sections.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS