Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to connect model from simpowersystems to model from simscape

2,259 views
Skip to first unread message

Dangdang Shao

unread,
Jan 3, 2010, 9:03:03 AM1/3/10
to
Hi,

I want to set an electrical model by simulink. I need to use current controlled current source, which is only available in simscape. However, the rest of the model is set by simpowersystems. I find I can't connect the blocks of these two libraries.

I once found Arnaud Miege's comments here, that is,
"You can create an interface between SimPowerSystems and Simscape by measuring current in SimPowerSystems and injecting it in Simscape, and measuring voltage in Simscape and injecting it in SimPowerSystems."

I tried in this way but I still failed to connect the models:(

Can anybody give me some idea or help?

Frank W.

unread,
Jan 9, 2010, 9:52:03 AM1/9/10
to
Hi,
maybe the 'Simulink-PS Converter' block from the library Simscape>Utilities allows interconnection.
Regards
Frank

bari86

unread,
Jan 13, 2010, 9:35:26 PM1/13/10
to

Hi.
I am facing the same problem. I tried the Simulink-PS converter. It
does allow Simulink library to connect to SimScape. But it doesnt
allow from simpowersystem to the simscape. i wanted to use the
variable resistor in simscape in my simpowersystem. weird though it is
not available to simpowersystem library. please help.

bari86

unread,
Jan 13, 2010, 10:19:06 PM1/13/10
to

edit: some of block in the simpowersystem can be connected to the
simulink-ps converter. I am trying to connect Electrical Source &
Elemental item in the simpowersystem, like AC Voltage source and RLC
Branch.

Arnaud Miege

unread,
Jan 20, 2010, 11:53:04 AM1/20/10
to
"Dangdang Shao" <bola...@yahoo.com.cn> wrote in message <hhq82n$rm6$1...@fred.mathworks.com>...

In SimPowerSystems, measure the voltage (in parallel) with a voltage measurement block, which outputs a Simulink signal. Feed this signal into a S-PS block to convert it to a physical signal and inject this to a controlled voltaged source in Simscape.

On the Simscape side, measure the current (in series) with a current sensor block, which outputs a physical signal. Feed this signal to a PS-S block to convert it to a Simulink signal, and inject this to a controlled current source in SimPowerSystems.

Note that this introduces an algebraic loop in the model, which may cause numerical problems. Note also that you can't have two current sources in series, so you may need to insert a small resistor to make it work, depending on how the rest of your model is structured.

HTH,

Arnaud

Arnaud Miege

unread,
Jan 20, 2010, 11:54:05 AM1/20/10
to

geokim

unread,
Jan 11, 2012, 6:55:08 AM1/11/12
to
"Arnaud Miege" wrote in message <hj7cfd$fqm$1...@fred.mathworks.com>...
hello,I need some help here.I want to feed an n-channel igbt from the simelectronics library with spwm pulses.These pulses are generated with the pwm generator from simpowersystems.Is there any ideas on how to combine them...s-ps/ps-s converters cannot connect the gate of the n-channel igbt...thnx in front

luxmi.1...@iitgn.ac.in

unread,
Jan 12, 2017, 8:01:30 AM1/12/17
to
Hi Arnaud,


I want to connect a rechargeable generic battery, which is actually in simulink to a dc motor (which is in simscape). I tried to connect it
(from battery side) voltage measurement->s-ps->controlled voltage source->dc motor, but in that case controlled voltage source is working as a voltage source for the motor means it is not loading the battery(battery is not getting discharged). Please give some idea how can I do this...
0 new messages