User`s guide
8 Graphical User Interfaces
8-2
xPC Target Interface Blocks to Simulink Models
You can use Simulink to create a custom graphical user interface (GUI) for
your xPC Target application. You do this by creating an user interface model
with Simulink and add-on products like the Virtual Reality Blockset and Altia
Design (a third-party product). This section includes the following topics:
•
Simulink User Interface Model — Simulink model with xPC Target
interface blocks to your target application and interface blocks to graphical
elements and interfaces.
•
Creating a Custom Graphical Interface — The process for creating a
custom graphical interface includes tagging parameters and signals, and
then creating a Simulink user interface model with interface blocks to these
parameters and signals.
•
To xPC Target Block — Simulink blocks that take new parameter values
from graphical elements and download those values to your target
application.
•
From xPC Target Block — Simulink blocks that upload signal data from
your target application and pass that data to graphical elements for
visualization.
Simulink User Interface Model
A user interface model is a Simulink model containing Simulink blocks from
add-on products and interface blocks from xPC Target. This user interface
model can connect to a custom graphical interface using Virtual Reality
Toolbox 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.
Virtual Reality Toolbox — The Virtual Reality Toolbox enables you to display
a Simulink user interface model in 3-D. It provides Simulink blocks that
communicate with xPC Target interface blocks. These blocks then
communicate to a graphical interface. This graphical interface is a Virtual
Reality Modeling Language (VRML) world displayed with a Web browser using
a VRML plug-in.