How can I connect Powertrain Blockset with Simscape Power Systems?

4 views (last 30 days)
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,

Answers (3)

Pablo Romero
Pablo Romero on 20 Dec 2018
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 Comments
Ting Liang
Ting Liang on 21 Nov 2020
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 on 22 Nov 2020
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.

Sign in to comment.


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

Ting Liang
Ting Liang on 23 Nov 2020
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 Comments
Pablo Romero
Pablo Romero on 24 Nov 2020
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 on 24 Nov 2020
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

Sign in to comment.

Communities

More Answers in the  Power Electronics Control

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!