Warnings for Non-existent Ports in a Matlab Function Block

2 ビュー (過去 30 日間)
Niel
Niel 2014 年 4 月 1 日
コメント済み: Niel 2014 年 4 月 1 日
Hi all
I have a rather large model in Simulink. When it runs, it gives me a number of warnings similar to the following one:
Warning: Block 'SS_SplitSimulink_Model1/MATLAB I1/ SFunction ' output 'Inf'
for element 23 of output port 2 at minor time step 0.00016552
The strange thing is that the "MATLAB I1" block has only one output port. Is there any way in which a Matlab function block can have something like hidden ports? I get 'Inf" and "NaN" warnings, which is obviously quite troubling...
I apologise if I'm not giving enough info.

採用された回答

Niklas Nylén
Niklas Nylén 2014 年 4 月 1 日
編集済み: Niklas Nylén 2014 年 4 月 1 日
If the S-function was generated in Real time workshop/Simulink coder you can right click MATLAB I1 and select Look under mask. You should be able to see another "layer" where more outputs may exist.
  3 件のコメント
Niklas Nylén
Niklas Nylén 2014 年 4 月 1 日
編集済み: Niklas Nylén 2014 年 4 月 1 日
Possibly outport 2 inside the S-function is only used for internal feedback and that is why there is no second outport on 'MATLAB I1'. As far as I know it is not possible to look inside an S-function unless you have access to the source code.
Niel
Niel 2014 年 4 月 1 日
Thank you, Niklas. It sounds good. If you get another idea in time, feel free to share =)

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by