Unit delay connected to pulse generator

I connected pulse generator followed by unit delay to scope, in pulse generator period is 1 sec, pulse width 5%, In unit delay sample time is -1 (inherited)
But the pulses from unit delay are little delayed nearly 0.05 sec(width of actual pulse) and pulse width is 20%
I checked this with a mean block,I expected that unit delay would give delay of 1 sec by default to the pulses with width 5%
what unit delay does here.?

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 24일
편집: Azzi Abdelmalek 2012년 11월 24일

1 개 추천

You said that Sample time is inherited, which means it's inherited from your step size (variable or fixed). If you want 1s then set a sample time to 1.

댓글 수: 4

V Vaishnavi Kumar
V Vaishnavi Kumar 2012년 11월 24일
k i ll try... why the pulse width is changed..
Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 24일
편집: Azzi Abdelmalek 2012년 11월 24일
I don't think the width can be changed with unit delay block. Check again the width of your pulse, unless the step size is variable. then set a sample time of your unit delay to 1 and check again.
V Vaishnavi Kumar
V Vaishnavi Kumar 2012년 11월 24일
I dint specify any step size first, and matlab took as 0.2 sec by default. Then i gave 1 sec as sample time and the scope showed step output for same pulse input.
I understood that as my sample time is greater than pulse width(0.05 sec) it showed so., i kept sample time as 0.01 sec. now output is similar to input with the delay of 0.01 sec as given.
for the same pulse width with 0.05 sec and 1 sec period, how 1 sec delay could be given
Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 24일
If your unit dealy sample time is greater then your pulse generator period, the unit delay block will give anything!

댓글을 달려면 로그인하십시오.

카테고리

제품

질문:

2012년 11월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by