User`s guide
Using Proc essor in the Loop
a From the model menu bar, go to Simulation > Configuration
Param ete rs in your mo del to open the Con figuration Parameters dialog
box.
b Ch oose Real-Time Workshop from the Select tree. Set the
configuration parameters for your model as required by Embedded IDE
Link CC softw are. Get more information about setting the Real-Time
Workshop software parameters in “Setting Code Generation Parameters
for TI Processors” on page 3-48 in the online Help system.
c Under Target selection,settheSystem target file to
ccslink_ert.tlc (PIL requires Real-Time Workshop Embedded Coder
software).
5 Configure the model to perform PIL building and PIL block creation.
a Select Embedded IDE Link CC on the Select tree.
b On the Build actionlist, select
Create_processor_in_the_loop_project to enable PIL.
c From PIL block action
, select
Create_PIL_block_build_and_download from the list.
d Click OK to close the Configuration Parameters dialog box.
6 To create the PIL block, right-click the masked subsystem in your model
and select Real-Time Workshop > Build Subsystem from the context
menu.
A new model window o pens and the new PIL block appears in it.
This step builds the PIL algorithm o bject code and a PIL block that
corresponds to the subsystem, with the same inputs and outputs. Follow
the progress of the build process in the MATLAB command window.
7 Copy the new PIL block from the new model to your model, either in
parallel to your masked subsystem to cosimulate the processes, or replace
your subsystem with the PIL block.
To see the PIL block used in parallel to a masked subsystem, refer to the
demo Getting Started with Application Development in the demos for
EmbeddedIDELinkCCsoftware.
4-9