声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3018|回复: 1

请教仿真中同时使用采样保持和多路选择开关的问题

[复制链接]
发表于 2007-4-13 16:25 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
在用matlab进行仿真时,出现了这样的问题,烦请大伙看看,这是什么原因?
将一个正弦波形进行采样保持,送到多路选择开关里面的一个输入端口,进行仿真时出现了问题,matlab显示Zero-Order Hold的错误如下:
Illegal rate transition found involving Zero Order Hold 'shanqu/Subsystem/Zero-Order Hold'. When using it to transition rates, the input must be connected to the fast sample time and the output must be connected to the slow sample time. The Zero Order Hold must have a sample time equal to slow sample time and the slow sample time must be a multiple of the fast sample time. Also, the sample times of all sources must be the same value.
显示多路选择开关的错误如下:
Illegal rate transition found involving 'shanqu/Subsystem/Multiport Switch2' at input port 5. A Rate Transition must be inserted between them
但是我将采样保持Zero-Order Hold去掉,直接把数据送到多路选择开关,仿真又正常,请问这是什么原因啊.会不会是采样保持的速率(0.001)和多路选择的速率(0.02/6)不一样所致啊,
回复
分享到:

使用道具 举报

发表于 2007-4-15 14:50 | 显示全部楼层
可能,按照道理来说,应该采样速率和选咱速率一样,否则开关不知道该如何来做。
具体的情况如果你研究出来请跟大家分享,谢谢
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-12 06:34 , Processed in 0.050116 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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