Why my AC voltage source not provides a sine curve?
Show older comments
Hello, I run simulink to see the voltage graph of AC source but how it shows like this? Do I set some parameters wrong? AC voltage peak value is set at 100v others parameters are left as default.


Answers (1)
Purushottama Rao
on 23 Jan 2017
Edited: Purushottama Rao
on 23 Jan 2017
0 votes
Look at sample time in AC Voltage source block.. You may need to replace with your required sample time.
4 Comments
Purushottama Rao
on 23 Jan 2017
sample time of '0' in AC source voltage block is the culprit. Put your required sample time such as 1e-3 or so.
Patchayatorn Putmee
on 23 Jan 2017
Purushottama Rao
on 24 Jan 2017
Sample time can not be 1000. If the freq of the sine wave is 60Hz, Then you require sampling freq of atleast 300Hz i.e sampling time of 3.33 mS.
Purushottama Rao
on 24 Jan 2017
Moreover when you change the sampling time, it is as good as discrete system.

Categories
Find more on Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!