Troubleshooting Simulink: How to Create a Sine Wave with AC Voltage Source

  • Thread starter Thread starter jean28
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting issues in Simulink related to simulating a circuit with an AC voltage source, specifically focusing on generating a sine wave output. Participants explore potential causes for the unexpected graph output and suggest various adjustments to the model settings.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant notes that the graph output does not resemble a sine wave and seeks guidance on adjustments needed in the model.
  • Another participant inquires about the frequency of the voltage source and the sample rate of the sensor, suggesting these parameters may influence the output.
  • A subsequent post reiterates the question about the voltage source frequency and sample rate, indicating a focus on these settings.
  • Further, a participant emphasizes the importance of the sample frequency or minimum timestep in the simulation, implying it could affect the smoothness of the sine wave output.
  • Another participant suggests checking the AC voltage source settings to ensure it is configured to generate a sine wave, and highlights the need for correct frequency and amplitude settings.
  • Concerns are raised about the simulation's time step being too large, which could lead to a jagged graph instead of a smooth sine wave.
  • Lastly, there is a recommendation to verify circuit connections and component values, as errors in the model could impact the output.
  • Consulting Simulink documentation or seeking expert help is also mentioned as a potential next step if issues persist.

Areas of Agreement / Disagreement

Participants have not reached a consensus on the specific cause of the issue, and multiple suggestions and inquiries remain open for further exploration.

Contextual Notes

Limitations include potential missing assumptions regarding the model setup, dependencies on specific settings for the voltage source and sensor, and unresolved details about the circuit configuration.

Who May Find This Useful

This discussion may be useful for individuals new to Simulink or those experiencing similar issues with simulating AC voltage sources and sine wave outputs.

Engineering news on Phys.org
Sorry no experience with Simulink - but what is the Voltage Source Freq and what is the Sample rate of the Sensor?
 
Windadct said:
Sorry no experience with Simulink - but what is the Voltage Source Freq and what is the Sample rate of the Sensor?

60 Hz :mad:
 
OK that is the source - but what is the sample frequency - or Minimum timestep in the simulation ( sensor)
 


Hi there,

Thank you for reaching out with your question about Simulink. It sounds like you are having trouble creating a sine wave with an AC voltage source in your simulation. There are a few things that could be causing this issue.

Firstly, it is important to check that your AC voltage source is set to generate a sine wave. This can usually be adjusted in the source block's settings. It is also important to make sure that the frequency and amplitude of the sine wave are set correctly.

Another potential issue could be the time step of your simulation. If the time step is too large, it can cause the graph to appear jagged and not smooth like a sine wave. You can adjust the time step in the simulation settings.

It is also possible that there may be errors in your circuit model that are affecting the output. I would recommend double checking all of your connections and component values to make sure they are correct.

If you are still having trouble after checking these things, it may be helpful to consult the Simulink documentation or reach out to a Simulink expert for further assistance. I hope this helps and good luck with your simulation!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
36K
  • · Replies 18 ·
Replies
18
Views
36K
  • · Replies 8 ·
Replies
8
Views
16K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
10K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K