xPC Target | ![]() ![]() |
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 (dials) in your user interface model.
After you create a Simulink model, you can mark the block parameters. This procedure uses the model xpc_tank1.mdl
(or xpctank.mdl
) as an example. See Creating a Target Application Model.
The tag has the following format:
For single dimension ports, the following syntax is also valid:
index_n --
Index of a block parameter. Begin numbering parameters with an index of 1
.
label_n --
Name for a block parameter that will be connected to a To xPC Target block in the user interface model. Separate the labels with a space, not a comma.
For the Pump Switch and Drain Valve blocks, enter the tags
To create the To xPC blocks in an user interface model for a block with four properties, use the following syntax:
To create the To xPC blocks for the second and fourth properties in a block with at least four properties, use the following syntax:
You next task is to mark block signals if you have not already done so, and then create the user interface template model. See Marking Block Signals and Creating a User Interface Model.
![]() | Creating a Target Application Model | Marking Block Signals | ![]() |