User`s guide

8 Graphical User Interfaces
8-8
Creating a Target Application Model
A target application model is a Simulink model that describes your physical
system, a controller, and its behavior. You use this model to create a real-time
target application, and you use this model to select the parameters and signals
you want to connect to a custom graphical interface.
Creating a target application model is the first step you need to do before you
can tag block parameters and block signals for creating a custom graphical
interface.
See “Marking Block Parameters” on page 8-8 and “Marking Block Signals” on
page 8-10 for descriptions of how to mark block properties and block signals.
Marking Block Parameters
Tagging parameters in your Simulink model allows the function xpcsliface to
create To xPC Target interface blocks. These interface blocks contain the
parameters you connect to control devices in your user interface model.
After you create a Simulink model, you can mark the block parameters. This
procedure uses the model
xpctank.mdl as an example.
1 Open a Simulink model. For example, in the MATLAB Command Window,
type
xpctank
2 Point to a Simulink block, and then right-click.
3 From the menu, click Block Properties. Do not click Constant
Parameters
.
A Block properties dialog box opens.