User`s guide
load
Purpose Download target application to ta rge t PC
Syntax MATLAB command line
load(target_object,'target_application')
target_object.load('target_application')
Arguments
target_object
Name of an existing target object.
target_application
Simulin k model and ta rget application
name.
Description Before using this function, the target PC must be booted with the xPC
Target kernel, and the target application m ust be built in the current
working folder on the host PC.
If an application was previously loaded, the old target application is
first unlo aded before dow nloading the new target application. The
method
load is called automatically after the Real-Time Workshop
build process.
Note If you are running in Stand-Alone mode, this command has no
effect. To load a new application, you must rebuild the s tand-alone
application with the new application, then reboot the target PC with
the updated stand-alone application.
Examples Load the target application xpcosc represented by the target object tg.
load(tg,'xpcosc') or tg.load('xpcosc')
+tg or tg.start or start(tg)
See Also xPC Target function un load.
xPC Target demo scripts listed in “xPC Target Demos” on page 6-9.
18-83