필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

S_function cycled several steps per simulation step. How to control it?

조회 수: 1 (최근 30일)
Cristian JECU
Cristian JECU 2015년 10월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
I have attached an example of the next problem:
In simulink a simple S-function with at least one variable input will be cycled several steps during a single simulation step. I added another S-function that doesn't have any inputs. Both do the same thing, compute the number of times they have been played. I added the same computation with simulink basic blocks to have a reference. The number of cycles the S-function is played varies according to the nature of the input(s).
The final use is not counting the steps, these counters were created only to show the problem narrowing down to the most basic structure that includes the persistent function (needed for the final use).

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by