I’m attempting to create a program using PID. This is the first time that any programmer on our team has attempted to use PID. What we need is an example of a program that uses PID so that we can study ::rtm:: how to construct one. All help will be appreciated!
I’m no expert on PID. But I can tell you that LabView has multiple implementations of PID already created. Use the help file to guide you as to which to use.
Here’s a simple LabVIEW PID example that applies one of the built-in functions that billbo911 pointed out, as a first step to understanding what PID can do for you.
Of all the hundreds of sites and threads I’ve been on relating to PID, this one does the best job explaining a lot of common issues and how to fix them. Its written for Arduino, but the logic can be applied to any programming language. Its really well written and goes on for pages and pages.
When I was doing FLL, this was by far the best example of explaining the principals of line following using PID. I did this with my son in either 5th or 6th grade, and since then have used this as an example with our high schoolers in FRC.
In FLL we ended up with just a P controller in the competition code, but we spent about a week that summer doing this after work in the basement.
Additionally, if you search through NI’s website, they have some greatresources about PID theory (and their examples are in LV). You can also view the complete help page for the PID VI here.