Simulink Control Design™ - MathWorks

(Tuis.) #1
Option Name Option Value
'UseParallel' Set to 'on' to enable parallel computing for estimations
with the frestimate command.

Default: 'off'
'ParallelPathDependencies' A cell array of character vectors or string array that specifies
the path dependencies required to execute the model to
estimate. All the workers in the parallel pool must have
access to the folders listed in
'ParallelPathDependencies'.

Default: empty

Examples


Identify and disable time-varying source blocks for frequency response estimation.

% Open Simulink model.
mdl = 'scdspeed_ctrlloop';
open_system(mdl)

% Convert referenced subsystem to normal mode.
set_param('scdspeed_ctrlloop/Engine Model','SimulationMode','Normal');

% Get I/O points and create sinestream.
io = getlinio(mdl)
in = frest.Sinestream('Frequency',logspace(1,2,10),'NumPeriods',30,...
'SettlingPeriods',25);

% Identify time-varying source blocks.
srcblks = frest.findSources(mdl)

% Create options set specifying blocks to hold constant
opts = frestimateOptions
opts.BlocksToHoldConstant = srcblks

% Run frestimate
[sysest,simout] = frestimate(mdl,io,in,opts)

Enable parallel computing and specify the model path dependencies.

15 Alphabetical List

Free download pdf