Real-Time Windows Target | ![]() ![]() |
Entering Data Archiving Parameters
The Data Archiving dialog box is related to the Scope Properties dialog box. In the Scope Properties dialog box, you must select the Save data to workspace check box to be able to save data to a disk drive for two reasons:
If you do not select the Save data to workspace check box in the Scope properties dialog box, the MAT-files for data logging will be created, but they will be empty.
After you create a Simulink model, you can enter the Data Archiving Parameters for data logging to a disk drive:
The External Data Archiving dialog box opens. This dialog box allows you to specify data archiving options.
mwd
, enterc:\mwd
data
MATLAB names the files data_0.mat
, data_1.mat
. . . The Number of files
= Total sample points / Duration. For example, if you set the Duration =
Total sample points - 1, then only one file is created.
Within each MAT-file, a variable is saved with the same name you entered
in the Variable name text box (Data History page on the Scope Properties
dialog box). By selecting the Append file suffix to variable names check
box, the same suffix that is added to the MAT-file is added to the variable
name. For example, if you entered the variable name ScopeData
, then
within the file data_0.mat
will be a variable ScopeData_0
.
Your External Data Archiving dialog box will look similar to the figure shown below.
The parameters you entered are applied to your model.
Note There is no Apply button with this dialog box. You must click the Close button for the changes you make to take effect.
![]() | Entering Signal and Triggering Properties | Plotting Logged Signal Data | ![]() |