Can I make the sampling time changeable during the simulation in simulink?

1 回表示 (過去 30 日間)
Hussein Sharadga
Hussein Sharadga 2019 年 10 月 12 日
回答済み: Samatha Aleti 2019 年 10 月 15 日
Can I make the sampling time changeable during the simulation?
For example, I want the sample time to be 0.0005 in the beginning and then change it to 0.00001 after 3 seconds.
I am using simulink to build contoller for PV system and I want the sampling time to be changeable.
I used the continous type for simulation.

回答 (1 件)

Samatha Aleti
Samatha Aleti 2019 年 10 月 15 日
Sample time cannot be changed during simulation. To change a sample time after simulation begins, you must stop the simulation, reset the SampleTime parameter and then restart execution. Refer the following link for more details:

カテゴリ

Help Center および File ExchangeSpecialized Power Systems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by