MATLAB Answers

I want to use a comparator to compare a sine wave and a triangle wave in simscape. I can't get the components to connect.

39 ビュー (過去 30 日間)
Steve Barry
Steve Barry 2021 年 4 月 15 日 17:18
回答済み: Joel Van Sickel 2021 年 4 月 20 日 18:54
I'm using Simscape electrical to design a control strategy for the switches in a dc/ac inverter, and I can't get the triangle wave generator to connect to the negative side of the comparator, even with the Simulink-PS Converter. Thank you in advance for any assistance you can provide.
  1 件のコメント
Steve Barry
Steve Barry 2021 年 4 月 15 日 18:11
Also, what connects the output of a CMOS Not to the input of a PS-Simulink Converter? Thanks again.

サインインしてコメントする。

採用された回答

Joel Van Sickel
Joel Van Sickel 2021 年 4 月 20 日 18:54
Unfortunately, the ps signal blocks don't work with those connection labels. Instead, you can make the switches take in electrical wires instead of physical signal blocks. The electrical wire does work with the connection labels. To do this, right click the switch, and find the simscape menu, go to block choices, and select electrical control port. Please see the image below.

その他の回答 (2 件)

Joel Van Sickel
Joel Van Sickel 2021 年 4 月 19 日 12:59
You need to use the Ps-Simulink converter, and then feed that signal into a controlled voltage source to interface with the elctrical comparator. Or, you can do everything in simulink and only bring out the gate signal once it is generated.
Regards,
Joel
  3 件のコメント

サインインしてコメントする。


Amrtanshu Raj
Amrtanshu Raj 2021 年 4 月 20 日 13:47
Hi,
You need to use a controlled voltage source block to convert a physical signal to a Electrical Signal.
I have attached a sample model that explains how to interface a Sine wave Block with Comparator. You can modify it as per your needs.
Hope this helps
  3 件のコメント
Steve Barry
Steve Barry 2021 年 4 月 20 日 14:56
My apologies for the confusion. The original problem has evolved. Here's a picture of where I am now.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by