Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Fixed step call to mex file and continous block

1 回表示 (過去 30 日間)
Lila Lotus
Lila Lotus 2020 年 9 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Dear all,
I have a mex function which MUST be called exactly every simulated millisecond.
This mex block is instantiated in a simulink model, whcih has continues blocks (like 1/s, PT1) ...
If I select fixed step solver, then the the whole simulink model is fix step and I get a error, that continues functions are used.
If I select euler1 solver or other one, how do I guaranty that mex function is call exactly every milisecond. (exactly means, for example 1ms +/- certain N nanosec)
What is the best approach to have a fix type mex inside of continues model.
Thank you!

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by