How to distinguish between different time blocks and proprieties

조회 수: 4 (최근 30일)
YASSER
YASSER 2024년 10월 1일
편집: Shubham 2024년 10월 7일
I am very confused between different time stage or topologies like in photo for simulink
-Power gui sample time
-Solver fixed time
And blocks sample time
Each one has own value
Is there any rule to respect when choosing seting time for each configuration
picture attached

채택된 답변

Shubham
Shubham 2024년 10월 2일
편집: Shubham 2024년 10월 7일
Hey Yasser,
I understand that the different sample times in Simulink can be confusing. Each sample time has a separate purpose.
  • The Step size (fundamental time step) for a Simulation determines the time intervals at which the solver computes the model’s states. For fixed-step solvers, you can specify the step size or let Simulink choose it automatically. A smaller step size increases accuracy but also increases simulation time.
  • Block Sample time is the time step at which the block states and outputs are updated in a simulation. Different blocks can have different sample times within a model.
  • The sample time for Powergui block is used to ensure the electrical system’s dynamics are captured accurately, whereas block sample time is set to control the execution rate of specific blocks. Powergui block is specific for the electrical system in a simulation. Different systems can have different Powergui blocks.
For better results, ensure that the sample times of different blocks and the solver are consistent.
You may find the following MATLAB Answer useful for understanding the key difference between Simulation Step Size and Block Sample time: https://www.mathworks.com/matlabcentral/answers/1924525-what-is-the-difference-between-step-size-and-sample-time#answer_1187415
I hope this answers your query!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Power Transmission and Distribution에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by