User`s guide

5 Software Environment and Demos
5-8
xPC Target Demos
The xPC Target demos are used to demonstrate the features of xPC Target. But
they are also M-file scripts that you can view to understand how to write your
own scripts for creating and testing target applications.
To Locate or Edit a Demo Script
1 In the MATLAB Command Window, type
which scfreerundemo
MATLAB displays the location of the M-file.
D:\MATLAB\toolbox\rtw\targets\xpc\xpcdemos\scfreerundemo.m
2 Type
edit scfreerundemo
MATLAB opens the M-file in a MATLAB editing window.
Demo Filename
Parameter Sweep
parsweepdemo
Signal tracing using free-run mode
scfreerundemo
Signal tracing using software triggering
scsoftwaredemo
Signal tracing using signal triggering
scsignaldemo
Signal tracing using scope triggering
scscopedemo
Signal tracing using the target scope
tgscopedemo
Pre-/posttriggering of xPC Target scopes
scprepostdemo
Time- and value-equidistant data logging
dataloggingdemo