Rate Limiter in enabled subsystem

In the Rate Limiter documentation at "Extended Capabilities / C/C++ Code Generation" its mentioned, that this block can not be used inside a triggered subsystem hierarchy.
Can i use it in an enabled subsystem? Would this be any different?
Is there a similar block, that would work for code generation in enabled subsystems?

답변 (1개)

Paul
Paul 2026년 3월 16일 19:25

1 개 추천

I tried a Rate Limiter block inside an Enabled Subsystem and the simulation ran to completion in both Normal and Accelerator modes. Have to understand how that block works at the instant the subsystem is enabled, but that's a different question. I didn't try code generation if that means to generate code for an external application, but no reason to think that wouldn't work based on the doc page and the results under Accelerator mode.

댓글 수: 1

Lukas
Lukas 대략 2시간 전
Thanks Paul for the feedback. Yess, I used the simulink coder to generate code for an external application. I tested the Rate Limiter now in an Enabled Subsystem for code generation. The code behaves as expected.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

제품

릴리스

R2023a

질문:

2026년 3월 16일 12:20

댓글:

대략 2시간 전

Community Treasure Hunt

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

Start Hunting!

Translated by