设置callback以在每个模拟步骤的开始时为每个外部根导入端口块指定数据
在= si金宝appmulink.compiler.setExternalInputsFcn (
函数注册一个回调函数,该回调函数动态地为指定的每个外部根输入端口块提供值在
,@(id, time) getInput(id, time)
)id
在指定的时间
在模型的根级进行模拟。回调函数需要返回要在导入块上设置的值。要从回调返回值,请使用以下语法:返回值= getInput(id, time)
.
sim卡
|金宝app仿真软件。SimulationInput
|世纪挑战集团
|deploytool
|exportToFMU2CS
|金宝appsimulink.compiler.configureForDeployment