Download LabWindows/CVI PID Control Toolkit Reference Manual
Transcript
Chapter 2 PID Control Function Reference pid_ld_lg_tune void pid_ld_lg_tune (int LoopSelect, double Gain, double LagTime, double LeadTime) Purpose Sets up new Lead-Lag tuning parameters: Gain, LagTime, LeadTime. Parameters Input LoopSelect Gain LagTime LeadTime Integer Selects which loop the operation applies to Double-Precision Gain Double-Precision Lag time in minutes. Zero turns lag time off Double-Precision Lead time in minutes. Zero turns lead time off pid_ld_lg_cycle double Result = pid_ld_lg_cycle (int LoopSelect, double Input, double CycleTime) Purpose Calculates the dynamic compensator in feed-forward control schemes. This function is called repeatedly in a loop (for example, in the main event loop of the application). Lead Lag Cycle gets its tuning parameters, gain, lead time and lag time from the global state of the loop; these parameters are set using the library function pid_ld_lg_tune. © National Instruments Corporation 2-5 LabWindows/CVI PID Control Toolkit