Managing Memory During Frequency Response Estimation
Frequency response estimation terminates when the simulation data exceed available
memory. Insufficient memory occurs in the following situations:
- Your model performs data logging during a long simulation. A sinestream input signal
with four periods at a frequency of 1e-3 rad/s runs a Simulink simulation for 25,000 s.
If you are logging signals using To Workspace blocks, this length of simulation time
might cause memory problems. - A model with an output point discrete sample time of 1e-8 s that simulates at 5-Hz
frequency (0.2 s of simulation per period), results in
0.2
1 e− 8
= 2 million samples of
data per period. Typically, this amount of data requires over 300 MB of storage.
To avoid memory issues while estimating frequency response:
(^1) Disable any signal logging in your Simulink model.
To learn how you can identify which model components log signals and disable signal
logging, see “Signal Logging” (Simulink).
(^2) Try one or more of the actions listed in the following sections:
- “Model-Specific Ways to Avoid Memory Issues” on page 5-86
- “Input-Signal-Specific Ways to Avoid Memory Issues” on page 5-88
(^3) Repeat the estimation.
Model-Specific Ways to Avoid Memory Issues
To avoid memory issues, try one or more of the actions listed in the following table, as
appropriate for your model type.
5 Frequency Response Estimation