Borrar filtros
Borrar filtros

How to use Integrator block inside Triggered subsystem?

1 visualización (últimos 30 días)
Suraj Parasuram
Suraj Parasuram el 26 de Mzo. de 2022
Respondida: Pratik el 4 de En. de 2024
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:

Respuestas (1)

Pratik
Pratik el 4 de En. de 2024
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.

Categorías

Más información sobre Event Functions en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by