User`s guide

Signal Logging to the MATLAB Workspace
3-31
2 On the toolbar, click the Parameters button.
A
Scope parameters dialog box opens.
3 Click the Data history tab.
4 Do one of the following:
- If you are running a simulation, you can select the
Limit data points to
last
check box, and enter the number of sample points to save.
- If you are running an execution, do not select the
Limit data points to last
check box.
The
Limit data points to last check box is related to the Duration value in
the
External Signal and Triggering dialog box. The smaller of either value
limits the number of sample points saved to the MATLAB workspace. When
you are using the Real-Time Windows Target, use the
Duration value to set
the number of sample points you save.
To set the
Duration value, see “Entering Signal and Triggering Properties”
on page 3-32.
5 Select the Save data to workspace check box. In the Variable name text
box, enter the name of a MATLAB variable. The default name is
ScopeData.
6 From the Format list, choose either Structure with time, Structure, or
Array (compatible with V2.0-2.2). For example, to save the sample times and
signal values at those times, choose
Structure with time.
Your
Data history pane will look similar to the figure shown below.