Main Content

自定义simulink的系统对象金宝app

自定义System Object™用于使用MATLAB系统堵塞

MATLAB系统块启用MATLAB中定义的系统对象®在simulink中用作块金宝app®。为了控制块外观或输出,或在每个子系统中启用系统对象使用情况,请使用提供的实现方法自定义系统对象。有关定义系统对象的更多信息,请参阅定义基本系统对象orSystem Objects

Methods

展开全部

geticonimpl 名称显示为块图标
Getheaderimpl 系统对象显示标题
getInputNamesImpl MATLAB系统块输入端口的名称
GetOutputnamesimpl MATLAB系统块输出端口的名称
getPropertyGroupsImpl 系统对象显示的属性组
getSimustilusingImpl Specify value for Simulate using parameter
显示示例Impl Visibility of Simulate using parameter
Showfisettingsimpl 固定点数据类型选项卡的系统对象的可见性
允许ModelRefercediscretesmpletimeInheritanceImpl 离散样本时间的模型参考样本时间继承状态
GetGlobalNamesimpl MATLAB系统块的全局变量名称
getDiscreteStateImpl 离散状态属性值
getDiscretestatesPecificationImpl 离散的状态大小,数据类型和复杂性
getOutputDataTypeImpl Data types of output ports
getOutputSizeImpl 输出端口的尺寸
get金宝appSimulinkFunctionNamesimpl 登记金宝app您在您的功能名称中使用系统对象
getInterfaceimpl 系统对象作为消息或数据
isOutputComplexImpl 输出端口的复杂性
isOutputfixedSizeImpl 固定或变量大小的输出端口
ProcessTunedPropertiesImpl 可调属性发生变化时的动作
propagatedInputComplexity 输入的复杂性金宝app传播
传播inputdatate 数据类型的输入金宝app传播
传播inputifixedsize 固定尺寸的输入状态金宝app传播
传播inputsize 输入大小金宝app传播
ISInputDirectFeedThroughImpl Direct feedthrough status of input
outputimpl 输入或内部状态的输出计算系统对象
UpdateImpl 根据输入更新对象状态
CreateSampletime 创建示例时间规范对象
getSampletimeImpl 指定样本时间类型,偏移时间和样本时间
getAmpletime Query sample time
getCurrentTime MATLAB系统块中的当前仿真时间
setnumticksuntilnexthit 放the number of ticks in金宝app采样时间
金宝app支持SmultirInstanceImpl 金宝app支持每个子系统的Simulink中的对象金宝app

课程

展开全部

matlab.system.display.icon 自定义图标图像
matlab.system.display.Action 自定义按钮
matlab.system.display.Header 系统对象属性的标头
matlab.system.display.Section 系统对象的属性组部分
matlab.system.display.sectiongroup Section group for System objects

话题

概述

Define System Object for Use in Simulink

开发MATLAB系统堵塞and interactively preview block dialog box.

System Design in Simulink Using System Objects

使用系统对象的Simulink中的设金宝app计系统。

Block Appearance

自定义系统块外观

Customize theMATLAB系统块图标以及输入和输出名称。

Customize System Block Dialog Box

Customize theMATLAB系统堵塞dialog box by adding tabs, groups, description, and more.

Input and Output

设置模型参考离散样品时间继承

Disallow model reference discrete sample time inheritance for a System object.

在系统对象中使用全局变量

定义用于系统对象中的全局变量。

指定输出

If Simulink cannot infer the System object output characteristics, add methods to specify the size, data type, complexity, or discrete state output.

Special Use Cases

Use Update and Output for Nondirect Feedthrough

使用该系统对象实现非方向UpdateImpl,,,,outputimpl,,,,andISInputDirectFeedThroughImpl方法。

使能够每个Subsystem Support

使能够每个subsystem support by using a System object in a Simulink每个subsystem.

指定MATLAB系统块系统对象的示例时间

此示例显示了如何使用System Object™方法来控制MATLAB系统块的样本时间。

相关信息

特色示例