This is my simulink circuit file
How to use simulink to find square wave in op Amp circuit ?
4 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/365560/image.png)
i have done my circuit , but both of Vin and Vout in sine wave signal . I need the Vout in square wave . Any idea how to convert the sine wave into square wave ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/365563/image.png)
This is my result of my Vout ( bottom) that i need in a square wave signal
采纳的回答
Joel Van Sickel
2020-9-24
Hello Wann,
there are numerous square wave generator topologies that can be used. You can google search to investigate them and pick one that makes the most sense for your application. Conversely, you can also just generate the square wave in simulink, and pass it to a controlled voltage source. To assist with the modelling, try using op amps and comparators from the simscape electrical library. The op amp in your current model is a simple op amp from the foundation library and does not have rails. Typically, simulaitng a square wave generator will require your components to have voltage rails to limit the output. (typically Vcc and -Vcc/gnd) An example of a higher fidelity op amp that you could use for this would be the finite gain op amp.
Here is a useful example circuit as a reference: https://www.mathworks.com/help/physmod/sps/ug/triangle-wave-generator.html
Regards,
Joel
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simscape Electrical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!