Finding the value of a signal before and at the time of the event in Simulink? Other than using "ToWorkspace' block of simulink.

1 回表示 (過去 30 日間)
I have simulink model IEEE39 Test system (Transmission Network System). I want to calculate a factor K = Δθr - Δθs ,so Δθr= regional angle behaviour and Δθs= system wide angular behaviour, where Δθr = θrp - θra i.e. (θrp = pre-event value and θra = at the time of event value) . Similary for the Δθs , it has pre-event system value and 'at the time of event' value. So, when I start the simulation and add an event (a fault or any disturbance), I need to calculate this factor while the simulation is running. I don't want to send the values to workspace and run the simulation twice therefore need suggestions/assistance in this regard. Thank you.
  1 件のコメント
Taimoor Khan Mehmand
Taimoor Khan Mehmand 2022 年 2 月 10 日
So basically I have a signal theta and I want to calculate it's value before the event and at the time of the event.

サインインしてコメントする。

採用された回答

Benjamin Thompson
Benjamin Thompson 2022 年 2 月 10 日
Use the event to trigger an enabled subsystem. Theh output of an enabled subsystem only changes when or while it is triggered, so you could connect that to a display or scope block. Possibly two enabled subsystems depending on how you are defining the event signals.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by