How to find the variable that defined Ts

19 ビュー (過去 30 日間)
JI HOON YOON
JI HOON YOON 2017 年 6 月 19 日
コメント済み: Mohamed Elgbaily 2021 年 10 月 11 日
Hello,
I suffered difficult to change pre-defined Ts (Sample Time) in Simulink Example. I will merge two Simulink examples which have different Ts. However, examples have pre-defined Ts so that I could not find where it was defined. No M file..
Anyone helps me how to change the value of pre-defined Ts (Ts_Control) in Simulink? (Simpower Example, power_hvdc_vsc.slx)
Thanks in advance
Regards

採用された回答

Vishal Neelagiri
Vishal Neelagiri 2017 年 6 月 22 日
The 'Ts_Control' value is defined in the 'Init' callback of the model. You can access it by right clicking anywhere on your model -> Model Properties -> Callbacks -> InitFcn. The code specified in the 'InitFcn' callback is automatically run during the initialization phase of the model.
  1 件のコメント
Mohamed Elgbaily
Mohamed Elgbaily 2021 年 10 月 11 日
Thanks. it works

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

その他の回答 (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