How to connect simscape subsystems together?
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to create an electric powertrain testbench in Simulink and am having issues connecting subsytems for the line diagram attached.![Assembly A Line Diagram.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196015/Assembly%20A%20Line%20Diagram.jpeg)
![Assembly A Line Diagram.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196015/Assembly%20A%20Line%20Diagram.jpeg)
- We have created a signal for mains connection:
![Mains Power Connection.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196017/Mains%20Power%20Connection.jpeg)
- And are using a downloaded file for the charger which rectifies the 230V AC mains to 48V DC:
![Charger.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196019/Charger.jpeg)
- And finally we are using this system as motor controller and motor:
![Motor Drive.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196020/Motor%20Drive.jpeg)
The graph for motor results is wrong however the main problem we are facing is connecting these subsystems. Is it possible to actually do this? And if not, are there any recommendations how to go about creating this system shown in line diagram? Thanks in advance.
0 件のコメント
回答 (1 件)
Joel Van Sickel
2020 年 9 月 2 日
Hello Ewan,
in general, it is discouraged to combine the two technologies together, as it can lead to some solver convergence issues and add's decoupling which makes the models less accurate than if they were implemented in a single technology (simulink for the black wires, and simscape for the blue wires). For this, I would recreate the model all in one technology. If you really want to connect them though, here are blocks to help with that:
Regards,
Joel
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Powertrain Reference Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!