|
"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
|