Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to make connection of components from different libraries in Simulink
Date: Sat, 25 Apr 2009 21:03:08 +0100
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <gsvq9s$l05$1@fred.mathworks.com>
References: <gstdfi$md2$1@fred.mathworks.com>
NNTP-Posting-Host: 172.16.236.220
X-Trace: fred.mathworks.com 1240689789 21509 172.16.236.220 (25 Apr 2009 20:03:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 25 Apr 2009 20:03:09 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:535441



"Peng Lei" <penglei@uwm.edu> wrote in message 
news:gstdfi$md2$1@fred.mathworks.com...
> Hi, I had difficulty to connect components from different libraries in 
> Simulink. I'm using Matlab 2007b. I tried to construct a circuit using the 
> components from both SimPower toolbox and Simscape toolbox. But I could 
> not build link between the componnets. i.e, I drag a DC voltage from 
> SimPower and d a resistor from Simscape, both are electric components, and 
> want to connect them. However, no matter how hard I try. It seems I could 
> not make a link between them. What am I supposed to do to solve this 
> problem? Or the elements from different libraries are not compatible at 
> all? I should use the components from the same library?

Hi,

SimPowerSystems and Simscape use two different technologies, you can't 
directly connect a SPS component to a Simscape one or vice-versa. If part of 
your model is in SPS and the other part in SPS, here's how to interface the 
two:
* measure the voltage in SPS and inject it in Simscape with a controlled 
voltage source
* measure the current in Simscape (at the same point as you're injecting the 
voltage) and inject it in SPS using a controlled current source (at the same 
point where you measured the voltage).

You can also try it the other way: measure current in SPS & inject in 
Simscape + measure voltage in Simscape & inject in SPS. One approach works 
better than the other, but I can't remember which one.

HTH,

Arnaud