SoftMotion 2.1 Servo PID Tuning Reference Example
Downloads
Filename: softmotion_servo_tuning.zip
Requirements: View
Note: This example is has generic structures and code that make it an applicable utility for general servo PID tuning on LabVIEW FPGA targets. The PID FPGA VI implemented in this example is available with SoftMotion Development Module 2.1 and earlier LabVIEW examples - however, it can be replaced with the standard PID code available with LabVIEW FPGA. This example is not intended for later versions of NI SoftMotion.
Tuning servos normally entails viewing the details of a step response to evaluate chosen PID gains. This utility provides a host VI that displays a step response graph along with various performance calculations such as rise time, settling time, peak time, and max overshoot to aid in choosing optimal PID gains (see figure 1).
Figure 1. Front Panel of host tuning VI
The FPGA code consists of a PID control loop and a feedback loop (see figure 2).
Figure 2. FPGA PID Code with quadrature encoder feedback
Requirements
Filename: softmotion_servo_tuning.zip
Software Requirements
Application Software: LabVIEW Full Development System 8.5
Toolkits and Add-Ons: LabVIEW FPGA Module 8.5
Language(s): LabVIEW
Reader Comments | Submit a comment »
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).


