User`s guide

3 Signals and Parameters
3-36
Signal Logging
Signal logging is the process for acquiring signal data during a real-time run,
stopping the target application, and then transferring the data to the host PC
for analysis. You can plot and analyze the data, and later save it to a disk. xPC
Target signal logging samples at the base sample time. If you have a model
with multiple sample rates, add xPC Target scopes to the model to ensure that
signals are sampled at their appropriate sample rates.
Note xPC Target does not support logging data with decimation.
This section includes the following topics:
“Signal Logging with xPC Target Explorer” on page 3-36 — Use an xPC
Target Scope block in your Simulink model to log signal data triggered by an
event.
“Signal Logging with MATLAB” on page 3-38 — Use Outport blocks in your
Simulink model to log data to a target object in the MATLAB workspace.
“Signal Logging with a Web Browser” on page 3-42 — Use Microsoft Internet
Explorer or Netscape Navigator to log data to a text file.
Signal Logging with xPC Target Explorer
You plot the outputs and states of your target application to observe the
behavior of your model, or to determine the behavior when you vary the input
signals and model parameters.
This procedure uses a model named
xpc_osc4.mdl as an example and assumes
you have created a target application and downloaded it to the target PC. The
xpc_osc4.mdl is the same as xpc_osc3.mdl with the xPC Target Scope block
removed. See “xPC Target Application” in Chapter 3 in the xPC Target getting
started documentation.
Note To use the xPC Target Explorer for signal logging, you need to add an
Outport block to your Simulink model, and you need to activate logging on the
Data Import/Export pane in the Configuration Parameters dialog.