User`s guide

xPC Target Interface Blocks to Simulink Models
8-3
Altia Design — Altia also provides Simulink blocks that communicate with
xPC Target interface blocks. These blocks then communicate with Altia’s
graphical interface or with a Web browser using the Altia ProtoPlay plug-in.
Creating a Custom Graphical Interface
xPC Target provides Simulink interface blocks to connect graphical interface
elements to your target application. The steps for creating your own custom
user interface are listed below:
1 In the Simulink target application model, decide which block parameters
and block signals you want to have access to through graphical interface
control devices and graphical interface display devices.
2 Tag all block parameters in the Simulink model that you want to be
connected to a control device. See “Marking Block Parameters” on page 8-8.
3 Tag all signals in Simulink model that you want to be connected to a display
device. See “Marking Block Signals” on page 8-10.
4 In MATLAB, run the function xpcsliface('model_name') to create the
user interface template model. This function generates a new Simulink
model containing only the xPC Target interface blocks (To xPC Target and
From xPC Target) defined by the tagged block parameters and block signals
in the target application model.
User interface
blocks
xPC Target
interface
blocks
Host PC Target PC
Parameters
xPC Target
application
Signals
Simulink
instrumentation
model