フィルターのクリア

Simulink function block output not resolving to signal

12 ビュー (過去 30 日間)
Haroon Zafar
Haroon Zafar 2023 年 6 月 7 日
回答済み: Haroon Zafar 2023 年 6 月 8 日
I am trying to generate a signal driving a current source using a function block in Simulink. But I am getting errors about the output ”Iharm”. The function works fine in Matlab workspace but not working in simulink environment.
Error:
Output 'Iharm' has variable size but the upper bound is not specified; explicit upper bound must be provided.
Or “Iharm” can not resolve to signal object.
I have tried specifying the bounds using assert and coder.varsize, but still error is there. Also specifying “Data must resolve to signal object” in Model workspace does not seem to work.
Simulink model is attached if anyone can help me to resolve this issue.

採用された回答

Haroon Zafar
Haroon Zafar 2023 年 6 月 8 日
Issue is resolved now...
Go to Model Explorer... Select the function block and corresponding function output.
Change the Type from "Inherit: Same as Simulink" to Double or any other data type.
Corrected model is attached.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by