blk = {'scdbusselection/COUNTERBUSCreator','scdbusselection/COUNTERBUSCreator'};
port_num = [1 1];
bus_elem_name = {'limits.upper_saturation_limit','data'};
Both bus elements originate at the first (and only) port of the scdbusselection/
COUNTERBUSCreator block. Therefore, blk and port_num repeat the same element
twice.
Input Arguments
s — Interface to Simulink model
slLinearizer interface | slTuner interface
Interface to a Simulink model, specified as either an slLinearizer interface or an
slTuner interface.
pt — Opening
character vector | string | cell array of character vectors | string array | vector of
linearization I/O objects
Opening to add to the list of permanent openings on page 15-281 for s, specified as:
- Character vector or string — Signal identifier that can be any of the following:
- Signal name, for example 'torque'
- Block path for a block with a single output port, for example 'Motor/PID'
- Path to block and port originating the signal, for example 'Engine Model/1' or
'Engine Model/torque'
- Cell array of character vectors or string array — Specifies multiple signal identifiers.
For example, pt = {'Motor/PID','Engine Model/1'}. - Vector of linearization I/O objects — Use linio to create pt. For example:
pt(1) = linio('scdcascade/setpoint',1)
pt(2) = linio('scdcascade/Sum',1,'output')
Here, pt(1) specifies an input, and pt(2) specifies an output. However, the software
ignores the I/O types and adds them both to the list of permanent openings for s.
blk — Block path identifying block where opening originates
character vector (default) | string | cell array of character vectors | string array
addOpening