Thread Subject: 2 simscape modeling questions

Subject: 2 simscape modeling questions

From: Omni Domni

Date: 20 Mar, 2009 06:15:22

Message: 1 of 2

Hello,
I have the following 2 questions:

1. Is it possible to create a simscape model with a variable number of ports? The number of ports should be a parameter defined by the user through the block's mask.

2. Is it possible to disable 'branching' for the lines that come out of a custom simscape block? That is, each port of the model should be able to be connected only to one other block only.

Subject: 2 simscape modeling questions

From: Arnaud Miege

Date: 22 Mar, 2009 21:07:49

Message: 2 of 2


"Omni Domni" <eloykarakh@hotmail.com> wrote in message
news:gpvc9q$5c3$1@fred.mathworks.com...
> Hello,
> I have the following 2 questions:
>
> 1. Is it possible to create a simscape model with a variable number of
> ports? The number of ports should be a parameter defined by the user
> through the block's mask.
>
> 2. Is it possible to disable 'branching' for the lines that come out of a
> custom simscape block? That is, each port of the model should be able to
> be connected only to one other block only.

As far as I know, 1 isn't possible (yet), although it's probably being
worked on. 2 isn't possible either and probably never will be because that's
the basis of how Simscape is constructed: the algebraic sum of through
variables is equal to zero at a node and two ports connected together have
the same across variable. So branches are the very basis of Simscape and I
don't think it's possible to disable them. You can always try to enter an
enhancement request at http://www.mathworks.com/support/bugreports/.

HTH,

Arnaud

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com