Why my AC voltage source not provides a sine curve?

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
Purushottama Rao on 23 Jan 2017
Edited: Purushottama Rao on 23 Jan 2017
Look at sample time in AC Voltage source block.. You may need to replace with your required sample time.

4 Comments

sample time of '0' in AC source voltage block is the culprit. Put your required sample time such as 1e-3 or so.
I tried with your suggestion by changing sample time in AC block to 1000 and also changed stop time to 2000 but this time voltage was reading 0. What did I do wrong? And I found youtube video they create the same circuit but just adding resistance and then play around with the "power guide" setting by changing from continuous to discrete without change sample time and the result come as sine wave https://www.youtube.com/watch?v=CZH9orQThFY why?
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.
Moreover when you change the sampling time, it is as good as discrete system.

Sign in to comment.

Categories

Find more on Simulink in Help Center and File Exchange

Products

Asked:

on 21 Jan 2017

Commented:

on 24 Jan 2017

Community Treasure Hunt

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

Start Hunting!