simulink.compiler.setExternalInputsFcn
设置回调以在每个模拟步骤开始时指定数据到每个外部根导入端口块
描述
在= simulink.compiler.setExternalInputsFcn (
函数注册一个回调函数,该回调函数为指定的每个外部根输入端口块动态提供值在
,@(id, time) getInput(id, time)
)id
在指定的时间
在模拟过程中模型的根级别。回调函数需要返回要在导入块处设置的值。要从回调函数返回值,请使用以下语法,returningValue = getInput(id, time)
.
例子
输入参数
版本历史
介绍了R2020b