1 3
Input Arguments
op — Operating point specification
operspec object
Operating point specification for a Simulink model, specified as an operspec object.
block — Block path
character vector | string
Block path that corresponds to an output specification in the Outputs property of op,
specified as a character vector or string that contains the path of one of the following:
- Root-level output of the model.
- Source block for a signal in the model to which an output specification has been
added. For more information on adding output specifications to a model, see
addoutputspec.
To see all the blocks that have output specifications, view the Outputs property of op.
op.Outputs
port — Output port
integer in the range [1,N]
Output port, specified as an integer in the range [1,N], where N is the number of output
ports on the specified block. If block is a root-level output port, then N is 1.
If you do not specify port, and there is one entry in the output array of op that
corresponds to the specified block, then the default value of port is the port number of
that entry. If there are multiple entries in the output array that correspond to the
specified block, then the default value of port is the port number of the first entry. For
an example, see “Get Index of Trim Output Specification Added To Signal” on page 15-
150.
To view the port number of the ith entry in the output array of op, type:
op.Outputs(i).PortNumber
getOutputIndex