Main Content

Utilities

R2026b
Required and commonly used blocks for setting simulation environment, interfacing with Simulink® models, and generating custom components on-the-fly

The Utilities library contains required and commonly used blocks for setting simulation environment, interfacing with Simulink models, and generating custom components on-the-fly.

This page also contains information about command-line workflows for creating models, programmatically adding and removing connections between physical ports, and setting up utilities for working with certain block types.

Simscape Blocks

Array Connection blockArray ConnectionConcatenate arrays of conserving connections into single array-of-nodes port (Since R2025a)
Connection Label blockConnection LabelVirtual connection between conserving ports
Connection Port blockConnection PortPhysical Modeling connector port for subsystem
Probe blockProbeOutput block variables as signals during simulation
PS-Simulink Converter blockPS-Simulink ConverterConvert physical signal into Simulink output signal
Simulink-PS Converter blockSimulink-PS ConverterConvert Simulink input signal into physical signal
Simscape Bus blockSimscape BusBus for conserving connection lines
Simscape Component blockSimscape ComponentDeploy Simscape language component as block
Solver Configuration blockSolver ConfigurationPhysical network environment and solver configuration
Variant Connector Block IconVariant ConnectorRemove or disconnect physical components from network

Blocks

Spectrum Analyzer blockSpectrum AnalyzerDisplay frequency spectrum

Functions

expand all

sscnewCreate new Simscape model populated by required and commonly used blocks (Since R2024b)
ssc_new(To be removed) Create new Simscape model populated by required and commonly used blocks
simscape.addConnectionConnect physical modeling ports (Since R2025a)
simscape.removeConnectionRemove connection lines between physical modeling ports (Since R2026a)
simscape.connectedPortsGet information about connected ports (Since R2026a)
simscape.connectionPortPropertiesGet information about names, labels, and connection types of physical modeling ports (Since R2025a)
Simulink.ConnectionBusSpecify properties of physical connection buses
Simulink.ConnectionElementSpecify properties of elements of physical connection buses
simscape.probe.VariableTableStore and manage block variable data for probing (Since R2024b)
simscape.probe.VariableConfigurationConfiguration of variable for probing (Since R2024b)
simscape.probe.defaultVariableTableConstruct default variable table for block (Since R2024b)
simscape.probe.getVariableTableView variable table attached to Probe block (Since R2024b)
simscape.probe.setVariableTableAttach existing variable table to Probe block (Since R2024b)

Topics

Basic Techniques

Connection Buses

Variants

Featured Examples