Frequency : [20 200] (rad/s)
Amplitude : 1e-05
SamplesPerPeriod : [3141593 314159]
NumPeriods : 4
RampPeriods : 0
FreqUnits (rad/s,Hz): rad/s
SettlingPeriods : 1
ApplyFilteringInFRESTIMATE (on/off) : on
SimulationOrder (Sequential/OneAtATime): Sequential
The combination of the fast sample time of 1e-7 seconds (10 MHz sampling frequency)
and the lower creates high SamplesPerPeriod values. In this case, considering that
each frequency has four periods, frequency response estimation would log output data
with around 14 million samples.
Since such a high sampling rate is not necessary for analyzing 20 and 200 rad/s
frequencies, you can avoid memory issues by increasing the sample time to 1e-4.
Tslow = 1e-4;
wslow = 2*pi/Tslow;
inputlow = frest.createFixedTsSinestream(Tslow,wslow./round(wslow./lowfreq));
inputlow.Amplitude = 0.1;
To make the model compatible with the smaller sampling rate, resample the output data
point using a rate transition block as in the modified model:
modellow = 'scdpwmharddrive_lowfreq';
open_system(modellow)
2 Linearization