Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Level 2 M-File S-Function Block inside algebraic loops
Posted:
May 20, 2008 9:13 AM
|
|
Hi,
for testing purpose I have created a Level 2 M-File S-Function 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 S-Function 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 discrete-valued outputs, blocks with non-double or complex outputs, Stateflow blocks, or nonvirtual subsystems."
Is there a way to use S-Function in algebraic loops?
I tried the directfeedthrough=yes option but it didn?t helped.
Thanks
Malte
|
|
|
|