How can convert variable-size signal ?
古いコメントを表示
Hi, I am getting this error in simulink. can anybody help how can be removed this error ? I only get this error when I attach switch with my ADC block. Also, I have attached the design snap.
The signal at input port 1 of 'ADC_Sign_E_ref_12/Switch2' is a variable-size signal with a nondiscrete sample time. The sample time for any variable-size signal must be discrete.
4 件のコメント
Walter Roberson
2018 年 11 月 12 日
What are the ADC blocks? They look like they are most likely to be analog to digital conversion, but analog to digital conversion requires finite time and so should be on a discrete clock instead of continuous time like you have now.
Sarfaraz Ahmed
2018 年 11 月 12 日
編集済み: Sarfaraz Ahmed
2018 年 11 月 12 日
Walter Roberson
2018 年 11 月 12 日
When a MATLAB Function Block is used, Simulink would tend to assume that the output is variable length. I would not count on the analyzer being able to prove that the output will be scalar: I would recommend configuring the output port.
Also can you post the code so we can see if there is an accidental variable length output path?
Sarfaraz Ahmed
2018 年 11 月 12 日
編集済み: Sarfaraz Ahmed
2018 年 11 月 13 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Data Types についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!