Simulink と Simscape のブロックを接続するにはどうすれば良いですか?

17 vues (au cours des 30 derniers jours)
MathWorks Support Team
MathWorks Support Team le 25 Oct 2013
Simscape と Simlink のブロックを接続する方法を教えて下さい。

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 26 Oct 2013
Simscape のブロックには、Simulink 用のポート、Physical Signal 用のポート(三角形)、Conserving Port (小さい四角形)があります。タイプが異なるポートを直接することはできません。それぞれのポートは、形状より判別することができます。
Simulink の信号を Simscape で使用したい場合、Simscape / Utilities ライブラリにある Simulink-PS Converter ブロックを使用します。逆に、Simscape の応答を Simlink のスコープなどで確認したい場合は PS-Simulink Converter ブロックを介して Simulink のブロックに接続します。
なお、 Simulink 用の信号を物理モデルに受け渡しする場合は、上記のブロックに加え、Physical Signal 用のポート(三角形) と Conserving Port (小さい四角形) を入出力に持つブロックを適宜使用してください。
上記の図のような機械システム(並進)の場合、Simscape / Foundation Library/Mechanical Sources ライブラリにある Ideal Source Block や Ideal Velocity Source が該当します。
Simulink-PS Converter のブロックのSimulinkポート(>)にSimuink信号を接続し、Physical Signal ポート(三角)と Ideal Force Sensor のPhysical Signalポートを接続します。Conserving Port(小さい四角) を、他の要素ブロックと接続して物理モデルを構築します。
また、電気システムの場合は、Simscape / Foundation Library/ Electrical/ Electrical Sources ライブラリにある Controlled Voltage Source ブロックや Controlled Current Source ブロックを使用することができます。

Plus de réponses (0)

Catégories

En savoir plus sur Simscape 入門 dans Help Center et File Exchange

Produits


Version

R2010a

Community Treasure Hunt

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

Start Hunting!