xPC Target    

Updating the xPC Target Environment

After the xPC Target Embedded Option software has been correctly installed, the xPC Target environment, visible through xpcsetup or getxpcenv, contains new property choices for DOSLoader or StandAlone, in addition to the default BootDisk that is normally used with xPC Target.

It is assumed that the xPC Target environment is already set up and working properly with the xPC Target Embedded Option disabled. If you have not already done so, we recommend you 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 Setup window. Start MATLAB and execute the function

Within the frame of the xPC Target Embedded Option, you see the property TargetBoot, as well as the currently selected value. The choices are

The default setting for the property TargetBoot is BootFloppy. When using BootFloppy, xPC Target must first create a target boot disk, which is then used to boot the target PC.

The property TargetBoot can be set to two other values, namely DOSLoader or StandAlone. If the xPC Target loader is booted from any boot device with DOS installed, the value DOSLoader must be set as shown above. If you want to use a stand-alone application that automatically starts execution of your target application immediately after booting, specify StandAlone.

After changing the property value, you need to update the xPC Target environment by clicking the Update button in the xPC Target Setup window. If your choice is DOSLoader, you must create a new target boot disk by clicking the BootDisk button. Note that this overwrites the data on the inserted target boot disk as new software modules are placed on the target boot disk. If your choice is StandAlone, you click the Update button. Upon building your next real-time application, all necessary xPC Target files are saved to a subdirectory below your current working directory. This subdirectory 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 Setup, see Software Environment.


  Embedded Option Setup Creating a DOS System Disk