Hyowinner的MBD技术论坛

 找回密码
 立即注册
搜索
查看: 263|回复: 6

函数调用子系统编译时内部报错是什么原因

[复制链接]

2

主题

6

帖子

32

积分

MBD实习生

Rank: 1

积分
32
发表于 2026-2-27 10:47:19 | 显示全部楼层 |阅读模式
The input(s) of the function-call subsystem 'Asw07_Mcu_Sar/Asw07_Mcu_Sub/Func_MCU/Func_ISP/FUNC_Ts400us_Cal' depend on the following source blocks, which appear within their own calling context: 'Asw07_Mcu_Sar/Asw07_Mcu_Sub/Func_MCU/Func_ISP/FUNC_Ts400us_Cal/LPF_Fw_10HzZG400us/Add'. This dependency might cause the inputs of the subsystem to not remain fixed over the duration of the function-call. It might also lead to code generation results differing from simulation results. Consider placing Function-Call Feedback Latch block(s) before corresponding input(s), or selecting the 'Latch input for feedback signals of function-call subsystem outputs' parameter on corresponding Inport blocks of the function-call subsystem.
回复

使用道具 举报

99

主题

247

帖子

4216

积分

管理员

校长

Rank: 9Rank: 9Rank: 9

积分
4216
QQ
发表于 2026-2-27 10:54:26 | 显示全部楼层
你的模型Function Call Subsystem构成的闭环?就是说这个子系统内部的值反馈到了自己的输入上,构成了代数环,却没有锁存Latch反馈信号。建议添加反馈锁存模块,将内部计算结果锁存后再反馈,打破代数环。
持续学习 未来有你
基于场景 解决问题
项目合作联系微信:Hyo_Matlab
回复

使用道具 举报

2

主题

6

帖子

32

积分

MBD实习生

Rank: 1

积分
32
 楼主| 发表于 2026-2-27 10:57:07 | 显示全部楼层
本帖最后由 shuige 于 2026-2-27 11:08 编辑
hyowinner 发表于 2026-2-27 10:54
你的模型Function Call Subsystem构成的闭环?就是说这个子系统内部的值反馈到了自己的输入上,构成了代数 ...
加了还报错

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

99

主题

247

帖子

4216

积分

管理员

校长

Rank: 9Rank: 9Rank: 9

积分
4216
QQ
发表于 2026-2-27 11:13:42 | 显示全部楼层

没看到Feedback Latch模块加到哪里的
持续学习 未来有你
基于场景 解决问题
项目合作联系微信:Hyo_Matlab
回复

使用道具 举报

2

主题

6

帖子

32

积分

MBD实习生

Rank: 1

积分
32
 楼主| 发表于 2026-2-27 11:49:52 | 显示全部楼层
hyowinner 发表于 2026-2-27 11:13
没看到Feedback Latch模块加到哪里的

两张图的模块输入口都一一加了编译的,不是同时加
回复

使用道具 举报

99

主题

247

帖子

4216

积分

管理员

校长

Rank: 9Rank: 9Rank: 9

积分
4216
QQ
发表于 2026-2-27 13:03:39 | 显示全部楼层
shuige 发表于 2026-2-27 11:49
两张图的模块输入口都一一加了编译的,不是同时加

这个Latch要看Function Call Subsystem外部系统图,内部其实没有什么影响。
持续学习 未来有你
基于场景 解决问题
项目合作联系微信:Hyo_Matlab
回复

使用道具 举报

2

主题

6

帖子

32

积分

MBD实习生

Rank: 1

积分
32
 楼主| 发表于 2026-2-28 14:29:46 | 显示全部楼层
hyowinner 发表于 2026-2-27 13:03
这个Latch要看Function Call Subsystem外部系统图,内部其实没有什么影响。

好的,感谢校长,我再研究一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|MBD全栈技术学校|苏ICP备2025212294号-1|Hyowinner校长B站首页|手机版|小黑屋|Hyowinner的MBD技术论坛

GMT+8, 2026-5-7 11:13 , Processed in 0.088263 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表