How to provide a delay in seconds from an external block to a pulse generated by another block?
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Show older comments
PWM pulse is generated comparing sinusoidal block and reference sawtooth block. now i have to provide a delay of one microseconds to this pulse.Kindly help me how to acheive this task.
Accepted Answer
Azzi Abdelmalek
on 18 Feb 2013
8 Comments
M A ullaah
on 18 Feb 2013
unit delay block gives a delay but not exactly the amount of time which we required
you have just to set the sample time of your block to get the amount of time you need
M A ullaah
on 18 Feb 2013
dear azzi abdelmalek, i have chosen a pulse generator with 50% duty cycle,0.02 period,1 amplitude,and zero phase delay. i have connected this pulse generator to scope via one delay block having a sample time of -1, and another delay block with a sample time of 1e-6 . i could not find any difference in the output between the above two delay blocks. i cound not get a delay of 1 micro second by seting it in sample time
In configuration parameter change your step time from variable to fixed, and set this step time to 1e-6.
M A ullaah
on 20 Feb 2013
Thank you dear azzi abdelmalek i got the answer for my questions.
M A ullaah
on 20 Feb 2013
Kindly suggest me some ways to use variable step and to get same output because the other subsystem needs variable step .
Then set the sample time of your pulse generator and the unit delay block to 1e-6
M A ullaah
on 27 Jul 2013
Edited: M A ullaah
on 27 Jul 2013
"with a fixed step just by replacing the sample time of a delay block one can get the required delay" as said by u mr.azzi. But in this method the rising edge is delayed correctly but not the falling edge. Any other method can u suggest. or m-file coading? plz
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
See Also
on 18 Feb 2013
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)