请教仿真中同时使用采样保持和多路选择开关的问题
在用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)不一样所致啊, 可能,按照道理来说,应该采样速率和选咱速率一样,否则开关不知道该如何来做。
具体的情况如果你研究出来请跟大家分享,谢谢
页:
[1]