MATLAB System ブロックを使うと、現在のシミュレーション時間を得ることができます。このブロックは、Simulink Functionの中で使えますので、「SimEventsのEntity Generator内のGenerate action」でも使える可能性があります。(私はSimEventsのEntity Generator内のGenerate actionがよく分かっておらず、そちらでは確認はしておりません)
添付ファイルをご確認ください。


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