| xPC Target™ | ![]() |
| On this page… |
|---|
The xPC Target demos are used to demonstrate the features of the xPC Target product. They are also M-file scripts that you can view to understand how to write your own scripts for creating and testing target applications.
There are two categories of xPC Target demos, general applications and drivers. The following lists the general application demos.
Description | Filename |
|---|---|
Real-time parameter tuning and data logging | |
Freerun display mode of anxPC Target scope of type host | |
A software triggered xPC Target scope of type host | |
A signal triggered xPC Target scope of type host | |
A scope triggered xPC Target scope of type host | |
Signal tracing with an xPC Target scope of type target | |
Pre- and posttriggering of an xPC Target scope of type host | |
Time- and value-equidistant data logging | |
Logging signal data to a file on the target PC | |
Frame signal processing | |
xPC Target software as a real-time spectrum analyzer |
The Driver demos category contains demos for a number of driver applications, including:
Analog and digital I/O
ARINC 429
Asynchronous events
CAN
Digital signal processing
MIL-STD-1553
RS-232
Raw Ethernet
Shared/reflective memory
UDP
Note Because these demos illustrate the use of driver blocks in an xPC Target environment, you might need appropriate hardware to properly run these demos. |
You can access xPC Target general application and driver demos through the MATLAB Command Window Demos tab. In this tab, double-click Links and Targets and then select xPC Target to list the available demo categories.
In the MATLAB Command Window, type
which scfreerundemo
The MATLAB interface displays the location of the M-file.
D:\MATLAB\toolbox\rtw\targets\xpc\xpcdemos\scfreerundemo.m
edit scfreerundemo
The MATLAB interface opens the M-file in a MATLAB editing window.
![]() | Using Environment Properties and Functions | Working with Target PC Environments | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |