How to find the variable that defined Ts
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
JI HOON YOON
am 19 Jun. 2017
Kommentiert: Mohamed Elgbaily
am 11 Okt. 2021
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
0 Kommentare
Akzeptierte Antwort
Vishal Neelagiri
am 22 Jun. 2017
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 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Model, Block, and Port Callbacks finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!