How to use Integrator block inside Triggered subsystem?
이전 댓글 표시
Hi,
I am trying to use a Extended Kalman Filter for doing Orbit Estimation. One of the functions that I am using is a Simulink Function. Apparently when I am trying to use the integrator block it throws an error saying that the sample time for the Integrator block is 0. It should be set to -1 (inherited) since it is part of a Triggered subsystem.
Is there a way to use an integrator block inside such a system? Any guidance on this will be helpful for me.
Thank you.
Screenshot of error:

답변 (1개)
Pratik
2024년 1월 4일
0 개 추천
Hi Suraj,
As per my understanding, you are getting an error when using the Integrator block inside a Triggered Subsystem. According to the error message, the sample time of the integrator block is “0”, but it should be inherited when it is in a triggered subsystem.
Since there is an error regarding the sample time, it can be inferred that the block is Discrete-Time Integrator block. A sample time of “0” cannot be set for the block because this value specifies a continuous sample time, which the Discrete-Time Integrator block does not support.
To make the sample time inherited, change the sample time of the block to “-1”. To set the sample time of a block interactively:
- In the Simulink model window, double-click the block. The block parameter dialog box opens.
- Enter the sample time in the Sample time field.
- Click OK.
When the sample time is set to be inherited, please verify that the upstream block uses a discrete sample time. For example, the Discrete-Time Integrator block cannot inherit a sample time of “0”.
Please refer to the documentation on “Specify Sample Time” and “Discrete-Time Integrator” for more information:
- www.mathworks.com/help/simulink/ug/how-to-specify-the-sample-time.html
- www.mathworks.com/help/simulink/slref/discretetimeintegrator.html
I Hope this helps.
카테고리
도움말 센터 및 File Exchange에서 Get Started with Aerospace Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!