| Contents | Index |
init_config = sisoinit(config)
init_config = sisoinit(config) returns a template init_config for initializing Graphical Tuning window of the SISO Design Tool with the one of the following control system configurations:

config corresponds to the control system configuration. Available configurations include:
config = 1 (default) — C in forward path, F in series
config = 2 — C in feedback path, F in series
config = 3 — C in forward path, feedforward F
config = 4 — Nested loop configuration
config = 5 — Internal model control (IMC) structure
config = 6 — Cascade loop configuration
For each configuration, you can specify the plant models G and H, initialize the compensator C and prefilter F, and configure the open- and closed-loop views by specifying the corresponding fields of the structure init_config. Then use sisotool(init_config) to start the SISO Design Tool in the specified configuration.
Output argument init_config is an object with properties. The following tables list the block and loop properties.
Block Properties
Block | Properties | Values |
|---|---|---|
| F | Name | String |
| Description | String | |
| Value | LTI object | |
| G | Name | String |
| Value |
| |
| H | Name | String |
| Value |
| |
| C | Name | String |
| Description | String | |
| Value | LTI object |
Loop Properties
Loops | Properties | Values |
|---|---|---|
OL1 | Name | String 'rlocus' 'bode' |
CL1 | Name | String 'bode' |
Initialize SISO Design Tool with C in feedback path using an LTI model:
% Single-loop configuration with C in the feedback path.
T = sisoinit(2);
% Model for plant G.
T.G.Value = tf(1, [1 1]);
% Initial compensator value.
T.C.Value = tf(1,[1 2]);
% Views for tuning Open-Loop OL1.
T.OL1.View = {'rlocus','nichols'};
% Launch SISO Design Tool using configuration T
sisotool(T)
Initialize SISO Design Tool with C in feedback path using an array of LTI models:
% Specify an initial configuration.
initconfig = sisoinit(2);
% Specify model parameters.
m = 3;
b = 0.5;
k = 8:1:10;
T = 0.1:.05:.2;
% Create an LTI array to model variations in plant G.
for ct = 1:length(k);
G(:,:,ct) = tf(1,[m,b,k(ct)]);
end
% Assign G to the initial configuration.
initconfig.G.Value = G;
% Create an LTI array to model variations in sensor H.
for ct = 1:length(T);
H(:,:,ct) = tf(1,[1/T(ct), 1]);
end
% Assign H to the initial configuration.
initconfig.H.Value = H;
% Specify initial controller.
initconfig.C.Value = tf(1,[1 2]);
% Views for tuning Open-Loop (OL1)
initconfig.OL1.View = {'rlocus','bode'};
% Launch SISO Design Tool using initconfig.
sisotool(initconfig)

Learn more about resources for designing, testing, and implementing control systems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |