Main Content

sisoinit

Configure Control System Designer at startup

Syntax

init_config = sisoinit(config)

Description

init_config = sisoinit(config) returns a template init_config for initializing the Control System Designer with one of the following control system configurations:

For more information about the control system configurations supported by the Control System Designer, see Feedback Control Architectures.

For each configuration, you can specify the plant model G and the sensor dynamics H, initialize the compensator C and prefilter F, and configure the open- loop and closed-loop views by specifying the corresponding fields of the structure init_config. Then you can start the Control System Designer in the specified configuration using controlSystemDesigner(init_config).

Output argument init_config is an object with properties. The following tables list the block and loop properties.

Block Properties

Block

Properties

Values

FName

Character vector

Description

Character vector

Value

LTI object

GName

Character vector

Value
  • LTI object

  • Row or column array of LTI objects. If the sensor H is also an array of LTI objects, the lengths of G and H must match.

HName

Character vector

Value
  • LTI object

  • Row or column array of LTI objects. If the plant G is also an array of LTI objects, the lengths of H and G must match.

CName

Character vector

Description

Character vector

Value

LTI object

Loop Properties

Loops

Properties

Values

OL1

Name

Description

View

Character vector

Character vector

'rlocus' 'bode'

CL1

Name

Description

View

Character vector

Character vector

'bode'

Examples

collapse all

Create an initialization template for configuration 2, with the compensator in the feedback path.

T = sisoinit(2);

Specify the fixed plant model.

T.G.Value = tf(1, [1 1]);

Specify an initial compensator value.

T.C.Value = tf(1,[1 2]);

Open a root locus Editor and Nichols editor for tuning the open-loop response.

T.OL1.View = {'rlocus','nichols'};

Open Control System Designer using the specified configuration settings.

controlSystemDesigner(T)

By default, the template for configuration 2 also opens a Bode editor for tuning the closed-loop response.

Specify a configuration template.

initconfig = sisoinit(2);

Specify model parameters.

m = 3;
b = 0.5;
k = 8:1:10;
T = 0.1:.05:.2;

Create an array of LTI objects 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;

Specify initial compensator value.

initconfig.C.Value = tf(1,[1 2]);

Use a graphical Bode editor to tune the open-loop response.

initconfig.OL1.View = {'bode'};

Open Control System Designer using the specified configuration settings.

controlSystemDesigner(initconfig)

By default, the template for configuration 2 also opens a Bode editor for tuning the closed-loop response.

Version History

Introduced in R2006a