simscape.connectionPortProperties
Get information about names, labels, and connection types of physical modeling ports
Since R2025a
Description
ConnectionPortProperties
objects contain properties corresponding
to the names, labels, and connection types of physical modeling ports of a block or a
subsystem. All properties are read-only. Each ConnectionPortProperties
object
corresponds to a single physical modeling port. You can use the
ConnectionPortProperties
object to find out the port name corresponding to
a port label on the model canvas, and then use this name to add programmatic connections
between ports by using the simscape.addConnection
function.
Creation
The simscape.connectionPortProperties
function (described here)
returns a vector of ConnectionPortProperties
objects for the physical ports
of a block. To get information about the name, label, and connection type of a particular
block port, index into the vector.
Description
Input Arguments
Output Arguments
Properties
Examples
Version History
Introduced in R2025a