Example Code

Archived: Quadrature Encoder Velocity and Acceleration with LabVIEW FPGA

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW FPGA Module

Code and Documents

Attachment

Download All

Description

Overview


This document has been archived and is no longer updated by National Instruments.

This example program demonstrates how to estimate velocity and acceleration of a Quadrature Encoder by using LabVIEW FPGA and CompactRIO. The example consists of an FPGA VI, Encoder Position & Velocity (FPGA).vi, which will run on the FPGA platform and a host VI, Encoder Position & Velocity (Host).vi, which will run on the Host Machine. The example program was designed for a PXI-7811R FPGA and an R Series expansion chassis with a cRIO-9411 DI module in slot 1. The vi can easily be modified to run on any other cRIO FPGA platform. For details about the functionality of this program refer to the tutorial "Quadrature Encoder Velocity and Acceleration Estimation with CompactRIO and LabVIEW FPGA".

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.