02-16-2007 05:53 AM
02-16-2007 07:36 AM
Philip,
You zip file is missing "Pendulum sub.vi" could you send that also?
Thanks,
Barp
Control Design and Simulation Group
National Instruments
02-16-2007 08:21 AM
Hi Barp,
here it is, hope this is the only one missing
Cheers
Philipp
02-19-2007 07:42 AM
Philipp,
The problem that you have is actually a common problem for those who try to use PID for this problem.
When you try to use only one PID to control angle, the controller is able to keep it up right in the beginning. However, when you switch the controller on and off (going from automatic to manual), this perturbance will make the cart to move to one direction (adding momentum to it) and the PID will try to bring it back to the center, but it will be far away from the center. If you give time, it eventually will bring back to 0.
In this link below, you have more information about this problem and, most important, tells you that for practical controllers, you can't use static PID for this problem. Maybe you could use gain scheduling PID or cascade PID to also control position also. In general, the LQR controller works pretty well for this problem.
http://www.engin.umich.edu/group/ctm/examples/pend/invPID.html
Anyway, let me know if that answer your question.
Barp - Control & Simulation Group - National Instruments
02-19-2007 08:13 AM
Hi Barp,
thanks for the fast reply I will try using the controllers you mentioned down below to get it working.
Thanks and have a nice day
Philipp
11-12-2007 07:04 AM
05-08-2008 07:48 AM
05-08-2008 08:27 AM
Hello maWence,
I haven´t worked with the project for more then a year now. Normally it should work when you download the zip file and the additional subvi.
don´t think that i password protected it, but you will need the simulation toolkit.
cheers philipp