MATLAB System ブロックを使うと、現在のシミュレーション時間を得ることができます。このブロックは、Simulink Functionの中で使えますので、「SimEventsのEntity Generator内のGenerate action」でも使える可能性があります。(私はSimEventsのEntity Generator内のGenerate actionがよく分かっておらず、そちらでは確認はしておりません)
添付ファイルをご確認ください。
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1447047/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1447052/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!