Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Level 2 MFile SFunction Block inside algebraic loops
Posted:
May 20, 2008 9:13 AM


Hi,
for testing purpose I have created a Level 2 MFile SFunction Block with two inputs and one output. The output is simply the addition of the inputs. Further I build an algebraic loop solving the equation 4+3*x=x. When I used the sum block for this model everything is fine. But when I use the described SFunction block instead of the sum block there?s an error:
"Cannot solve algebraic loop involving 'testloop1/Gain2' because it consists of blocks that cannot be assigned algebraic variables, i.e., blocks with discretevalued outputs, blocks with nondouble or complex outputs, Stateflow blocks, or nonvirtual subsystems."
Is there a way to use SFunction in algebraic loops?
I tried the directfeedthrough=yes option but it didn?t helped.
Thanks
Malte



