MAESChristian
Messages postés1Date d'inscriptiondimanche 14 mars 2004StatutMembreDernière intervention14 mars 2004
-
14 mars 2004 à 19:56
Phollivi
Messages postés3Date d'inscriptionvendredi 28 février 2003StatutMembreDernière intervention 9 octobre 2004
-
9 oct. 2004 à 14:21
Je recherche le code source en VB pour un régulateur proportionel intégral dérivé (PID)
Merci d'avance et bien à vous
Phollivi
Messages postés3Date d'inscriptionvendredi 28 février 2003StatutMembreDernière intervention 9 octobre 2004 9 oct. 2004 à 14:21
KIKI
Voilà ce que j'ai trouvé sur un site anglais
Improved PID code
The method of implementing automatic reset described in using a positive feedback loop was first used with pneumatic analog controllers. It can easily be implemented digitally.
There are several advantages of this algorithm implementation. Most important, it eliminates the problems that cause the output to pull away from a limit inappropriately. It also allows the use of external feedback when required.
Variables:
Input Process input
InputD Process input plus derivative
InputLast Process input from last pass, used in deriv. calc.
Err Error, Difference between input and set point
SetP Set point
OutPutTemp Temporary value of output
OutP Output of PID algorithm
Feedback Result of lag in positive feedback loop.
Mode value is ?AUTO? if loop is in automatic
Action value is ?DIRECT? if loop is direct acting