xPC Target    

Creating a Target Boot Disk for DOSLoader

As the first step, we assume you have created a DOS system disk and updated the xPC Target environment by setting the property TargetBoot to DOSLoader. From the xPC Target Setup window, click the BootDisk button. xPC Target copies the necessary files to the DOS disk. The files that are added to the DOS boot disk include

With the DOSLoader mode, the correct *.rtb file is added to the DOS disk according to the options specified in the following table.

xPC Target Environment
HostTargetComm: RS232
HostTargetComm:
TCP/IP

TargetScope: Disabled
xpcston.rtb
xpctton.rtb
TargetScope: Enabled
xpcsgon.rtb
xpctgon.rtb

The file autoexec.bat is copied to the DOS disk. This file should contain at least the following line:

where xxx.rtb is the file described in the table above. We recommend that you view this autoexec.bat file to confirm this.

Now the target boot disk can be removed from the host and put into the target PC disk drive. Upon rebooting the target PC, DOS is booted from the target boot disk and the autoexec.bat file with the result in the xPC Target loader being automatically executed. From this point onwards, the CPU runs in protected mode and DOS is discarded.

You can repeat this procedure as necessary. There are no restrictions on the number of xPC Target boot floppies that you can create. However, xPC Target and the xPC Target Embedded Option do not include DOS licenses. You must purchase valid DOS licenses for your target PCs from the supplier of your choice.

If the xpcboot command is not placed in the autoexec.bat, xpcboot.com is not executed when the target PC is booted. Instead, the target is finished once it has booted DOS. You can then use the DOS environment to create a DOS partition on a hard disk, format it, and transfer xpcboot.com and xxx.rtb onto it. The autoexec.bat file can then be placed on the hard disk and edited so that it automatically boots the xPC Target loader the next time the target PC is booted. After this step the floppy disk drive can be removed from the system. The same procedure works with flash disks and other boot devices.


  DOSLoader Target Applications Creating a Target Application for DOSLoader