Pulse generation with variable frequency

조회 수: 3 (최근 30일)
Payam Morsali
Payam Morsali 2022년 12월 13일
댓글: Nandhini 2023년 9월 19일
Hi everyone
I am trying to implement a pulse generator that generates pulses with variable frequency; let's say teh frequency is varying from 90kHz to 110 kHz; the pulse generation block only has fixed frequency.
Also, it is important to maintain the duty cycle 50%, which means giving 90to110 kHz to a sine block and comparing it to zero would not work (as far as I know by trying it)>
I would appreciate if anyone has any idea on this matter.

답변 (1개)

Mathieu NOE
Mathieu NOE 2022년 12월 14일
hello
it's a matter of how you implement the idea
here one solution
the attached model is a fixed step euler simulation
you have to initialize dt = 1e-7 in your workspace first
for the demo I have amplified the variable amount of the frequency
the graph below shows frequency, angle and output signal (as expected)
  댓글 수: 4
Mathieu NOE
Mathieu NOE 2023년 5월 12일
I am not sure to understand how you can have random pulse with fixed constant frequency
Nandhini
Nandhini 2023년 9월 19일
Need to main the duty ratio.. it may be +/- 1/3 of the desired frequency.. still i am trying to produce a pulse signal like that.

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

카테고리

Help CenterFile Exchange에서 Switches and Breakers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by