getOpenings

Get list of openings for slLinearizer or slTuner interface

Syntax

Description

example

op_names = getOpenings(s) returns the names of the permanent openings of s, which can be either an slLinearizer interface or an slTuner interface.

Examples

expand all

Obtain Permanent Opening Names of slLinearizer Interface

Create an slLinearizer interface to the scdcascade model, and add some analysis points to the interface.

sllin = slLinearizer('scdcascade',{'u1','y1'});

Suppose you are interested in analyzing only the inner loop. So, add y1m as a permanent opening of sllin.

addOpening(sllin,'y1m');

In larger models, you may want to open multiple loops to isolate the system of interest.

After performing some additional steps, such as adding more points of interest and extracting transfer functions, suppose you want a list of all the openings of sllin.

op_names = getOpenings(sllin)
op_names = 

    'scdcascade/Sum/1[y1m]'

Input Arguments

expand all

s — Interface to Simulink® modelslLinearizer interface | slTuner interface

Interface to a Simulink model, specified as either an slLinearizer interface or an slTuner interface.

Output Arguments

expand all

op_names — Permanent opening namescell array of strings

Permanent opening names, returned as a cell array of strings.

Each entry of op_names follows the pattern, full block path/outport number/[signal name].

Was this topic helpful?