Simulink - problem with generation of time depends signal

조회 수: 6 (최근 30일)
Marcin Wegrzynowski
Marcin Wegrzynowski 2016년 1월 5일
댓글: Marcin Wegrzynowski 2016년 1월 6일
Hi, I have some problems with generation of time depends signal in Simulink. I have one process, and when one of my variables gets an assumed value, I want to turn on another signal for example by 2 seconds. I know that simulink gives us a function like "Clock" or "Digital time" but these functions start counting time when tur simulation is started. I need some tool which will start to count time when my variable will have the assumed value.
Thanks for your help in advance Marcin

답변 (1개)

ashish ahir
ashish ahir 2016년 1월 6일
Marcin, use counter inside triggered subsystem. triggered subsystem will be triggered when your variable will have assumed value. you can make this logic using if-else and logical compare block.
  댓글 수: 1
Marcin Wegrzynowski
Marcin Wegrzynowski 2016년 1월 6일
thank you very much :). Counter - it was the "key word". Thank you once more.

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by