How to save the time of the simulink simulation on matlab?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I need to create an "if" block on simulink, the block must be triggered when the simulation time is =0. My idea was to save the simulation time of simulink on a matlab variable and then to use it on simulink in a constant block.
Someone knows how to do that?
1 件のコメント
Mathieu NOE
2020 年 10 月 26 日
hello
I have some difficulty to understand what your intention is
what is the reason to trigger (once ?) at t= 0 ?
or do you want to save a "hit" time when the trigger condition occurs ?
回答 (1 件)
Fangjun Jiang
2020 年 10 月 26 日
Use the Clock block in your Simulink model. It outputs the simulation time. Do whatever you want.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!