필터 지우기
필터 지우기

Info

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

How can I save the input value in the moment of activating a subsystem?

조회 수: 1 (최근 30일)
Philipp
Philipp 2013년 6월 13일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
I have a subsytem in Simulink with a variable input and I want to save the value of this input in the moment of activation of the subsystem. The subsystem is activated by an "If-Block".
I thought about saving the value with a "Data Store Write" Block. I need a Block in front of that, that lets the signal through only at the first step and afterwards blocks the signal. Or something like that.
Any ideas how I could do that?
Thanks in advance!
  댓글 수: 3
Philipp
Philipp 2013년 6월 16일
Is my question unclear? Should I be more precise? I thought the solution for this problem is not that complicated. But as I am new to Matlab and Simulink I have no idea how to do it.
Philipp
Philipp 2013년 6월 16일
Okay, I finally found out how to do it.
I have a Constant Block set to Zero and after that a Memory Block with initial condition 1. This activates a enabled subsystem which has nothing in it but a connection from the input to output. It is only activated in the first step. After that it will continue putting out the value it had while it was activated.
Thank you anyway!

답변 (0개)

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by