Filter löschen
Filter löschen

Model a temporal delay

3 Ansichten (letzte 30 Tage)
Andrea
Andrea am 28 Mär. 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?

Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by