필터 지우기
필터 지우기

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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by