필터 지우기
필터 지우기

Model a temporal delay

조회 수: 3 (최근 30일)
Andrea
Andrea 2013년 3월 28일
Hi,
I am a newer of Simulink and I would like know if the solution that I decide to adopt, for my problem, is corrected. Following I try to explain my problem and the adopted solution.
/----------------------------------/
Problem:
I have a square wave S1, if S1 has value 1 after T seconds the value of another square wave S2 must pass from 0 to 1 and stay at 1 until S1 = 1. If in the interval [0, T] the value of S1 passes from 1 to 0 I must stop the counting of the time.
/----------------------------------/
/----------------------------------/
My Solution:
I used a "Detector" block with the "Reset" input actived. "Output Type" is setted to "Delayed Fixed Duration" "Time Steps for Delay" is setted to T
Detector block has in input the value of S1 and the negated value on the Reset input.
/----------------------------------/
Question:
1. The problem is modelled correctly? 2. The time T is in seconds but I can have a time in decimal second (e.g. T = 0.4). The model satisfies this requirement?

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by