フィルターのクリア

Build error in Simulink

12 ビュー (過去 30 日間)
Alexander Tuma
Alexander Tuma 2024 年 2 月 29 日
コメント済み: Alexander Tuma 2024 年 4 月 12 日
I have just a S-Function Builder in my model which compiles successfully, but when i try to build the whole model i get the error
Changing property 'MakeCommand' is not allowed
The only "solution" is to make a new blank model and copy the S-Function Builder Block to the new model. This works for some time until it starts to throw the above error.
I would be very grateful for any help.
  2 件のコメント
akshatsood
akshatsood 2024 年 3 月 5 日
Could you please share your model so that I can reproduce the issue on my end.
Thanks
Alexander Tuma
Alexander Tuma 2024 年 3 月 15 日
sorry for my late reply. I attached the simulink file.
I don't know if you would need all linked source and header files for the S-Function Builder. If so, i would try to make a minimal example since i have a really big number of source files for my S-Function Builder.
Thanks

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

回答 (1 件)

Satwik
Satwik 2024 年 3 月 28 日
To resolve the issue you are encountering, you might find this MATLAB answer helpful, which outlines steps to address a very similar issue : https://www.mathworks.com/matlabcentral/answers/841420-i-get-the-error-changing-property-unconnectedlinemsg-is-not-allowed-when-using-a-block-from-the
Should this not resolve your issue, please feel free to share your source and header files along with the model, so that I can try to reproduce the issue on my end.
  1 件のコメント
Alexander Tuma
Alexander Tuma 2024 年 4 月 12 日
thank you for your replay. Unfortunatelly it does not resolve my problem.
Nevertheless, I came across a workaround. The problem is that when I run the S-Function Builder and then go to Settings/Code Generation, in the grayed out "Make command" field there are additional commands next to make_tct (those used in the S-Function Builder). And Simulink does not allow additional commands there. These additional commands disappear if I briefly switch to another system target file and then back to my actual one. This has the disadvantage that I have to re-enter all non-standard settings.

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

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by