What is difference between mdlInitializeConditions and mdlStart?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
Is there any difference between mdlInitializeConditions and mdlStart in s-function?
Thanks,
Vit
0 件のコメント
回答 (1 件)
Dhaniklal
2023 年 1 月 18 日
Hi,
I understand that you would like to know the difference between mdlInitializeConditions and mdlStart and I assume that you know why these functions are used.
In terms of how and when these should be used, there would be a difference. Let's say your S-function is part of an enabled subsystem and needs to be reinitialized whenever the subsystem is enabled. Then use mdlInitializeConditions instead of mdlStart.
For more information, please follow the below links:
mdlInitializeConditions : Initialize the state vectors of this C MEX S-function - MATLAB mdlInitializeConditions - MathWorks India
Hope this helps!
Thanks,
Dhaniklal
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Block and Blockset Authoring についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!