Algebraic loop in MRAC discrete model
Hello everyone.
I have this system I built that represents an RMAC model
After the system worked continuously as it should, I converted it to discrete with a sampling time of 0.01
I get an error that the system enters an algebraic loop and I am unable to converge to the desired values. (The output of the system is increased to very, very high values)
I tried to put a unit delay but it neither helps nor leads to entertainment
what can be done? I would really appreciate some help.. I tried everything possible
Also, should I change the sampling time of each block to 0.01 or is it ok to leave -1?
Many thanks to everyone who helps
errors:
Error:’sim2/discrete plant2′ or the model referenced by it contains a block that updates persistent or state variables while computing outputs and is not supported in an algebraic loop. It is in an algebraic loop with the following blocks.
Error:Input ports (1) of ‘sim2/Adaptive Mechanism_known parameters_ discrete2/MATLAB Function1’ are involved in the loop.
and more..Hello everyone.
I have this system I built that represents an RMAC model
After the system worked continuously as it should, I converted it to discrete with a sampling time of 0.01
I get an error that the system enters an algebraic loop and I am unable to converge to the desired values. (The output of the system is increased to very, very high values)
I tried to put a unit delay but it neither helps nor leads to entertainment
what can be done? I would really appreciate some help.. I tried everything possible
Also, should I change the sampling time of each block to 0.01 or is it ok to leave -1?
Many thanks to everyone who helps
errors:
Error:’sim2/discrete plant2′ or the model referenced by it contains a block that updates persistent or state variables while computing outputs and is not supported in an algebraic loop. It is in an algebraic loop with the following blocks.
Error:Input ports (1) of ‘sim2/Adaptive Mechanism_known parameters_ discrete2/MATLAB Function1’ are involved in the loop.
and more.. Hello everyone.
I have this system I built that represents an RMAC model
After the system worked continuously as it should, I converted it to discrete with a sampling time of 0.01
I get an error that the system enters an algebraic loop and I am unable to converge to the desired values. (The output of the system is increased to very, very high values)
I tried to put a unit delay but it neither helps nor leads to entertainment
what can be done? I would really appreciate some help.. I tried everything possible
Also, should I change the sampling time of each block to 0.01 or is it ok to leave -1?
Many thanks to everyone who helps
errors:
Error:’sim2/discrete plant2′ or the model referenced by it contains a block that updates persistent or state variables while computing outputs and is not supported in an algebraic loop. It is in an algebraic loop with the following blocks.
Error:Input ports (1) of ‘sim2/Adaptive Mechanism_known parameters_ discrete2/MATLAB Function1’ are involved in the loop.
and more.. algebraic loop, discrete time, sample time, controller, mrac MATLAB Answers — New Questions