Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 14, 2009


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

SoftMotion 2.1 Servo PID Tuning Reference Example

4 ratings | 5.00 out of 5
Print

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).


[+] Enlarge Image

Figure 1. Front Panel of host tuning VI

The FPGA code consists of a PID control loop and a feedback loop (see figure 2).


[+] Enlarge Image

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

 
4 ratings | 5.00 out of 5
Print

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/).