Communication between Simulink and Simscape blocks

2 ビュー (過去 30 日間)
Saulo Vitor P. Cantanhêde
Saulo Vitor P. Cantanhêde 2021 年 6 月 30 日
Hi, I'm trying to connect the signals of Simulink's blocks with the Simscape to simulate the consumption of current in a electrical circuit by a simple load. For example, I created a wind turbine circuit with simulink blocks, and now I want connect the resulting currents with a load of Simscape blocks, but I had problems with that communication. Does anyone know a block that converts the signals obtained in simulink and feeds a simscape circuit ?
I appreciate the help if someone knows how I can do that.

採用された回答

Scott Satinover
Scott Satinover 2021 年 7 月 1 日
編集済み: Scott Satinover 2021 年 7 月 1 日
Hi Saulo, you can use PS-Simulink and Simulink-PS blocks to interface between Simscape and Simulink. Use the PS-Simulink block if you want to send Simscape signals into Simulink.
Specifically, this page provides an example on how you can apply a Simulink source of voltage to a Simscape electrical load:
This model uses a custom block called a "Voltage source" block, and I think that configuration should help with the interface you're looking for.
  1 件のコメント
Saulo Vitor P. Cantanhêde
Saulo Vitor P. Cantanhêde 2021 年 7 月 4 日
Thanks! I'm new to using Simscape for simulation and was having problems using the PS-Simulink and Simulink-PS blocks to communication, but these examples were very helpful.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeElectrical Systems についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by