User`s guide
10 Graphical User Interfaces
xPC Tar get Interface Blocks to Simulink Models
In this section...
“Introduction” on page 10-2
“Simulink User Interface Model” on p a ge 10-2
“Creating a Custom Graphical Interface” on page 10-3
“To xPC Target Block” on page 10-4
“From xPC Target Block” on page 10-5
“Creating a Target Appl ica t io n Model” o n page 1 0- 6
“Marking Block Parameters” on page 10-7
“Marking Block Signals” on page 10-9
Introduction
You can run and test your target application using the MATLAB
command-line interface or the Simulink block diagram for your application.
You can also use special blocks provided with the xPC Target block library
to interf a c e signals and param eters from a target applicatio n to a cu stom
GUI application.
Use the Simulink interface to create a custom graphical user interface (G UI)
foryourxPCTargetapplication. Youdo t his by creating an user interface
model with the Si m ulink in terface and add-on produ c ts like Simulink
®
3D
Animation™ and Altia
®
Design (a third-party product).
Simulink User Interface Model
A user interface model is a Simulink model containing Simulink blocks from
add-on products and interface blocks from the xPC Target block library.
This user interface model can connect to a custom graphical interface using
Simulink 3D Animation or Altia products. The user interface model runs on
the host PC and communicates with your target application running on the
target PC using To xPC Target and From xPC Target blocks.
The user interface allows you to change parameters by downloading them to
the target PC, and to visualize signals by uploading data to the host PC.
10-2