Error in default port dimensions function of S-function

7 ビュー (過去 30 日間)
Manikandan Raju
Manikandan Raju 2021 年 8 月 27 日
コメント済み: Manikandan Raju 2021 年 8 月 31 日
Hii,
I am trying to simulate a model predictive control based drive system. While simulating the model, I am getting the following Error.
Caused by:
I have attached the simulink model and error file.
I need help in this regard. Thanks in advance.
With regards,
Manikandan Raju

回答 (1 件)

Shadaab Siddiqie
Shadaab Siddiqie 2021 年 8 月 30 日
You can follow one of these workarounds to fix this issue.
  1. Please set the size on all ports for which the error is reported (don't forget to subtract one from the reported numbers!).
  2. Sometimes, Shortening the model file name fixed this issue in at least one case. (The name had been over 68 characters.) Error might possibly be something to do with the filename being too long, so MATLAB was reading the first so many characters and getting multiple files that differ in name only after the cutoff confused.
  1 件のコメント
Manikandan Raju
Manikandan Raju 2021 年 8 月 31 日
Hiii Mr.shadaab ,Thanks for your reply. I tried the second fix, but it is not resolved the issue. But I don't know how to change the port size. Need your suggestions.
With Regards,
Manikandan Raju

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

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by