필터 지우기
필터 지우기

How to use Integrator block inside Triggered subsystem?

조회 수: 1 (최근 30일)
Suraj Parasuram
Suraj Parasuram 2022년 3월 26일
답변: Pratik 2024년 1월 4일
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
Pratik 2024년 1월 4일
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:
  1. In the Simulink model window, double-click the block. The block parameter dialog box opens.
  2. Enter the sample time in the Sample time field.
  3. 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:
  1. www.mathworks.com/help/simulink/ug/how-to-specify-the-sample-time.html
  2. www.mathworks.com/help/simulink/slref/discretetimeintegrator.html
I Hope this helps.

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by