![]() |
||||||||||||||||||||||||||||||||||||||
|
Generating and Loading CodeOnce the model has been set up, it must be compiled. The required compile options needed to build code for xPC are shown below.
Using the Command WindowAlternatively, the code can be compiled (and loaded) from the Command WIndow with the rtwbuild <model_name.mdl> command. TIP: The xPC loading stage uses a Matlab object called an xpc object handle as the means to control the application. The default xpc object handle name is tg. Once code has been successfully compiled once, it can be uploaded to the target using the load(<xpc_object_handle>,'<code.dlm>') from the Command Window. Some Common Errors
... now you can start the code with xPC Control
Last modified: 2010-03-24 Ross Wagner |