MATLAB Answers

How to resolve this error "illegal rate transition found" of ANN block in Simulink Real-Time workshop

5 ビュー (過去 30 日間)
Zakarya Omar
Zakarya Omar 2020 年 9 月 14 日
コメント済み: Zakarya Omar 2020 年 9 月 19 日
I used nftool to create ANN simulink block to be used in Real-Time workshop. A problem appeared in the ANN block after running the building Real-Time target. the error message is "illegal rate transition found" - sample time [1 0] of nn is different from sample time [0.001 0] of its source.
Knowing that the sampling rate of the training data is 0.001, and the Real-Time system sampling rate is 0.001 as well..

  0 件のコメント

サインインしてコメントする。

採用された回答

Nitin Kapgate
Nitin Kapgate 2020 年 9 月 18 日
It appears that the sample time for “nn” is set to [1 0] while that for its source is set to [0.001 0]. In your case, changing the “sample time” for “nn” to [0.001 0] should resolve your issue. Here is a guide that will help you to resolve the Rate Transition issues in Simulink.

  1 件のコメント

Zakarya Omar
Zakarya Omar 2020 年 9 月 19 日
thanks for your response
I 've solved the issue by setting the sampling time of the internal blocks of ANN simulink block to either 0.001 or (-1) inherent , and it worked..

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by