User`s guide
DOSLoader Mode
getxpcenv
2 Ensure that the following xPC Target properties are set as indicated:
•
TargetBoot — DOSLoader
• DOSLoade rLocation — Your host PC DOSLoader files location
3 If these properties are not set with the correct values, use the setxpcenv
function to set them. For example:
setxpcenv('TargetBoot','DOSLoader')
setxpcenv('DOSLoaderLocation','c:\work\xpc\dosloader_file s')
updatexpcenv
If you have multiple target PCs connected to the host PC, the above
commands set the environment properties fo r the default target PC o nly.
To set these properties for a specific target PC, you can retrieve the specific
target PC environment object from the
xpctarget.targets class a nd
modify its environment properties. For example:
tgs = xpctarget.targets;
tgEnv = tgs.Item('TargetPC2');
set(tgEnv, 'TargetBoot', `DOSLoader');
set(tgEnv, 'DOSLoaderLocation', 'c:\work\xpc\dosloader_files');
4 In the MATLAB Command W indow, type:
xpcbootdisk
The xPC Target software displays the following message and creates the
DOSLoader files:
Current boot mode: DOSLoader
xPC Target DOS Loader files are successfully created
5 T ransfer the DOS Loader files as described in “DOSLoader M ode Setup”
on page 4-2.
4-5