Info

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

Simevents: Schedule a Signal Change or Function Call in delta_t

조회 수: 1 (최근 30일)
Daniel Huber
Daniel Huber 2013년 5월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
I am looking for an efficient way to model this:
A function subblock receives a function-call and calculates a delta_t. In delta_t time in the future I want release-gate to open. The entity which leaves through the gate then creates a new function call for the above mentioned function subblock. The problem is the 'In delta_t time in the future I want release-gate to open'. The only way I could figure out how to do this is to create an entity and process it for delta_t in a server and then link the number-of-processed-entities statistic from the server to the Release-Gate. But since this is a runtime-relevant process with a high frequency I am looking for a more efficient way to do this.
Any ideas?
Thanks, Daniel

답변 (1개)

Devdatt Lad
Devdatt Lad 2013년 5월 13일
Check out the "Signal Based Function Call Generator" block which can delay an input function-call in time. If it receives a function-call at time t, it can output another function-call at time t+delta where delta is a parameter on the dialog, or read from the value of another signal.

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by