主要内容

实用工具

R2026b
设置仿真环境、与 Simulink® 模型对接以及动态生成自定义组件所需的常用模块

Utilities 库中包含设置仿真环境、与 Simulink 模型对接以及动态生成自定义组件所需的常用模块。

本页还包含有关以下操作的命令行工作流的信息:创建模型,以编程方式添加和删除物理端口之间的连接,以及设置用于使用某些模块类型的实用工具。

Simscape 模块

Array Connection blockArray ConnectionConcatenate arrays of conserving connections into single array-of-nodes port (自 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 Converter将物理信号转换为 Simulink 输出信号
Simulink-PS Converter blockSimulink-PS Converter将 Simulink 输入信号转换为物理信号
Simscape Bus blockSimscape BusBus for conserving connection lines
Simscape Component blockSimscape ComponentDeploy Simscape language component as block
Solver Configuration blockSolver Configuration物理网络环境与求解器配置
Variant Connector Block IconVariant ConnectorRemove or disconnect physical components from network

模块

Spectrum Analyzer blockSpectrum AnalyzerDisplay frequency spectrum

函数

全部展开

sscnew创建填充有必需和常用的模块的新 Simscape 模型 (自 R2024b 起)
ssc_new(即将删除)创建填充有必需和常用的模块的新 Simscape 模型
simscape.addConnectionConnect physical modeling ports (自 R2025a 起)
simscape.removeConnectionRemove connection lines between physical modeling ports (自 R2026a 起)
simscape.connectedPortsGet information about connected ports (自 R2026a 起)
simscape.connectionPortPropertiesGet information about names, labels, and connection types of physical modeling ports (自 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 (自 R2024b 起)
simscape.probe.VariableConfigurationConfiguration of variable for probing (自 R2024b 起)
simscape.probe.defaultVariableTableConstruct default variable table for block (自 R2024b 起)
simscape.probe.getVariableTableView variable table attached to Probe block (自 R2024b 起)
simscape.probe.setVariableTableAttach existing variable table to Probe block (自 R2024b 起)

主题

基本方法

连接总线

变体

精选示例