From: Riccardo on
"Søren " <stubkier(a)gmail.com> wrote in message <hk9faa$2e6$1(a)fred.mathworks.com>...
> Hi
>
> I am working on a stand alone simulink model of an hydrailc system. I would like to be able to change some paremeteres via a GUI and then run the model again. I am able to do this with simple models, but when I try to use the command rtwbuild('hydraulicmodel.mdl') I get an error: Algebraic loops are not supported in generated code.
>
> Does this mean that I can not compile a simulink model containing an algebraic loop? When I run the model from Simulink there is no problem with the algebraic loop.
>
> I have tried to use the memory block, but the model will not run with that impemented.
>
> Any ideas how i can solve this problem? One can not make a hydraulic model without an algebraic loop or two:-)
>
> BR
>
> Søren

Hi,
the standard prescription is to insert a single-step delay block (discrete time library) on the "offending" feedback signals.
HTH
Riccardo