Errors in feedback control after setting the input of a prismatic joint to motion/provided by input

1 view (last 30 days)
Hello, I am currently controlling the prismatic joint actuators of a Stewart platform using Simulink. I have set the input to motion/provided by input in order to change the position of the eight actuators over time. However, when I try to perform feedback control in the simulation, I encounter errors as shown in the image below. Feedback control works when the input is set to force, but why do these errors occur when the input is set to motion? If anyone knows the answer, I would be very grateful for your help.

Accepted Answer

Divyanshu
Divyanshu on 6 Aug 2024
A possible reason for such errors is that an algebraic loop is formed in your model when input is set to motion.
For more information about identification and removal of algebraic loops have can refer the following links:
Hope it helps!
  2 Comments
석준
석준 on 6 Aug 2024
Thank you very much! By using the Unit Delay block, I was able to solve the algebraic loop problem in the feedback model.
Yifeng Tang
Yifeng Tang on 7 Aug 2024
Unit Delay may work just fine, or create some numerical inefficiency, depending on the nature of the rest of your system. You may check the step sizes and solver resets using Solver Profiler and see if that's the case. One potential concern is mixing discrete block (Unit Delay) with continuous ones (Simscape). If indeed that gives you issues, consider replace the Unit Delay with a Transfer Fcn block, with a reasonable time constant.

Sign in to comment.

More Answers (0)

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!