24小时热门版块排行榜    

查看: 2875  |  回复: 0

supernhj

木虫 (小有名气)

[求助] SIMULINK S函数编写的模型提示采样时间有错

按《精通MATALB》这本书上做了两个例题,先是连续系统S-函数描述,然后仅将其中的S-function部分改变成了离散,其他参数都没动,但系统提示错误:
The sample time 1 of 'exa07_11/S-Function' at input port 1 is different from the sample time [0, 0] of 'exa07_11/Sine Wave' at output port 1. Consider inserting a Rate Transition block between the two ports. Alternatively, you can control the diagnostic action for unspecified rate transitions by changing the option "Multitask (or Single task) rate transition" on the Sample Time Diagnostics pane of the Configuration Parameters dialog box.
Component: Simulink | Category: Block error

我理解的是说采样时间不对,但同样的设置前面做的连续系统的就能通过。
模型图在附件中,望高人指点。

SIMULINK S函数编写的模型提示采样时间有错
模型图.jpg
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 supernhj 的主题更新
信息提示
请填处理意见