Documentation

同步Subsystem

表示具有同步重置和启用行为的子系统

图书馆

HDL编码器/ HDL Subsystems

描述

A同步Subsystem是使用同步mode of the国家控制block. If anS符号出现在子系统中,然后是同步。

创建一个同步Subsystem, add the block to your Simulink®来自HDL子系统块库的模型。您也可以添加国家控制State controlset to同步inside a subsystem. For more information about the国家控制block, see国家控制.

数据类型支持万博1manbetx

See企业for information on the data types accepted by a subsystem's input ports. See外港for information on the data types output by a subsystem's output ports.

有关更多信息,请参阅Data Types Supported by Simulinkin the Simulink documentation.

Parameters

显示端口标签

导致Simu万博1manbetxlink软件在子系统的图标上显示子系统端口的标签。

设置

Default:FromPortIcon

没有任何

Does not display port labels on the subsystem block.

FromPortIcon

If the corresponding port icon displays a signal name, display the signal name on the subsystem block. Otherwise, display the port block's name.

FromportBlockName

Display the name of the corresponding port block on the subsystem block.

信号名称

如果存在名称,请显示连接到子系统块上端口的信号的名称;否则,相应的端口块的名称。

命令行信息

See特定于块的参数for the command-line information.

读/写许可

Control user access to the contents of the subsystem.

设置

Default:ReadWrite

ReadWrite

Enables opening and modification of subsystem contents.

ReadOnly

启用开放但不修改子系统。如果子系统驻留在块库中,则可以创建并打开指向子系统的链接,并可以制作和修改子系统的本地副本,但不能更改权限或修改原始库实例的内容。

NoReadOrWrite

Disables opening or modification of subsystem. If the subsystem resides in a library, you can create links to the subsystem in a model but cannot open, modify, change permissions, or create local copies of the subsystem.

命令行信息

See特定于块的参数for the command-line information.

错误回调功能的名称

Enter name of a function to be called if an error occurs while Simulink software is executing the subsystem.

设置

Default:' '

Simulink software passes two arguments to the function: the handle of the subsystem and a character vector that specifies the error type. If no function is specified, Simulink software displays a generic error message if executing the subsystem causes an error.

命令行信息

See特定于块的参数for the command-line information.

允许分层分辨率

指定是否解决该子系统引用的工作空间变量的名称。

设置

Default:全部

全部

解决该子系统使用的所有工作区变量的所有名称,包括用于指定块参数值和Simulink数据对象的所有名称(例如,万博1manbetx万博1manbetxsimulink.signalobjects).

显式

Resolve only names of workspace variables used to specify block parameter values, data store memory (where no block exists), signals, and states marked as “must resolve”.

没有任何

请勿解析任何工作区变量名称。

命令行信息

See特定于块的参数for the command-line information.

对待联合国原子it

Causes Simulink software to treat the subsystem as a unit when determining the execution order of block methods.

设置

Default:离开

Cause Simulink software to treat the subsystem as a unit when determining the execution order of block methods. For example, when it needs to compute the output of the subsystem, Simulink software invokes the output methods of all the blocks in the subsystem before invoking the output methods of other blocks at the same level as the subsystem block.

离开

Cause Simulink software to treat all blocks in the subsystem as being at the same level in the model hierarchy as the subsystem when determining block method execution order. This can cause execution of methods of blocks in the subsystem to be interleaved with execution of methods of blocks outside the subsystem.

Dependencies

This parameter enables:

命令行信息

See特定于块的参数for the command-line information.

在传播变体条件时分组为分组

Causes Simulink software to treat the subsystem as a unit when propagating variant conditions from变体源blocks or to变体水槽块。

设置

Default:

Simulink treats the subsystem as a unit when propagating variant conditions from变体源blocks or to变体水槽块。For example, when Simulink computes the variant condition of the subsystem, it propagates that condition to all the blocks in the subsystem.

离开

Simulink treats all blocks in the subsystem as being at the same level in the model hierarchy as the subsystem itself when determining their variant condition.

Dependency

在传播变体条件时分组为分组启用此参数。

命令行信息

See特定于块的参数for the command-line information.

Function packaging

Specify the code format to be generated for an atomic (nonvirtual) subsystem.

设置

Default:汽车

汽车

万博1manbetxSimulink编码器software chooses the optimal format for you based on the type and number of instances of the subsystem that exist in the model.

Inline

万博1manbetxSimulink编码器软件无条件地嵌入子系统。

不nreusable function

万博1manbetxSimulink编码器software explicitly generates a separate function in a separate file. Subsystems with this setting generate functions that might have arguments depending on theFunction interfaceparameter setting. You can name the generated function and file using parameters功能名称File name (no extension). These functions are not reentrant.

可重复使用的功能

万博1manbetxSimulink编码器软件生成具有参数的函数,该函数允许在模型包含子系统的多个实例时重复使用子系统代码。

此选项还可以生成一个具有参数的函数,该函数允许子系统代码在模型参考层次结构的生成代码中重复使用,该代码在引用模型中包含子系统的多个实例。在这种情况下,子系统必须在库中。

命令行信息

See特定于块的参数for the command-line information.

特征

Data Types

双|单|布尔|基础整数|定点|枚举|公共汽车

多维信号

Yes

Variable-Size Signals

Yes

HDL代码生成

Yes

Introduced in R2016a

这个话题有帮助吗?