User`s guide
Signal Tracing
Configuring the Host Scope Viewer
You can customize your host scope viewer. This section assumes that
you have added a host scope to your target application, started the host
scope viewer, and added signals
Integrator1 and Signal Ge nera tor (see
“Creating Scopes” on page 3-17 a nd “Adding Signals to Scopes” on page 3-24).
These viewer settings are per scope.
In the xPC Target Host Scope Viewer, right-click anywhere in the axis area of
the viewer.
A context menu is displayed. This context menu contains options for the
following:
•
View Mode —SelectGraphica l for a graphical display of the data. Select
Numerical for a numeric representation of the data.
•
Legends — Select a n d d eselect this option to toggle the display of the
signals legend in the top right of the viewer.
•
Grid — Select and deselect this option to toggle the display of grid lines in
the viewer.
•
Y-Axis — Enter the desired values. In the Enter Y maximum limit an d
Enter Y minimum limit text boxes, enter the range for the y-axis in the
Scope window.
•
Export — Select the data to export. Select Export Variable Name s
to export scope data name s. In the Data Variable Name and Time
Variable Name text boxes, enter the names of the MATLAB variables to
save data from a trace. Click the OK button. The default name for the data
variable is
application_name_scn_data, and the default name for the time
variable is
application_name_scn_time where n is the scope number.
Select Export Scope Data to export scope data to the MATLAB interface.
Acquiring Signal Data into Multiple, Dynamically Named Files
on the Target PC
You can acquire signal data into multiple, dynamically named files on the
target PC. For example, you can acquir edataintomultiplefilestoexamine
onefilewhilethescopecontinuestoacquire data into other files. To acquire
data in multip l e files, add a scope of type file t o the applicatio n . After you
build an application and download it to the target PC, you can add a scope
3-31