Sunteți pe pagina 1din 1

PID Control Reference Example for LabVIEW FPGA

Overview
This example shows how to do simple PID control of a PWM output using an analog input as
feedback.
This example has two parts. A host VI and a FPGA VI. The FPGA VI does all of the PID
control. It reads an analog feedback sensor in volts, does PID control, and generates a PWM
output signal at a base frequency. It also has a digital line output that tells direction. The host VI
simply initializes the FPGA VI, reads data back, and displays everything in nominal form.
Note: Currently, the speed of the PID loop and the PWM generation loop are programmed to
always be the same. If you need to run your PWM generation loop faster than the PID loop, you
can change this by modifying the PID Loop Rate (Ticks) in the host.
Note: This was designed for 783x R Series boards and uses LabVIEW 8.5, LabVIEW FPGA 8.5,
and the PID Toolkit.
**The accompanying code represents a very specific use case for NI products. For more
general examples, please refer to ni.com/examples, the LabVIEW Example Finder, or the
NI driver help files that come with every NI driver.
This reference application was created by the NI Systems Engineering group.

Requirements
Filename: simplepidpwm.zip

Software Requirements
Application Software: LabVIEW Professional Development System 8.5
Toolkits and Add-Ons: LabVIEW PID and Fuzzy Logic Control Toolkit 8.5, LabVIEW
FPGA Module 8.5
Hardware Requirements
Hardware Group: Reconfigurable I/O (RIO)
Driver: NI-RIO 2.3.1
National Instruments. All rights reserved. LabVIEW, National Instruments, NI, ni.com, the National Instruments corporate logo, and the Eagle logo are trademarks
of National Instruments. See ni.com/trademarks for other NI trademarks. Other product and company names are trademarks or trade names of their respective
companies. For patents covering National Instruments products, refer to the appropriate location: Help>>patents in your software, the patents.txt file on your CD,
or ni.com/patents.

S-ar putea să vă placă și