User`s guide
Signal Tracing
3-11
Signal Tracing
Signal tracing is the process of acquiring and visualizing signals while running
a target application. In its most basic sense, signal tracing allows you to
acquire signal data and visualize it on the target PC or upload the signal data
and visualize it on the host PC while the target application is running. This
section includes the following topics:
• “Signal Tracing with xPC Target Explorer” on page 3-11 — Use the xPC
Target Explorer to create and run scopes that are displayed on the host PC.
• “Signal Tracing with MATLAB” on page 3-26 — Use the MATLAB Command
Window to create scopes and scope objects.
• “Signal Tracing with xPC Target Scope Blocks” on page 3-33 — Use scopes
of type
host to trace signal data triggered by an event while your target
application is running.
• “Signal Tracing with a Web Browser” on page 3-34 — Use Microsoft Explorer
or Netscape Navigator to view signals.
Signal tracing differs from signal logging. With signal logging you can only look
at signals after a run is finished and the log of the entire run is available. For
information on signal logging, see “Signal Logging” on page 3-36.
Signal Tracing with xPC Target Explorer
The procedures in this topic use the model xpcosc.mdl as an example, and
assume you have created, downloaded, and started the target application to the
target PC.
• “Creating Scopes” on page 3-12 — Create scopes on the host PC and target
PC to visualize the data.
• “Adding Signals to Scopes” on page 3-16 — Add signals to the scopes and
start the scopes.
• “Stopping Scopes” on page 3-20 — Stop the scopes.
You can add or remove signals from scopes of type
target or host while the
scope is either stopped or running. For scopes of type
file, you must stop the
scope first before adding or removing signals.