Quote:
Originally Posted by seanl
are there any documentation on using a PID controller being that i am a novice at labview programming. And is there an advantage to using a PID controller over the method stated above?
|
I use a lead-lag PID controller to control our ramping, and it works really well. It will take some tweaking, but it is not that difficult.
For basics, just set you [EDIT] output range to -1 and 1. Set you gain to 1. Set your lag time to whatever you find is best (ours is .2); this changes how fast it ramps. Set lead time to zero. Set dt to -1(sets it to milliseconds). [/EDIT] You may want to tell it to reinitialize at values of zero because it will also ramp down.
The code attached was made for ramp code on a tank drive robot.