How can I connect Powertrain Blockset with Simscape Power Systems?

5 次查看(过去 30 天)
Hello, I have used Powertrain Blockset Mapped Motor for my DC motor simulation and I have modelled the power supply with Simscape Power System. Since the load current of the mapped motor is giving simulink signals, I am having the problem of connecting the energy supply terminals to the load. Is the only solution to use "power_customize" and if so which Power System block can I use for this conversion? Thank you very much for the help. Regards,

回答(3 个)

Pablo Romero
Pablo Romero 2018-12-20
Hi Sergi,
To interface Simscape and Simulink blocks (either from Powertrain blockset or any other Simulink block), you have to use the specific sensors and sources as shown here, together with the PS-Simulink Converter and Simulink-PS Converter blocks.
If you are also using Simscape Specialized Power Systems, please take a look at this too.
Hope this helps.
Pablo
  2 个评论
Ting Liang
Ting Liang 2020-11-21
Hi, Pablo,
Excuse me.
I now also encountered the same problem, but when I tried the method you provided above, to use 'PS-Simulink Converter' to connect simspace physical signal to simulink block signal, but it cannot work, the physical side cannot be connected, is it due to my MALTAB version problem? Cause I am now using MATLAB2017a. Are there some other methods to solve the problem?
Thanks, and looking forward to your reply.
Best regards
Pablo Romero
Pablo Romero 2020-11-22
Please bear in mind you may need to add some Simscape sensor block. You cannot connect a PS-Simulink converter directly to a Simscape network.

请先登录,再进行评论。


Ting Liang
Ting Liang 2020-11-22
Hi, Pablo,
oh, I see, it works now.
Thanks for your help.
Best regards

Ting Liang
Ting Liang 2020-11-23
Hi, Pablo,
Excuse me.
Can I make an inquiry about another two problems about simulink modelling? The problems are shown in the attached picture.
This is a subsystem to model the variable speed control unit for my system. But I was struggling with connection thing.
1) the position 1 and 3 are two kinds of connection ports(simspace(left), powertrain(right)), but if I use the connection ports in subsystem, it seems cannot be connected with other blocks in the parent system.
2) for the simspace and powertrain block connection, shown as in postion 2, I used the sensor and ps_s converter, but it cannot be connected to the powetrain block port.
I am a beginner now, and now seems I dropped into a dead cycle, if using connection port here and it can help connect, but again it cannot be connected at another place. Could you please give me some hints and help about this?
Thanks, and looking forward to your reply.
Best regards
  2 个评论
Pablo Romero
Pablo Romero 2020-11-24
To connect Simscape Power Systems (3) and Simscape Electrical (1) circuits as shown in your picture, please look at the following page in the documentation.
https://www.mathworks.com/help/physmod/sps/interface-to-simscape.html
Ting Liang
Ting Liang 2020-11-24
Hi, Pablo,
Thanks for your help.
I have spent some time figuring out how to manage this, but it just needs to know a fundamental interface elements, gosh.
Thanks.
Best regards

请先登录,再进行评论。

社区

更多回答在  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!

Translated by