MATLAB XPC TARGET 4 - DEVICE DRIVERS Manuel d'utilisateur Page 2

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 4
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 1
Working with xPC Target
With a host PC development environment
including MATLAB®, Simulink, Real-Time
Workshop, xPC Target, and a C compiler, you
can create Simulink models and deploy them
to target PCs, where they run as real-time
applications. You control execution of the
target PC from MATLAB, using a GUI or the
command line, a standard Internet browser,
or the target PC command line. You can
interactively control and monitor the target
application, tune model parameters, and
acquire, view, and log signal data.
High-Performance Real-Time Kernel
Using standard PC hardware and commer-
cial off-the-shelf I/O boards, xPC Target
converts a PC into a real-time rapid proto-
typing or hardware-in-the-loop system by
booting the target PC with the provided
high -performance kernel. Model sample rates
approaching 50 KHz in interrupt mode and
100 KHz in polling mode are achievable.
Communicating Between Host and
Target Systems
A single communications link connects the
host and target PCs. You design your Simulink
model on the host PC and download it over
the host-target link to the target PC, where it
executes as a real-time application. The same
communications interface is used to pass
commands, parameter updates, and signal
data between the host and target PCs. RS-232
and TCP/IP connections are supported. xPC
Target includes both an RS-232 cable and
a PCI Ethernet card for the target PC.
Accessing the Target System
There are several ways to access and com-
municate with the target system. A keyboard
and monitor connected to the target PC
provide a direct interface for issuing control
commands and status monitoring. From the
host PC, via the host-target link, you can use
the MATLAB command line or xPC Target
Explorer, a windowing GUI tool that runs
in MATLAB. xPC Target Explorer simplifies
configuration and control of the target PC.
You can even access and control multiple
target PCs running concurrently. Once you
have access to the target system, you can
perform target application control, parameter
tuning, and signal (data) acquisition.
Controlling the Target Application
Control functions let you download appli-
cations to the target PC, start and stop test
execution, and change the sample time,
stop time, and other application properties.
Statistics and metrics related to run-time per-
formance and CPU usage are also available.
You communicate with and control the
target application using an object-oriented
command-line interface in MATLAB. You
can also include the commands in M-files
for automated batch testing. xPC Target
Explorer enables you to configure, control,
and monitor operations of the target PC
in a window-based environment.
Tuning Parameters
xPC Target includes several methods for
tuning application parameters. After down-
loading the application to the target PC, you
can use the command-line interface or xPC
Target Explorer to modify parameter values
before, during, or after real-time execution.
You can also use Simulink external mode for
parameter tuning. In this mode, the Simulink
model running on the host PC operates as
a GUI to the target application. When you
change a parameter in your Simulink model,
the parameter value is automatically down-
loaded to the target PC and updated in the
target application.
Monitoring and Acquiring Signals
With xPC Target, you can monitor, trace,
and log signal data while the application
is running. Signal monitoring is an instan-
taneous view of signal values at the current
sample time. Signal tracing lets you capture,
store, and display bursts of data, similar to
the behavior of a digital oscilloscope. Use
signal logging to acquire signals during the
entire test execution. Options are available
to log data to the target PC memory or file
system. The acquired data can be uploaded
to the host PC during the test, or upon com-
pletion, for display, analysis, or archiving.
DC motor model (above), created with Simulink and converted to a real-time applica-
tion that runs on the target PC with the display (right) showing the real-time signals.
Vue de la page 1
1 2 3 4

Commentaires sur ces manuels

Pas de commentaire