本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。

通过 System object 实现模块

通过使用 MATLAB System 模块在 Simulink® 中使用 System object™

MATLAB System 模块使用 System object 在 Simulink 中实现 MATLAB® 算法。在开始使用 MATLAB System 模块之前,必须具有 System object 以与模块关联。System object 是一种特殊的 MATLAB 类,它们专为动态系统的实现和仿真而设计。

模块

MATLAB System在模型中包含 System object

示例和操作指南

Implement a MATLAB System Block

Implement a block and assign a System object to it.

Change Blocks Implemented with System Objects

Implement a block with another System object.

Specify Sample Time for MATLAB System Block

The sample time of a block is a parameter that indicates when the block produces an output, and eventually updates its internal state.

Call Simulink Functions from MATLAB System Block

Learn to call a Simulink function from a MATLAB System block

Change Block Icon and Port Labels

Change the icon appearance of your block.

Add and Implement Propagation Methods

To define output specifications, use propagation methods.

Use System Objects in Feedback Loops

Process nondirect feedthrough data through the System object.

Share Data with Other Blocks

Share data between MATLAB System and other blocks using the global keyword and the Data Store Memory block or Simulink.Signal object.

概念

MATLAB System 模块

使用 System object 实现您自己的算法。

Mapping System Object Code to MATLAB System Block Dialog Box

The System object source code controls the appearance of the block dialog box.

Simulation Modes

You can use MATLAB System block in Simulink models for simulation via interpreted execution or code generation.

Simulink Engine Interaction with System Object Methods

Follow a process view of the order in which the MATLAB System block invokes System object methods within the context of the Simulink engine.

Nonvirtual Buses and MATLAB System Block

Use nonvirtual buses as input and output signals

Share Data with Other Blocks

Share data between MATLAB System and other blocks using the global keyword and the Data Store Memory block or Simulink.Signal object.

Considerations for Using System Objects in Simulink

Consider these guidelines when working with variable-size signals, tunable parameters, and For Each subsystems.

疑难解答

Troubleshoot System Objects in Simulink

Use these guidelines to troubleshoot System objects in Simulink.

相关信息

System object (MATLAB)

特色示例