Clear Filters
Clear Filters

Model a temporal delay

3 views (last 30 days)
Andrea
Andrea on 28 Mar 2013
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?

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!