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.
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Steve Barry
am 15 Apr. 2021
Beantwortet: Joel Van Sickel
am 20 Apr. 2021
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.
Akzeptierte Antwort
Joel Van Sickel
am 20 Apr. 2021
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.
0 Kommentare
Weitere Antworten (2)
Joel Van Sickel
am 19 Apr. 2021
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 Kommentare
Joel Van Sickel
am 19 Apr. 2021
If you stay in simulink, you can convert the boolean output back to a double and multiply it by whatever value you want. Can you provide a picture of what you are trying to do in Simscape?
Amrtanshu Raj
am 20 Apr. 2021
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 Kommentare
Amrtanshu Raj
am 20 Apr. 2021
Hi,
As per your original question, it seems that you had problem connecting waveform generator with Comparator.
You need to use the Voltage sensor block to connect the Comparator output to the IGBT gate. I have updated the model and attached it.
Siehe auch
Kategorien
Mehr zu Switches and Breakers finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!