- Use a Delay block
- Set it to receive the delay length from an Inport
- Feed your variable delay time through a triggered subsystem and trigger it when you change your variable delay time
- Feed the output of the triggered subsystem inside the delay block as the delay length
Provide automatic delays to a signal
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad Hammad Uddin
am 28 Aug. 2019
Kommentiert: Jonas
am 3 Okt. 2019
My question which i am having trouble with is . I have attached one drawing here to explain my point. What i need to have delay in a pulse signal. However, the problem is that the delay is not a fixed value. It can be changed by any controller let say one time the delay is 10 and suddenly it become 15 or 12 or any value.
what i need to have is any function or block which can handle the delay of the value which are randomly generated. I have no previous knowledge of incoming delay say the value of 'a' in the drawing. a can be one time 10 or 12 0r 20 anything. The signal keep its delay until new delay comes.
My question is can we have something like this in simulink or please someone help me in it?
0 Kommentare
Akzeptierte Antwort
Jonas
am 29 Aug. 2019
Bearbeitet: Jonas
am 29 Aug. 2019
The Delay block will now have a variable delay, but will only change the delay length when it changes due to the triggered subsystem.
2 Kommentare
Jonas
am 3 Okt. 2019
You need to decrease your sample time such that your desired delay becomes an integer value.
Weitere Antworten (1)
Renato SL
am 29 Aug. 2019
I have a simple example so that you can see how it works (slx file attached).
2 Kommentare
Communitys
Weitere Antworten in Power Electronics Control
Siehe auch
Kategorien
Mehr zu General Applications 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!