Simulinkのシ​ミュレーション中に現​在のシミュレーション​時間を変数として取得​する方法はありますか​?

Simulinkのシミュレーション中にClockブロックにて信号としてシミュレーション時間が取得できますが、
これを変数や関数として取得し、他ブロック(SimEventsのEntity Generator内のGenerate action)で使用する方法はありますでしょうか。
Clockブロックは連続値であるため、Simulink functionによる関数化はできませんでした。

 Respuesta aceptada

Toshinobu Shintai
Toshinobu Shintai el 1 de Ag. de 2023
Editada: Toshinobu Shintai el 1 de Ag. de 2023

1 voto

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

Más respuestas (0)

Categorías

Más información sobre 離散イベント シミュレーション en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!