필터 지우기
필터 지우기

Integrator loop in a For iterator subsystem

조회 수: 3 (최근 30일)
Phumelele Magagula
Phumelele Magagula 2022년 8월 29일
답변: Mayank Sengar 2022년 9월 2일
Hi,
I want to use an integrator in a for iterator subsystem but I get an error saying my integrator has time sample of 0. How can I fix this? If using integrators in a for iterator is not possible what alternatives can I use?

답변 (1개)

Mayank Sengar
Mayank Sengar 2022년 9월 2일
Can you give more information about your end goal using this operation because according to my understanding a Continuous Integrator block and a Discrete-Time Integrator block cannot be put into a For Iterator Subsystem. The first block has a Continuous sample time which does not exist in a for iterator subsystem. The latter also outputs a nice error message:
"Iterator subsystem 'untitled/For Iterator Subsystem' cannot contain block 'untitled/For Iterator Subsystem/Discrete-Time Integrator' because this block requires a service that maintains the time that has elapsed between two consecutive executions. Since the iterator subsystem can be executed multiple times at a given time step, the concept of elapsed time is not well-defined between two such executions."

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by