xPC Target | ![]() ![]() |
Creating a User Interface Model
A user interface model contains components from the Dials & Gauges Blockset and xPC Target interface blocks. It functions as a user interface that allows you to view signals with gauges and change parameters using dials.
After you tag block properties and block signals, you are ready to generate the user interface template model containing xPC Target interface blocks. These blocks connect your user interface model with your target application.
This procedure users the Simulink model xpc_tank1.mdl
as an example, and assumes you have tagged the block properties and block signals. See Marking Block Parameters and Marking Block Signals.
inf
. From the Type list, select Fixed-step
. From the solver list, select discrete (no continuous states)
. In the Fixed step size box, enter auto
.
Note The user interface model should only contain discrete-time elements and therefore you should only select the discrete solver. The model should not contain any continuous-time states. |
Your next task is to add dials and gauges, and connect them to the xPC Target interface blocks. See Adding Dials & Gauges Blockset.
![]() | Description of the User Interface Model | Adding Dials & Gauges Blockset | ![]() |